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

🩹 Fix path in artifact name for windows upload #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

s-weigand
Copy link

@s-weigand s-weigand commented Aug 7, 2023

This fixes an issue where the path is part of the artifact name with artifacts uploaded from windows.
The cause was that path.Base only works with / while filepath.Glob returns paths with \ on windows.

Package path implements utility routines for manipulating slash-separated paths.

vs.

Package filepath implements utility routines for manipulating filename paths in a way compatible with the target operating system-defined file paths.

I also applied this change to writeChecksums since having the original folder structure in the checksum file does not make sense when comparing it against the file on the release page.

@s-weigand
Copy link
Author

s-weigand commented Aug 7, 2023

Looks like the CI is failing because the drone CI ARM runner did run out of space 🤷‍♀️
Turns out it was a bad pipeline fixed in this PR

path.Base only works with '/' while 'filepath.Glob' returns path with '\' on windows
@s-weigand s-weigand force-pushed the fix-path-not-stripped-windows branch from 7152cb8 to 85fc41c Compare November 7, 2023 15:03
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.

1 participant