Skip to content

command go install exited with an error #414

@hugovk

Description

@hugovk

With this .pre-commit-config.yaml:

repos:
  - repo: https://github.com/rhysd/actionlint
    rev: v1.7.7
    hooks:
      - id: actionlint

It worked with prefligit 0.0.22, but not with prek 0.0.23 (on macOS):

prek --version
prek 0.0.23 (96fed00c5 2025-08-08)prek run --all-files
error: Failed to install hook `actionlint`
  caused by: command `go install` exited with an error:

[status]
exit status: 1

[stderr]
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/google/go-cmp v0.6.0
go: downloading github.com/yuin/goldmark v1.7.8
go: downloading github.com/bmatcuk/doublestar/v4 v4.8.0
go: downloading github.com/fatih/color v1.18.0
go: downloading github.com/mattn/go-runewidth v0.0.16
go: downloading github.com/mattn/go-colorable v0.1.14
go: downloading github.com/mattn/go-shellwords v1.0.12
go: downloading github.com/robfig/cron/v3 v3.0.1
go: downloading golang.org/x/sync v0.10.0
go: downloading golang.org/x/sys v0.29.0
error.go:4:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
error.go:5:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
linter.go:4:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
error.go:6:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
config.go:4:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
command.go:4:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
action_metadata.go:4:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
config.go:11:2: GOPROXY list is not the empty string, but contains no entries
error.go:14:2: GOPROXY list is not the empty string, but contains no entries
linter.go:18:2: GOPROXY list is not the empty string, but contains no entries
error.go:15:2: GOPROXY list is not the empty string, but contains no entries
process.go:10:2: GOPROXY list is not the empty string, but contains no entries
rule_events.go:8:2: GOPROXY list is not the empty string, but contains no entries
linter.go:19:2: GOPROXY list is not the empty string, but contains no entries
linter.go:20:2: GOPROXY list is not the empty string, but contains no entries
process.go:13:2: GOPROXY list is not the empty string, but contains no entries
action_metadata.go:11:2: GOPROXY list is not the empty string, but contains no entries
action_metadata.go:5:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
linter.go:8:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
parse.go:5:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
rule_action.go:6:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
action_metadata.go:6:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
process.go:7:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
rule_runner_label.go:4:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
action_metadata.go:7:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
command.go:7:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
command.go:8:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
command.go:9:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
ast.go:5:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
ast.go:6:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
action_metadata.go:8:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
action_metadata.go:9:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
expr_lexer.go:7:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
error.go:12:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
linter.go:15:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
glob.go:7:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
scripts/check-checks/main.go:6:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
scripts/check-checks/main.go:7:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
scripts/check-checks/main.go:16:2: GOPROXY list is not the empty string, but contains no entries
scripts/check-checks/main.go:12:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
scripts/generate-availability/main.go:17:2: GOPROXY list is not the empty string, but contains no entries
scripts/generate-availability/main.go:18:2: GOPROXY list is not the empty string, but contains no entries
scripts/generate-availability/main.go:19:2: GOPROXY list is not the empty string, but contains no entries
scripts/generate-availability/main.go:20:2: GOPROXY list is not the empty string, but contains no entries
scripts/generate-availability/main.go:21:2: GOPROXY list is not the empty string, but contains no entries
scripts/generate-availability/main.go:6:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
scripts/generate-availability/main.go:7:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
scripts/generate-availability/main.go:10:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries
scripts/generate-popular-actions/main.go:6:2: github.com/bmatcuk/doublestar/v4@v4.8.0: GOPROXY list is not the empty string, but contains no entries

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions