Skip to content
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

Apply several Makefile fixes for Windows #5016

Merged
merged 3 commits into from May 20, 2022
Merged

Conversation

bk2204
Copy link
Member

@bk2204 bk2204 commented May 20, 2022

Upon testing our release process, I noticed that there were a few bugs on Windows. Items fixed include:

  • Using the correct location for signtool.exe;
  • Specifying the path to the BSD tar binary on Windows since the default under Git for Windows is GNU tar; and
  • Avoiding bsdtar -s on Windows, since that doesn't work.

Each commit has its own commit message explaining the rationale.

On Windows, the tar shipped with the OS is a BSD (libarchive) tar.
However, under Git for Windows, the tar command is a GNU tar, which is
also the case in GitHub Actions.  As a result, we need to explicitly
specify the path for bsdtar in a different way than for Unix systems,
where we can just typically fall back to "bsdtar", so let's specify the
full path.
The bsdtar on Windows is not compiled with the -s option, so perform the
same operations, just by hand.
GitHub Actions no longer has signtool in the location it did previously.
Let's specify an appropriate PATH value so that we can sign binaries.
@bk2204 bk2204 requested a review from a team as a code owner May 20, 2022 15:16
Copy link
Contributor

@chrisd8088 chrisd8088 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bk2204 bk2204 merged commit 315a792 into git-lfs:main May 20, 2022
@bk2204 bk2204 deleted the bsdtar-windows branch May 20, 2022 16:41
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.

None yet

2 participants