Skip to content

Fix building the NuGet package #622

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

Merged
merged 2 commits into from
Jun 3, 2025
Merged

Fix building the NuGet package #622

merged 2 commits into from
Jun 3, 2025

Conversation

dscho
Copy link
Member

@dscho dscho commented Jun 3, 2025

Unfortunately the change introduced in #621 caused a breakage the nuget/release.sh script.

This PR fixes it, and modifies the PR builds so that similar issues will be caught before merging in the future.

@dscho dscho requested review from mjcheetham and rimrul June 3, 2025 11:44
@dscho dscho self-assigned this Jun 3, 2025
@dscho
Copy link
Member Author

dscho commented Jun 3, 2025

🤞 that the PR build does what it's supposed to do.

dscho added 2 commits June 3, 2025 13:54
While fixing a problem during the v2.50.0-rc0 cycle, I edited
`make-file-list.sh` in a way that broke `nuget/release.sh`.
Unfortunately, this was only detected at the very last step of the
release process.

Let's catch things like this a lot earlier.

Note: We do not need to bother testing `nuget/release.sh` on
Windows/ARM64 because we're only building NuGet packages for x64, see
https://github.com/git-for-windows/git-for-windows-automation/blob/7766f3c6afa8/.github/workflows/git-artifacts.yml#L175

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The file list must not contain unexpanded shell patterns. Otherwise
building the NuGet package will fail with something like this:

  Target path 'tools\etc\msystem*' contains invalid characters.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the fix-nuget-package-building branch from cc89cd7 to 8316103 Compare June 3, 2025 11:55
@dscho dscho merged commit e1ffefc into main Jun 3, 2025
19 checks passed
@dscho dscho deleted the fix-nuget-package-building branch June 3, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants