From feabdd64dfce6c4e4ea00edc8905317038b78acb Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Sat, 20 Aug 2022 16:01:50 +0900 Subject: [PATCH] use `go install` to install `build-lambda-zip`. go 1.18 removed the ability to use `go get` to install binaries. we should use `go install` instead. fixes https://github.com/aws/aws-lambda-go/issues/463 --- doc_source/golang-package.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_source/golang-package.md b/doc_source/golang-package.md index 08e32f12..0f68b342 100644 --- a/doc_source/golang-package.md +++ b/doc_source/golang-package.md @@ -88,7 +88,7 @@ If you have not already done so, you must install [git](https://git-scm.com/) an 1. Download the **build\-lambda\-zip** tool from GitHub: ``` - go.exe get -u github.com/aws/aws-lambda-go/cmd/build-lambda-zip + go.exe install github.com/aws/aws-lambda-go/cmd/build-lambda-zip@latest ``` 1. Use the tool from your `GOPATH` to create a \.zip file\. If you have a default installation of Go, the tool is typically in `%USERPROFILE%\Go\bin`\. Otherwise, navigate to where you installed the Go runtime and do one of the following: