Skip to content

Commit

Permalink
workaround macos bug in goreleaser install script
Browse files Browse the repository at this point in the history
The goreleaser install script (which is deprecated) has started to throw
this error on macOS:

```
goreleaser/goreleaser crit uname_arch_check 'x86_64' got converted to 'all' which is not a GOARCH value.  Please file bug report at client9/shlib
```

Temporary workaround by directly downloading a specific version of
goreleaser from github releases api. This won't bring in the latest
version of goreleaser. That can be fixed later.
  • Loading branch information
joemiller committed Oct 25, 2021
1 parent 0078669 commit b2b15bd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ jobs:
- name: install goreleaser
# only need to lint goreleaser on one platform:
if: startsWith(runner.os, 'Linux')
run: curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sudo sh -s -- -b /usr/local/bin
run : |
#curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sudo sh -s -- -b /usr/local/bin
curl -sfL https://github.com/goreleaser/goreleaser/releases/download/v0.183.0/goreleaser_Linux_x86_64.tar.gz | tar -xvzf - goreleaser
sudo mv goreleaser /usr/local/bin
- name: make lint
env:
Expand Down Expand Up @@ -113,7 +116,9 @@ jobs:
run: |
# install goreleaser binary directly, don't use brew because brew will bring in its own
# version of go which will cause issues with the version installed by the 'setup-go' action:
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b /usr/local/bin
#curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b /usr/local/bin
curl -sfL https://github.com/goreleaser/goreleaser/releases/download/v0.183.0/goreleaser_Darwin_all.tar.gz | tar -xvzf - goreleaser
mv goreleaser /usr/local/bin
brew install FiloSottile/musl-cross/musl-cross
Expand Down Expand Up @@ -174,7 +179,9 @@ jobs:
run: |
# install goreleaser binary directly, don't use brew because brew will bring in its own
# version of go which will cause issues with the version installed by the 'setup-go' action:
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b /usr/local/bin
#curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b /usr/local/bin
curl -sfL https://github.com/goreleaser/goreleaser/releases/download/v0.183.0/goreleaser_Darwin_all.tar.gz | tar -xvzf - goreleaser
mv goreleaser /usr/local/bin
brew install FiloSottile/musl-cross/musl-cross
Expand Down

0 comments on commit b2b15bd

Please sign in to comment.