-
Notifications
You must be signed in to change notification settings - Fork 24
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
add option to skip npmjs.org check in determineChannel
#797
Comments
This is my favorite of the ones you listed but I'm not sure how it would work for autoupdates. One of the use cases of the For instance, the user runs So if we have a config that tells plugin-update to always use the The question you have to answer is, how does plugin-update know what the latest version of a specific channel is? |
thank you for your reply and this context! I think that my "there should be a single default channel" solution is definitely too heavy handed and not practical. here are some more thoughts after looking at the code a bit more:
so going back to my proposed solutions, I do feel that having the ability to disable the npmjs call would make the most sense? let me know what you think! and thanks again |
Yeah I think this is the way to go. Any interest in making the PR? Otherwise, I'm not sure that I have bandwidth to prioritize it. Also, maybe call it |
hey, sorry for the delay -- yes I'd love to take a stab, thanks! I'll have something hopefully soon. cheers |
Is your feature request related to a problem? Please describe.
running
mycli update
ends up fetching information about a different package on npmjs.org which has the same URL identifier, and tries to identify the tag based on that unrelated package's version.context: I'm working on a package called "disco". a similarly named package also exists on npm. as part of the update process,
plugin-update
fetches from registry.npmjs.org here in order to determine thetag
value. in our case, the fetched tag is irrelevant since it's related to a completely different package.Describe the solution you'd like
a few ideas:
mycli update
default to thestable
channel, and users could still pass a specific channel if they wanted. that way, no call todetermineChannel
would be necessaryDescribe alternatives you've considered
config.npmRegistry
to a nonsense value, ensuring that thetry
indetermineChannel
fails, but that's quite hackyThe text was updated successfully, but these errors were encountered: