-
Notifications
You must be signed in to change notification settings - Fork 8
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
nbgv is broken with now that the add-path
command is disabled
#33
Comments
Duplicate of #32 Please attach links to your GitHub workflow executions so we can investigate the logs and find out why the existing fix for this isn't resolving it for your case. |
Unfortunately, it's a private repo. I did attach the output of the command. Here's how we are calling it:
I think #32 and dotnet/Nerdbank.GitVersioning#516 fixed the calls to the However, I don't know typescript very well, but if I had to guess, this could be a cause: https://github.com/dotnet/nbgv/blob/master/src/main.ts#L21 |
Thanks, @jamesmcguirepro. I'm glad to hear set-env is fixed. Regarding add-path, that code you found is calling through the github actions NPM package which is updated and I confirmed will avoid the console logging command. Are you saying the problem still repros even after this issue was closed a few hours ago? |
Just repro'd it a few minutes ago. I have also been using
|
Hang on. You've pinned the pre-fixed version of the Github Action. You have this in your log, @jamesmcguirepro:
Please either use |
FWIW, the GitHub Actions documentation strongly encourages pinning actions to a release tag. I also did not realize this action had been fixed because I was using the latest release (which is still v0.3.1 the moment). Do you have any plans to adopt the "floating major version tag" convention? |
Great. I'm glad you're unblocked. I don't think "floating major version tag" is a thing. Git does not do well with tags that ever get redefined. Rather, I suspect you're referring to servicing branches. And yes, I usually do that but haven't started that till now. I've pushed |
@AArnott https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/about-actions#using-tags-for-release-management
GitHub's official docs recommend moving major version tags with each release. I'm not sure what I think about it, personally, but it's what all the official actions are doing. As a user, it does make it easier to track bug fixes. 🤷♂️ |
I don't know how they get away with that, since git clones do not fetch tags they already have, so moving tags is a very broken idea (at least last I checked). Anyway, from a GitHub Action consumer's perspective, tag vs. branch is equivalent, so I'll be using the git concept that reflects things that move (branches) rather than tags. |
Thanks for sharing that doc though. I'll reach out to the github folks to ask why they're recommending that. |
@wjrogers FYI I filed some feedback and sent this PR to fix the docs. It'll be interesting to see how they respond to it. I did a quick test, and current versions of git still do not download tags they already know about, so indeed redefining a tag is a recipe for great confusion amongst many git clone users. |
I think this issue should be kept open until solved. Today I clicked on "Use latest version" on https://github.com/marketplace/actions/nerdbank-gitversioning and got a version that doesn't work. Furthermore, 0.4.0 is not listed there, but when specified manually it works: |
@j2ghz I'm glad v0.4 is working for you. I can't publish new versions to the marketplace now, but thank you for pointing out that I missed it. I've reached out to the .NET Foundation folks to accept a github agreement so that I can publish new versions there again. |
The text was updated successfully, but these errors were encountered: