From 0d6a94d90c3782437a642eb753c854d359c01083 Mon Sep 17 00:00:00 2001 From: kakakakakku Date: Thu, 6 Apr 2023 17:03:15 +0900 Subject: [PATCH 1/2] chore(sample-apps/blank-go): Add .gitignore file for go binary --- sample-apps/blank-go/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 sample-apps/blank-go/.gitignore diff --git a/sample-apps/blank-go/.gitignore b/sample-apps/blank-go/.gitignore new file mode 100644 index 00000000..4196fae1 --- /dev/null +++ b/sample-apps/blank-go/.gitignore @@ -0,0 +1 @@ +function/main From 7c0a20688810690fd3acc4245363698d8cadeb39 Mon Sep 17 00:00:00 2001 From: kakakakakku Date: Thu, 6 Apr 2023 17:05:00 +0900 Subject: [PATCH 2/2] docs(sample-apps/blank-go): Add notes for using Apple Silicon --- sample-apps/blank-go/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sample-apps/blank-go/README.md b/sample-apps/blank-go/README.md index 7a762a0e..e77a6014 100644 --- a/sample-apps/blank-go/README.md +++ b/sample-apps/blank-go/README.md @@ -38,6 +38,8 @@ To create a new bucket for deployment artifacts, run `1-create-bucket.sh`. To deploy the application, run `2-deploy.sh`. +If you are using a Mac with Apple silicon, you need to add `GOARCH=amd64` to the `go build` command. + blank-go$ ./2-deploy.sh Successfully packaged artifacts and wrote output template to file out.yml. Waiting for changeset to be created.. @@ -68,4 +70,4 @@ Choose a node in the main function graph. Then choose **View traces** to see a l # Cleanup To delete the application, run `4-cleanup.sh`. - blank$ ./4-cleanup.sh + blank-go$ ./4-cleanup.sh