fix: golang function build for goversion above 1.17
Description of changes
Golang version above 1.17 has deprecated go get command and instead suggested to use go install
https://go.dev/doc/go-get-install-deprecation
To fix the issue in the local environment while working with amplify build function GoFunction -y, we need to change the command to fetch and install the github.com/aws/aws-lambda-go/cmd/build-lambda-zip.
Changes are made to work with golang version above > 1.17 and below it.
Issue #10564
Description of how you validated changes
- [X] PR description included
- [X]
yarn testpasses
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Codecov Report
Merging #10569 (a375cf5) into dev (fb2ba7b) will increase coverage by
0.00%. The diff coverage isn/a.
@@ Coverage Diff @@
## dev #10569 +/- ##
=======================================
Coverage 47.81% 47.81%
=======================================
Files 669 669
Lines 32671 32671
Branches 6600 6600
=======================================
+ Hits 15621 15622 +1
+ Misses 15420 15419 -1
Partials 1630 1630
| Impacted Files | Coverage Δ | |
|---|---|---|
| ...li/src/domain/amplify-usageData/getUsageDataUrl.ts | 100.00% <0.00%> (+12.50%) |
:arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Hi @sky4git, changes LGTM, thank you for your contribution!
@sky4git thanks again for the work here - do you mind rebasing this? Some package names changed and it's breaking the tests.
@sky4git thanks again for the work here - do you mind rebasing this? Some package names changed and it's breaking the tests.
@danielleadams Please check it again.