Skip to content

Consider using GOPROXY to control the source of Go module dependencies #344

@sunya-ch

Description

@sunya-ch

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Got timely error on GitHub action build:

The job failed during the go mod tidy step due to a 500 Internal Server Error from the Go proxy when fetching github.com/evanphx/json-patch@v4.12.0+incompatible. This is a common transient error related to the proxy server.

Describe the solution you'd like
A clear and concise description of what you want to happen.

    steps:
      # ... other steps like checking out code, go setup

      - name: Set Go proxy workaround
        run: echo "GOPROXY=https://proxy.golang.org,direct" >> $GITHUB_ENV

      - name: Tidy modules
        run: go mod tidy

      # ... the rest of your steps (build, test, etc)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions