aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.81k stars 819 forks source link

gopkg.in/yaml.v3: unrecognized import path "gopkg.in/yaml.v3": reading https://gopkg.in/yaml.v3?go-get=1: 502 Proxy Error #13829

Closed redjonzaci closed 2 months ago

redjonzaci commented 3 months ago

How did you install the Amplify CLI?

No response

If applicable, what version of Node.js are you using?

No response

Amplify CLI Version

12.12.1

What operating system are you using?

Windows

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

Describe the bug

i get the the error in the title in the Build phase of the pipeline, are you able to check if there's more information about the error?

Expected behavior

i expect the build to pass

Reproduction steps

  1. add a Go function
  2. use yaml.v3 package

Project Identifier

No response

Log output

No response

Additional information

No response

Before submitting, please confirm:

redjonzaci commented 3 months ago

i wasn't able to send the report generated by amplify diagnose --send-report, but let me know if i can share the appId.

redjonzaci commented 3 months ago

related: https://github.com/aws-amplify/amplify-cli/issues/13341

redjonzaci commented 3 months ago

after that, i got: gopkg.in/yaml.v2@v2.2.8: unrecognized import path "gopkg.in/yaml.v2": https fetch: Get "https://gopkg.in/yaml.v2?go-get=1": net/http: TLS handshake timeout

ykethan commented 2 months ago

Hey @redjonzaci, thank you for reaching out. Tried reproducing the issue using the following but did not observe this error.

  1. amplify add function
  2. cd into the function src folder and ran go get gopkg.in/yaml.v3 to install the package
  3. used the example provided on https://github.com/go-yaml/yaml/tree/v3?tab=readme-ov-file#example
  4. then ran amplify push and did not observe any errors.

to confirm the reproduction steps provide a yaml.v3 as package version but the error message suggest the error message on yaml.v2. Has the import been updated on the function code?

redjonzaci commented 2 months ago

thanks for trying! it seems like it was a transient issue.

github-actions[bot] commented 2 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.