Skip to content

Commit c3bb1ef

Browse files
committed
fix: Ensure to use amd64 arch for golang examples
1 parent 8dd4037 commit c3bb1ef

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

aws-golang-auth-examples/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ functions := $(shell find functions -name \*main.go | awk -F'/' '{print $$2}')
55

66
build: ## Build golang binaries
77
@for function in $(functions) ; do \
8-
env GOOS=linux go build -ldflags="-s -w" -o bin/$$function functions/$$function/main.go ; \
8+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/$$function functions/$$function/main.go ; \
99
done

aws-golang-dynamo-stream-to-elasticsearch/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
build:
22
dep ensure -v
3-
env GOOS=linux go build -ldflags="-s -w" -o bin/aws-golang-dynamo-stream-to-elasticsearch cmd/aws-golang-dynamo-stream-to-elasticsearch/main.go
3+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/aws-golang-dynamo-stream-to-elasticsearch cmd/aws-golang-dynamo-stream-to-elasticsearch/main.go
44

55
.PHONY: clean
66
clean:

aws-golang-googlemap/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
build:
44
dep ensure -v
5-
env GOOS=linux go build -ldflags="-s -w" -o bin/getgeolocation getgeolocation/main.go
6-
env GOOS=linux go build -ldflags="-s -w" -o bin/getsearchlocation getsearchlocation/main.go
7-
env GOOS=linux go build -ldflags="-s -w" -o bin/getnearbylocation getnearbylocation/main.go
8-
env GOOS=linux go build -ldflags="-s -w" -o bin/getgeodetail getgeodetail/main.go
5+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/getgeolocation getgeolocation/main.go
6+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/getsearchlocation getsearchlocation/main.go
7+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/getnearbylocation getnearbylocation/main.go
8+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/getgeodetail getgeodetail/main.go
99

1010
clean:
1111
rm -rf ./bin ./vendor Gopkg.lock

aws-golang-http-get-post/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
build:
44
dep ensure -v
5-
env GOOS=linux go build -ldflags="-s -w" -o bin/getBin getFolder/getExample.go
6-
env GOOS=linux go build -ldflags="-s -w" -o bin/postBin postFolder/postExample.go
7-
env GOOS=linux go build -ldflags="-s -w" -o bin/getQueryBin getFolder/getQueryExample.go
5+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/getBin getFolder/getExample.go
6+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/postBin postFolder/postExample.go
7+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/getQueryBin getFolder/getQueryExample.go
88

99
clean:
1010
rm -rf ./bin ./vendor Gopkg.lock

aws-golang-s3-file-replicator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
build: gomodgen
44
export GO111MODULE=on
5-
env GOOS=linux go build -ldflags="-s -w" -o bin/replicator src/main.go
5+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/replicator src/main.go
66

77
clean:
88
rm -rf ./bin ./vendor Gopkg.lock

aws-golang-simple-http-endpoint/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
build:
22
dep ensure -v
3-
env GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go
4-
env GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go
3+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go
4+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go
55

66
.PHONY: clean
77
clean:

aws-golang-stream-kinesis-to-elasticsearch/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
build:
22
dep ensure -v
3-
env GOOS=linux go build -ldflags="-s -w" -o bin/stream main.go
3+
env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/stream main.go
44

55
.PHONY: clean
66
clean:

0 commit comments

Comments
 (0)