Skip to content

Commit

Permalink
Excludes darwin/386 from builds
Browse files Browse the repository at this point in the history
  • Loading branch information
leucos committed Aug 21, 2020
1 parent d96747b commit f9bcdec
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ builds:
- darwin
ldflags:
- -s -w -X github.com/devops-works/binenv/cmd.Version={{.Version}} -X github.com/devops-works/binenv/cmd.BuildDate={{.CommitDate}}
ignore:
- goos: darwin
goarch: 386

archives:
- format: binary
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"

checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Think of it as a `tfenv` + `tgenv` + `helmenv` + ...
### Linux (bash/zsh)

```
wget -q https://github.com/devops-works/binenv/releases/latest/download/binenv_0.2.0_linux_amd64.tar.gz
mv binenv-linux-amd64 binenv
wget -q https://github.com/devops-works/binenv/releases/latest/download/binenv_linux_amd64 -O binenv
chmod +x binenv
./binenv update
./binenv install binenv
Expand All @@ -32,8 +31,7 @@ exec $SHELL
### MacOS (with bash)

```
wget -q https://github.com/devops-works/binenv/releases/latest/download/binenv-darwin-amd64
mv binenv-linux-darwin binenv
wget -q https://github.com/devops-works/binenv/releases/latest/download/binenv_darwin_amd64 -O binenv
chmod +x binenv
./binenv update
./binenv install binenv
Expand Down
2 changes: 1 addition & 1 deletion distributions/distributions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sources:
type: github-releases
url: https://api.github.com/repos/devops-works/binenv/releases
fetch:
url: https://github.com/devops-works/binenv/releases/download/v{{ .Version }}/binenv_{{ .OS }}-{{ .Arch }}{{ .ExeExtension }}
url: https://github.com/devops-works/binenv/releases/download/v{{ .Version }}/binenv_{{ .OS }}_{{ .Arch }}{{ .ExeExtension }}
install:
type: direct

Expand Down
7 changes: 7 additions & 0 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ func (a *App) Install(specs ...string) error {
log.Errorf("unable to install %q version %q: %v", dist, v, err)
continue
default:
// if dist == "binenv" {
// err = a.selfInstall()
// if err != nil {
// a.logger.Errorf("unable to set-up myself: %v", err)
// os.Exit(1)
// }
// }
fmt.Printf("%q version %q installed\n", dist, v)
}

Expand Down

0 comments on commit f9bcdec

Please sign in to comment.