Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use source flag or node-style query key (path:) to lock 1 specific origin #83

Open
zm-cttae opened this issue Apr 10, 2023 · 3 comments

Comments

@zm-cttae
Copy link
Contributor

zm-cttae commented Apr 10, 2023

I'd prefer to install a package from only file exchange sometimes, or github sometimes. Especially when names could clash!
Preferably, we should have the choice to force a specific source and then error out on 404 from that origin.

@mobeets
Copy link
Owner

mobeets commented Apr 10, 2023

As it is currently, it searches file exchange first, and then github. You can pass --github-first or -g to search github first. Does that help with what you're looking for, or slightly different?

@zm-cttae
Copy link
Contributor Author

This would be about locking search to one registry - in case we want to avoid unrelated GitHub scripts for example!

@mobeets
Copy link
Owner

mobeets commented Apr 10, 2023

Gotcha, this sounds like a pretty simple fix. Mostly just adding a new name-value argument, -s for source, and then updating the function findUrl. If you want to take a stab at it and make a pull-request, please do!

@zm-cttae zm-cttae changed the title Use node-style path: feature to force specific source Use source flag or node-style query key (path:) to lock 1 specific origin Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants