diff --git a/lib/plugins/create/templates/aws-go-dep/Makefile b/lib/plugins/create/templates/aws-go-dep/Makefile index e1a16281c..d3556a546 100644 --- a/lib/plugins/create/templates/aws-go-dep/Makefile +++ b/lib/plugins/create/templates/aws-go-dep/Makefile @@ -2,8 +2,8 @@ build: dep ensure -v - env GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go - env GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go + env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go + env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go clean: rm -rf ./bin ./vendor Gopkg.lock diff --git a/lib/plugins/create/templates/aws-go-mod/Makefile b/lib/plugins/create/templates/aws-go-mod/Makefile index 9622e9b36..c18bb3b47 100644 --- a/lib/plugins/create/templates/aws-go-mod/Makefile +++ b/lib/plugins/create/templates/aws-go-mod/Makefile @@ -2,8 +2,8 @@ build: gomodgen export GO111MODULE=on - env GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go - env GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go + env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go + env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go clean: rm -rf ./bin ./vendor go.sum diff --git a/lib/plugins/create/templates/aws-go/Makefile b/lib/plugins/create/templates/aws-go/Makefile index 3623a7971..96f31068d 100644 --- a/lib/plugins/create/templates/aws-go/Makefile +++ b/lib/plugins/create/templates/aws-go/Makefile @@ -1,8 +1,8 @@ .PHONY: build clean deploy build: - env GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go - env GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go + env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go + env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go clean: rm -rf ./bin