-
Notifications
You must be signed in to change notification settings - Fork 386
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
[Go] Delete existing go install before extracting new version #1099
base: main
Are you sure you want to change the base?
Conversation
@samruddhikhandale can you take another look when you have a minute? |
"install_go_centos-7": { | ||
"image": "centos:centos7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep this as is? For the test failures, you can pull from main
which would have a fix for it.
@@ -89,5 +89,13 @@ | |||
"version": "1.19" | |||
} | |||
} | |||
}, | |||
"install_go_1_23_over_1_22": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
echo "Removing existing Go ${TARGET_GOROOT}..." | ||
rm -rf "${TARGET_GOROOT:?}/"* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "Removing existing Go ${TARGET_GOROOT}..." | |
rm -rf "${TARGET_GOROOT:?}/"* | |
if [ -n "${TARGET_GOROOT}" ] && [ -d "${TARGET_GOROOT}" ]; then | |
echo "Removing existing Go installation at ${TARGET_GOROOT}..." | |
rm -rf "${TARGET_GOROOT}/"* | |
fi |
We're running into some errors in our codespace and it seems to be related to the
mcr.microsoft.com/devcontainers/go
image being on go 1.22.6 and theghcr.io/devcontainers/features/go:1
feature being on go 1.23.0.Reinstalling go fixes it.
https://go.dev/doc/install
I didn't verify the exact pair of files that is causing the problem, but it appears that Go 1.23.0 renamed or deleted or added a file that conflicts with a file in Go 1.22.6 that doesn't get overwritten by the extraction of the new version.