-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Semantic Release 20 can't detect git installed in Github Action Windows #2658
Comments
Wow. I just hit this as well.
Is this test still needed? Git 2.7.1 came out in early 2016. Existing users of this package will be past that version. New users will likely have an updated tool chain given all the attacks in the past few years. I would vote to remove the test. EDIT: |
So what's the solution to this? My build is currently failing due to this 😞 |
For now, I'm staying on 19.0.5
Sent from Nine
…________________________________
From: Kyle Ross ***@***.***>
Sent: Monday, January 9, 2023 10:50
To: semantic-release/semantic-release
Cc: Antoine Aflalo; Author
Subject: Re: [semantic-release/semantic-release] Semantic Release 20 can't detect git installed in Github Action Windows (Issue #2658)
So what's the solution to this? My build is currently failing due to this 😞
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Not sure. After removing the version test, other
|
thank you for raising this and apologies for not jumping into the thread sooner
until we are able to resolve this windows specific issue, this would be our official recommendation as well. the v19 line has been stable for a while now, so continuing to use that for the time being is your best bet.
while it is true that most consumers are likely not on an old enough version to cause a problem here, we do want to keep this check in place to communicate a detectable incompatibility. we have plans to raise this minimum because it has restricted us from using some newer features of git that would be helpful in some of the tasks that semantic-release performs. we attempt to communicate an accurate minimum with this warning, so in order to use those newer features, this would be raised and would inform folks of that new minimum at that point.
we will get a branch started soon that adds windows to our test matrix for this core project. i'm hoping that will at least reproduce this issue in that context. assuming that is true, it could be helpful if folks would help us investigate possible solutions and open PRs against that reproduction. I will post back here once we have that reproduction available. |
i've created the branch to add windows into the os matrix. you can find a draft PR related to it here: #2659 it does not appear to reproduce the problem with finding git (yet). i would have expected that to show up in the integration tests. however, it appears those are failing to run due to the inability to find the base image for the npm registry used in those tests. that works find on the ubuntu runner (and locally on macos), so it will need to be investigated why that step is failing on windows. i'm hopeful that resolving that will make the failure to find git reproduceable in those integration tests.
this error is reproduced in the unit tests running in windows-latest. this will need to be solved as well. if folks would like to help get this resolved more quickly, please feel free to investigate either issue and contribute PRs against the |
There is an issue with the latest semantic-release version, which does not allow running it on Windows. See the semantic-release/semantic-release#2658 for more details. At the moment, the recommended solution is to downgrade to v19.0.5
It seems this is not a bug related to merely Windows because we could reproduce it now with |
@travi, I believe the 404 NOT_FOUND is due to |
thanks @koalaty-code! that makes sense why we're seeing that situation in the integration tests then. unfortunately, that will mean that we wont be able to add windows to the OS matrix with the tests in their current state (might be the reason we dont already have it in there). without that available for reproducing this issue, it does mean that it will be more difficult for our core maintenance team to investigate this issue since we primarily work from macs and dont have windows environments easily available to us. we could really use some help from the community on solving this one. |
@stefanfrede we have not seen any evidence to support this beyond your message. i have many packages releasing from github actions using the ubuntu-latest runner that have been working properly, even when this update was still just a pre-release. it seems like the issue you might be seeing is likely not directly related to this issue. would you mind opening a new issue with links to reproductions or at least your logs with the debug flag enabled? |
@travi I have a couple of commits that address the git version and plugin load issues in my repo branch. I started from the master branch so not sure how to handle this. Should I just open a pull request that pulls all the master updates or do you want to rebase the |
@travi On a different note, should package.json specify running
vs
Windows does not recognize shebang (yet - ok, maybe never 🤨). |
@webstech given that the verdaccio image is not available for windows, my hope that we could reproduce effectively in the windows-git branch arent going to pan out with the current testing setup. since thats the case, i'd say we just go ahead and target master directly with the pr to resolve this |
i'm not aware of anyone reporting this as a problem before now. i'm open to talking through it, but this seems less blocking than the other bugs. is that a fair assesment? would it be worth discussing that in a new issue? |
It is not a big deal and certainly would not affect existing maintainers on this project. Only windows maintainers would see this. Running against semantic-release is not a good test anyway - just went for the fastest route to verify the changes. |
Status update for those interested. PR #2672 has been opened to address the initial problems. That change may resolve the issues with running on Windows. To run the Windows tests, changes are needed to some of the test jobs and there are changes to an external package. At this point, all the test jobs are running, so patches are being prepared for the external package (changes were initially done in the node_modules tree). |
integration.test.js
|
this should be addressed by https://github.com/semantic-release/semantic-release/releases/tag/v20.0.4 |
Confirmed this works 👍 Thank you all! |
Same on my side. Thanks team ! |
Current behavior
Crashes complaining can't find git binary.
Relating to this dependabot PR: Belphemur/SoundSwitch#1085
Expected behavior
Find the git binary as it was the case before in the 19.0.5 version.
semantic-release
version20.0.0
CI environment
GitHub Action
Plugins used
git
semantic-release
configurationhttps://github.com/Belphemur/SoundSwitch/blob/dev/package.json
CI logs
Run npx semantic-release -d
[semantic-release]: Git version 2.7.1 is required. No git binary found.
TypeError: Invalid Version: undefined
at new SemVer (D:\a\SoundSwitch\SoundSwitch\node_modules\semver\classes\semver.js:19:13)
at compare (D:\a\SoundSwitch\SoundSwitch\node_modules\semver\functions\compare.js:3:3)
at lt (D:\a\SoundSwitch\SoundSwitch\node_modules\semver\functions\lt.js:2:29)
at file:///D:/a/SoundSwitch/SoundSwitch/node_modules/semantic-release/bin/semantic-release.js:29:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: Process completed with exit code 1.
The text was updated successfully, but these errors were encountered: