Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing tip fails with go: modules disabled by GO111MODULE=off; #35

Open
dominikh opened this issue Apr 24, 2024 · 0 comments
Open

Comments

@dominikh
Copy link
Contributor

I'm getting the following CI failure when trying to install tip:

+ GO111MODULE=off
+ /opt/hostedtoolcache/go/1.22.2/x64/bin/go get golang.org/dl/gotip
go: modules disabled by GO111MODULE=off; see 'go help modules'
+ rm -rf -- /home/runner/work/go-tools/setup-go-faster/runtmp
Error: Process completed with exit code 1.

I've attached the whole run's log (with all of the debugging enabled).

Debug log
Run dominikh/setup-go-faster@bef797ec00ae3b922c6f690893bca23fabed8df3
##[debug]Evaluating: inputs.ignore-local
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ignore-local'
##[debug]=> ''
##[debug]Result: ''
##[debug]Evaluating: inputs.go-version
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'go-version'
##[debug]=> 'tip'
##[debug]Result: 'tip'
##[debug]Evaluating: inputs.go-version-file
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'go-version-file'
##[debug]=> ''
##[debug]Result: ''
##[debug]Evaluating: inputs.annotate-test-logs
##[debug]Evaluating Index:
##[debug]..Evaluating inputs:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'annotate-test-logs'
##[debug]=> ''
##[debug]Result: ''
##[debug]Evaluating condition for step: 'run'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: run
##[debug]Loading inputs
##[debug]Evaluating: github.action_path
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'action_path'
##[debug]=> '/home/runner/work/_actions/dominikh/setup-go-faster/bef797ec00ae3b922c6f690893bca23fabed8df3'
##[debug]Result: '/home/runner/work/_actions/dominikh/setup-go-faster/bef797ec00ae3b922c6f690893bca23fabed8df3'
##[debug]Loading env
Run src/run
##[debug]/usr/bin/bash --noprofile --norc -e -o pipefail /home/runner/work/_temp/d7d2a9db-54c5-4618-b4c3-492997aa9570.sh
++ dirname -- src/run
+ CDPATH=
+ cd -- src/..
+ . src/lib
++ set -e
+++ dirname -- src/run
++ CDPATH=
++ cd -- src/..
+ VERSIONS_URL=https://raw.githubusercontent.com/WillAbides/goreleases/main/versions.txt
+ debug_out starting run
+ '[' -n true ']'
+ echo starting run
starting run
++ tmpdir_name runtmp
++ local dir_name=runtmp
++ local tmpdir=/home/runner/work/go-tools
++ tmpdir=/home/runner/work/go-tools
++ tmpdir=/home/runner/work/go-tools/setup-go-faster/runtmp
++ echo /home/runner/work/go-tools/setup-go-faster/runtmp
+ tmp_dir=/home/runner/work/go-tools/setup-go-faster/runtmp
+ trap 'rm -rf -- "$tmp_dir"' EXIT
+ mkdir -p -- /home/runner/work/go-tools/setup-go-faster/runtmp
+ export INSTALL_GO_TIP
+ '[' -z tip ']'
+ '[' -n tip ']'
+ '[' -n '' ']'
+ constraint=tip
+ '[' tip = tip ']'
+ constraint='*'
+ INSTALL_GO_TIP=1
++ resolve_constraint_alias '*' https://raw.githubusercontent.com/WillAbides/goreleases/main/versions.txt /home/runner/work/go-tools/setup-go-faster/runtmp
++ local 'constraint=*'
++ local versions_url=https://raw.githubusercontent.com/WillAbides/goreleases/main/versions.txt
++ local tmp_dir=/home/runner/work/go-tools/setup-go-faster/runtmp
++ case "$constraint" in
++ echo '*'
+ constraint='*'
+ '[' -z '*' ']'
+ install_parent=/home/runner/work/go-tools/setup-go-faster/go
+ mkdir -p /home/runner/work/go-tools/setup-go-faster/go
+ go_tool_cache=/opt/hostedtoolcache/go
+ mkdir -p /opt/hostedtoolcache/go
+ '[' -z '' ']'
++ select_local_version '*' /home/runner/work/go-tools/setup-go-faster/go
++ local 'constraint=*'
++ local go_tool_cache=/home/runner/work/go-tools/setup-go-faster/go
++ local local_versions
+++ ls /home/runner/work/go-tools/setup-go-faster/go
++ local_versions=
++ is_precise_version '*'
++ [[ * =~ ^[0-9]+(.([0-9]+)(.[0-9]+)?)?([A-Za-z0-9]+)?$ ]]
++ return 1
+++ select_go_version '*' ''
+++ local 'constraint=*'
+++ local versions=
+++ local got
++++ echo ''
++++ ./src/select_go_version.pl '*'
+++ got='invalid pattern: *'
+++ return
++ ver=
+++ echo ''
+++ ./src/semver-select --go -c '*' -n 1 -i -
++ dirname -- ./src/semver-select
+ CDPATH=
+ cd -- ./src/..
+ . src/lib
++ set -e
+++ dirname -- ./src/semver-select
++ CDPATH=
++ cd -- ./src/..
+ target_version=0.4.0
+ bin_path=./bin/semver-select
++ goos
++ case "$RUNNER_OS" in
++ echo linux
+ '[' linux = windows ']'
+ download
+ skip_download
+ '[' -f ./bin/semver-select ']'
+ return
++ dirname ./bin/semver-select
+ mkdir -p ./bin
+ url=https://github.com/WillAbides/semver-select/releases/download/v
++ goos
++ case "$RUNNER_OS" in
++ echo linux
++ goarch
++ case "$RUNNER_ARCH" in
++ echo amd64
+ url+=0.4.0/semver-select_0.4.0_linux_amd64
++ goos
++ case "$RUNNER_OS" in
++ echo linux
+ '[' linux = windows ']'
+ curl -s --fail -o ./bin/semver-select --retry 4 -L https://github.com/WillAbides/semver-select/releases/download/v0.4.0/semver-select_0.4.0_linux_amd64
+ chmod +x ./bin/semver-select
+ exec ./bin/semver-select --go -c '*' -n 1 -i -
++ local_matches=
++ '[' -n '' ']'
+ lv=
+ target_dir=/home/runner/work/go-tools/setup-go-faster/go//x64
+ '[' -z '' ']'
+ '[' -z '' ']'
++ select_local_version '*' /opt/hostedtoolcache/go
++ local 'constraint=*'
++ local go_tool_cache=/opt/hostedtoolcache/go
++ local local_versions
+++ ls /opt/hostedtoolcache/go
++ local_versions='1.20.14
1.21.9
1.22.2'
++ is_precise_version '*'
++ [[ * =~ ^[0-9]+(.([0-9]+)(.[0-9]+)?)?([A-Za-z0-9]+)?$ ]]
++ return 1
+++ select_go_version '*' '1.20.14
1.21.9
1.22.2'
+++ local 'constraint=*'
+++ local 'versions=1.20.14
1.21.9
1.22.2'
+++ local got
++++ echo '1.20.14
1.21.9
1.22.2'
++++ ./src/select_go_version.pl '*'
+++ got='invalid pattern: *'
+++ return
++ ver=
+++ echo '1.20.14
1.21.9
1.22.2'
+++ ./src/semver-select --go -c '*' -n 1 -i -
++ dirname -- ./src/semver-select
+ CDPATH=
+ cd -- ./src/..
+ . src/lib
++ set -e
+++ dirname -- ./src/semver-select
++ CDPATH=
++ cd -- ./src/..
+ target_version=0.4.0
+ bin_path=./bin/semver-select
++ goos
++ case "$RUNNER_OS" in
++ echo linux
+ '[' linux = windows ']'
+ download
+ skip_download
+ '[' -f ./bin/semver-select ']'
+ chmod +x ./bin/semver-select
++ ./bin/semver-select -v
+ got_ver=0.4.0
+ '[' 0.4.0 == 0.4.0 ']'
+ return
+ exec ./bin/semver-select --go -c '*' -n 1 -i -
++ local_matches=1.22.2
++ '[' -n 1.22.2 ']'
++ echo 1.22.2
++ tail -1
+ lv=1.22.2
+ target_dir=/opt/hostedtoolcache/go/1.22.2/x64
::add-matcher::/home/runner/work/_actions/dominikh/setup-go-faster/bef797ec00ae3b922c6f690893bca23fabed8df3/matchers.json
##[debug]Added matchers: 'go'. Problem matchers scan action output for known warning or error strings and report these inline.
+ '[' -z 1.22.2 ']'
+ '[' -z 1.22.2 ']'
+ '[' -z 1.22.2 ']'
+ matchers=/home/runner/work/_actions/dominikh/setup-go-faster/bef797ec00ae3b922c6f690893bca23fabed8df3/matchers.json
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo ::add-matcher::/home/runner/work/_actions/dominikh/setup-go-faster/bef797ec00ae3b922c6f690893bca23fabed8df3/matchers.json
+ src/install-go 1.22.2 /opt/hostedtoolcache/go/1.22.2/x64 /home/runner/work/go-tools/setup-go-faster/go/tip/x64
++ dirname -- src/install-go
+ CDPATH=
+ cd -- src/..
+ . src/lib
++ set -e
+++ dirname -- src/install-go
++ CDPATH=
++ cd -- src/..
+ install_go_version=1.22.2
+ target_dir=/opt/hostedtoolcache/go/1.22.2/x64
+ tip_target_dir=/home/runner/work/go-tools/setup-go-faster/go/tip/x64
+ debug_out starting install-go
+ '[' -n true ']'
+ echo starting install-go
starting install-go
+ export GOROOT=
+ GOROOT=
+ export GO111MODULE=off
+ GO111MODULE=off
+ '[' -d /opt/hostedtoolcache/go/1.22.2/x64 ']'
+ echo /opt/hostedtoolcache/go/1.22.2/x64 already exists
+ '[' -z '' ']'
+ skip_install=1
+ '[' -z 1 ']'
+ GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_1d6c7927-7321-472d-a135-c7c9e45d9619
+ GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_1d6c7927-7321-472d-a135-c7c9e45d9619
+ add_to_github_path /opt/hostedtoolcache/go/1.22.2/x64/bin
+ element=/opt/hostedtoolcache/go/1.22.2/x64/bin
+ echo /opt/hostedtoolcache/go/1.22.2/x64/bin
++ add_to_system_path /opt/hostedtoolcache/go/1.22.2/x64/bin
++ element=/opt/hostedtoolcache/go/1.22.2/x64/bin
/opt/hostedtoolcache/go/1.22.2/x64 already exists
+++ goos
+++ case "$RUNNER_OS" in
+++ echo linux
++ '[' linux == windows ']'
++ echo /opt/hostedtoolcache/go/1.22.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ PATH=/opt/hostedtoolcache/go/1.22.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
++ exe_name go
++ suffix=
+++ goos
+++ case "$RUNNER_OS" in
+++ echo linux
++ '[' linux = windows ']'
++ echo go
+ go_exec=/opt/hostedtoolcache/go/1.22.2/x64/bin/go
++ /opt/hostedtoolcache/go/1.22.2/x64/bin/go env GOPATH
+ gopath=/home/runner/go
+ mkdir -p /home/runner/go/bin
+ add_to_github_path /home/runner/go/bin
+ element=/home/runner/go/bin
+ echo /home/runner/go/bin
++ add_to_system_path /home/runner/go/bin
++ element=/home/runner/go/bin
+++ goos
+++ case "$RUNNER_OS" in
+++ echo linux
++ '[' linux == windows ']'
++ echo /home/runner/go/bin:/opt/hostedtoolcache/go/1.22.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ PATH=/home/runner/go/bin:/opt/hostedtoolcache/go/1.22.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ unset GOROOT
+ '[' -n 1 ']'
+ GO111MODULE=off
+ /opt/hostedtoolcache/go/1.22.2/x64/bin/go get golang.org/dl/gotip
go: modules disabled by GO111MODULE=off; see 'go help modules'
+ rm -rf -- /home/runner/work/go-tools/setup-go-faster/runtmp
Error: Process completed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant