Fix dev/build-fleet api generation on other OS
@@ -8,7 +8,6 @@ if [ ! -d ./cmd/fleetcontroller ]; then
exit 1
fi
-export GOOS=linux
export GOARCH="${GOARCH:-amd64}"
export CGO_ENABLED=0
@@ -17,6 +16,7 @@ if ! git diff --quiet HEAD origin/master -- pkg/apis/fleet.cattle.io/v1alpha1;
go generate
fi
+export GOOS=linux
# fleet
go build -gcflags='all=-N -l' -o bin/fleetcontroller-linux-"$GOARCH" ./cmd/fleetcontroller
docker build -f package/Dockerfile -t rancher/fleet:dev --build-arg="ARCH=$GOARCH" .
