Skip to content

Go: download step not downloading dependencies? #29

Open
@fsouza

Description

@fsouza

👋 While trying pre-commit-ci in a Go project, golangci-lint fails with the following output:

golangci-lint............................................................Failed
- hook id: golangci-lint
- exit code: 3

ERRO Running error: context loading failed: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: go: github.com/gempir/go-twitch-irc/v2@v2.5.0: Get "https://proxy.golang.org/github.com/gempir/go-twitch-irc/v2/@v/v2.5.0.mod": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:47976->[::1]:53: read: connection refused

Fix End of Files.........................................................Passed
Trim Trailing Whitespace.................................................Passed

This means the download step didn't download the dependencies listed in go.mod. Could it run go mod download (persisting GOMODCACHE between steps) in the presence of a file called go.mod?

Link to run: https://results.pre-commit.ci/run/github/282973629/1607176801.q8Ki4H_SR3ucby0Q2rvnyQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions