-
Notifications
You must be signed in to change notification settings - Fork 137
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
feat: Override default build format to Zip when building for Windows #527
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> git br
* pr/527
master
> goreleaser check
• checking path=.goreleaser.yml
• 1 configuration file(s) validated
• thanks for using goreleaser!
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of interest: why these two new blank lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than that PR looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felipebraga While you're here, could you please trim trailing whitespaces in this file on line 29? Thanks in advance. |
Assuming that windows is in a state that can run shell scripts (I guess cygwin or such), then we need to consider the install script: https://github.com/warrensbox/terraform-switcher/blob/master/install.sh#L345 as it looks for the tar.gz |
Ah, good pointer. The change looks quite simple, though I don't have Windows laptop to test 🤷🏻 @felipebraga Could you please implement this change and test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes as install script needs to be adjusted accordingly.
I did see that, the comment seems weird though: Seems to suggest that format can be changed based on architecture, but archive name can be changed based on OS 🤔 Edit: Ah yeh, that second example implies it should work fine 🥳 |
Yeah, that seems to be a copy-pasta typo that comes from someone else's original script I guess that is used across multiple repos and is based on portable POSIX libs collection at https://github.com/client9/shlib |
Override default build format to Zip when building for Windows
The idea behind it is to enable winget installation due the inability of winget decompress tar files.