-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
A "latest" tag #522
Comments
Certainly I could, with #400 is asking for an I have a strong desire to avoid adding steps to an already-complex release process, and I very strongly do not want to misuse git to achieve anything. I'm open to other ideas to having a pointer to the latest |
Is the release process explained somewhere, or would you mind sharing some of it with me? I'd offer to look things over and find a solution that's easy for you. |
At the moment, it's |
Thanks for that info. I can see the dilemma in how you link to a tagged version using the raw.ghuc URL. I dug through the issues last night, but I didn't see talk of pointing to the master branch for the install script. Do you recall why the readme uses a versioned URL instead of master? https://raw.githubusercontent.com/creationix/nvm/master/install.sh EDIT: I read #400, #127 and a few others. I keep seeing mention that master shouldn't be used, but I still don't see why? I have this growing suspicion that master is intentionally intended to be something other than the norm: stable and production-ready... I keep telling myself that can't possibly be true, but I fear it is the case. Okay, I'll just come right out and ask it:
|
That's intentional. "master" is what's currently in development - and not yet released. "stable and production-ready" can only be conveyed by an official release with a semver version; master indeed doesn't imply that. It's an exceedingly common workflow in my experience for anything that has a publish/release process - ie, not a large app, but something that is itself a dependency. |
How would you feel about a branch called "latest"? That's probably the only way around the issue I can think of unless you started to use GitHub's release workflow, but a latest branch would be less overhead. I could work on a pull request this weekend if interested. For now I'm just referencing the master branch in my script, but latest might be a nice permanent URL folks could reference. |
Please reference I'm open to suggestions and PRs, but I'm still not convinced this is the right approach. |
Here is what I'd propose when publishing a new release: Initially:
Then on a new release:
|
http://latest.nvm.sh/ now redirects, via Github Releases, to the latest version. |
Add `nvm_get_latest` This relates to #522, #561, #400. `nvm_get_latest` uses http://latest.nvm.sh which redirects to https://github.com/creationix/nvm/releases/latest which in turn redirects to the latest release tag.
Would you consider adding a "latest" git tag whenever there is a version bump?
I didn't see this discussed in a search of issues, so sorry if it has been brought up in the past. I have a "node reinstall" script and recently had to use it, so thought to ask. 💭
The text was updated successfully, but these errors were encountered: