-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
cli: Add --no-remote, rename --no-fetch to --cached-only #3417
Conversation
--no-remote disables remote module resolution instead of just downloads.
This PR replaces/removes --no-fetch, to match #3384 change it should only add the flag. As mentioned in the other issue I think |
@nayeemrmn There's something about this that strikes me as confusing or inelegant.
I acknowledge there is a use-case for both of these flags, but I can't help but wonder if they could be merged into a single concept. I think it would be very helpful to users if a section in the manual was added (perhaps to https://deno.land/std/manual.md#linking-to-third-party-code ) which explained the difference and use cases for these flags in more detail... |
The documentation should describe these situations:
It seems you would never need |
What about a flag with a value? e.g. --no-remote=download or --no-remote=use. |
The purpose of Correct me if I'm wrong, but the similarity between My suggestion is to rename Yes, |
@ry I've implemented my above suggestion. Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nayeemrmn --cached-only makes this much less confusing, thanks!
I think this could still use some more verbose documentation, but I'll leave that for future work.
Closes #3384.