Skip to content

Commit b61430d

Browse files
committed
fix: drop freebsd support for go1.12+
1 parent 8bba6dc commit b61430d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,12 @@ prepare-release-dist: build
101101
GOOS=darwin GOARCH=386 go build --tags kqueue -o dist/latest/scw-darwin-i386 github.com/scaleway/scaleway-cli/cmd/scw
102102
GOOS=darwin GOARCH=amd64 go build --tags kqueue -o dist/latest/scw-darwin-amd64 github.com/scaleway/scaleway-cli/cmd/scw
103103

104-
GOOS=freebsd GOARCH=386 go build -o dist/latest/scw-freebsd-i386 github.com/scaleway/scaleway-cli/cmd/scw
105-
GOOS=freebsd GOARCH=amd64 go build -o dist/latest/scw-freebsd-amd64 github.com/scaleway/scaleway-cli/cmd/scw
106-
GOOS=freebsd GOARCH=arm go build -o dist/latest/scw-freebsd-arm github.com/scaleway/scaleway-cli/cmd/scw
104+
# Issue with mody and freebsd for go1.12+ https://github.com/moby/moby/pull/38818
105+
if [ $(GOMINORVERSION) -lt 12 ]; then \
106+
GOOS=freebsd GOARCH=386 go build -o dist/latest/scw-freebsd-i386 github.com/scaleway/scaleway-cli/cmd/scw && \
107+
GOOS=freebsd GOARCH=amd64 go build -o dist/latest/scw-freebsd-amd64 github.com/scaleway/scaleway-cli/cmd/scw && \
108+
GOOS=freebsd GOARCH=arm go build -o dist/latest/scw-freebsd-arm github.com/scaleway/scaleway-cli/cmd/scw; \
109+
fi
107110

108111
GOOS=netbsd GOARCH=386 go build -o dist/latest/scw-netbsd-i386 github.com/scaleway/scaleway-cli/cmd/scw
109112
GOOS=netbsd GOARCH=amd64 go build -o dist/latest/scw-netbsd-amd64 github.com/scaleway/scaleway-cli/cmd/scw

0 commit comments

Comments
 (0)