-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Regression: go 1.17 feature breaks ubuntu focal images now that 1.17.7 released #1300
Comments
Interesting - it's clearly published, but binaries are not available yet: https://go.googlesource.com/go/+/refs/tags/go1.17.7 First time we've seen that - there must have been some sort of problem with the release. There seemed to be errors golang/go#51102 |
//cc @joshspicer This is another reason to consider using the GitHub Actions archived copies for these scripts. https://github.com/actions/go-versions We could also fall back in this situation and try the previous version we find. |
Same deal
or local
|
Yea @Chuxel - actually also just ran into this testing a new build of kitchensink :/ The "features": {
"golang": "1.17.6"
} should mitigate this for now while golang resolves this upstream 👍 |
Yeah i am pinning to |
Pinning it to > [linux/amd64 stage-3 6/19] RUN apt-get update && bash /tmp/library-scripts/go-debian.sh "1.17.6" "/usr/local/go" "/go" && apt-get clean -y:
#15 46.97 github.com/golangci/golangci-lint/pkg/result/processors
#15 47.12 github.com/golangci/golangci-lint/pkg/lint
#15 47.18 github.com/golangci/golangci-lint/pkg/commands
#15 47.32 github.com/golangci/golangci-lint/cmd/golangci-lint
#15 50.57 go: downloading github.com/go-delve/delve v1.8.2-0.20220210175055-dee4437bd088
#15 51.13 go install: github.com/go-delve/delve/cmd/dlv@master (in github.com/go-delve/[email protected]):
#15 51.13 The go.mod file for the module providing named packages contains one or
#15 51.13 more replace directives. It must not contain directives that would cause
#15 51.13 it to be interpreted differently than if it were the main module.
#15 51.13 mv: cannot stat '/tmp/gotools/bin/dlv': No such file or directory
------
Dockerfile_Baseline:45
--------------------
43 | GOPATH=/go
44 | ENV PATH=${GOPATH}/bin:${GOROOT}/bin:${PATH}
45 | >>> RUN apt-get update && bash /tmp/library-scripts/go-debian.sh "1.17.6" "${GOROOT}" "${GOPATH}" && apt-get clean -y
46 |
47 | #see: [microsoft/vscode-dev-containers@main/script-library/docs/sshd.md](https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/sshd.md)
--------------------
error: failed to solve: process "/bin/sh -c apt-get update && bash /tmp/library-scripts/go-debian.sh \"1.17.6\" \"${GOROOT}\" \"${GOPATH}\" && apt-get clean -y" did not complete successfully: exit code: 1 |
literally the same...
|
That is unrelated. Updating to github.com/go-delve/delve/cmd/[email protected] in the script should fix it tactically. It looks like there was a break in the latest version that is causing a failure. |
@hyangah - We're hitting a bit of a problem with a half-released version of go, but the other note here is that we've now we've now seen the github.com/go-delve/delve/cmd/dlv@master install fail a couple times with a break. Is that still needed with the latest version of the Go extension? |
I just merged in a change into master that should handle the current situation. Keeping this open for a release to publish the updated script for use in dev container features. //cc @chrmarti @joshspicer |
@Chuxel The latest vscode-go extension no longer depends on |
What's the best way of getting the latest master to build the image? We're blocked on the dlv issue after trying to do another rebuild. Is this a vs-remote extension update or a codespaces extension update? |
@awmcclain I think @Chuxel already resolved the |
Sorry— I’m probably misunderstanding.
All of these dependencies are coming in off the standard .devcontainer json
(specifically the “go” feature) that we generated from the codespaces
extension— we’re not specifying dlv directly at all.
I’m wondering how we can alter our .devcontainer to get the latest updates
from master (or any fixes) — are the files in this repo baked into an
extension? Is there a @master we can specify in our .devcontainer to pick
up these fixes? Did we need to wait for an extension release?
I can’t find any documentation on the relationship of this repo to
codespaces in general, so I apologize if this is naive.
On Sat, Feb 12, 2022 at 6:01 PM Hyang-Ah Hana Kim ***@***.***> wrote:
@awmcclain <https://github.com/awmcclain> I think @Chuxel
<https://github.com/Chuxel> already resolved the dlv issue with #1304
<#1304>. ***@***.***
is sufficient and ***@***.*** is no longer needed.
—
Reply to this email directly, view it on GitHub
<#1300 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI3RR74EMJEDN3UODB2KGLU24GGFANCNFSM5N6N3HGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Sent from a phone
|
Good morning. This is blocking me as well. I updated the golang version to 1.17.6, but I see the same problem in my codespace. |
@awmcclain You can add a reference to the script in your Dockerfile instead until this is deployed in Codespaces. @joshspicer is working on that. See https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/go.md EDIT: You should also be able to reference |
(Additionally to what Chuck has suggested, if you're using devcontainer The cached version of this script in Codespaces currently tied to a slightly slower release schedule - it should be deployed in the next day or two. (And we're actively working on decoupling to prevent situations like this in the future!) In the meantime you may want to try our preview functionality we're dubbing "remote feature", by changing your
This will dynamically pull the very latest Please note this functionality is in preview and we're actively moving bits of this functionality around. Long-term, we hope to stop pre-packaging these scripts and dynamically fetch them, to alleviate situations where codespaces gets out of sync (especially when an upstream change breaks us and we want to push out fixes fast!) Example repo: https://github.com/joshspicer/codespace-features-example/tree/go |
fyi dlv@master build is fixed. |
Closing since the core situation has been resolved and we've got updated scripts to handle something happening down the road. Thanks! |
Apparently the go version got bumped this morning -- selecting go as a feature causes new images/rebuilds to fail.
creation log:
devcontainer.json
Changing the golang version to 1.17.6 fixes.
The text was updated successfully, but these errors were encountered: