-
Notifications
You must be signed in to change notification settings - Fork 373
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 command not found in feature installation despite dependsOn on ghcr.io/devcontainers/features/go:1 #1518
Comments
Hi @thediveo thanks for raising your issue. Reading the spec I believe you need to specify the dependant features in your devcontainer.json. Can you try adding |
I'm not sure I understand you here. The features themselves have their Go feature dependency set, including the one where devpod fails at (logs seem to indicate devpod also fails in other features, too). Having the devcontainer's meta data to list all transient dependencies sounds unreasonable to me. In fact, vscode's devcontainer spec implementation works correctly here. I mean, part of the spec is about recursive dependency resolution. |
I was reading https://containers.dev/implementors/features/#dependsOn and saw |
The "needed to be satisfied" IMHO is to be understood in contrast to the the installAfter, see https://containers.dev/implementors/features/#installation-order. Seriously, what use would https://containers.dev/implementors/features/#dependsOn have for the dev experience if a devcontainer needs to specify the transitive/recursive dependencies? None. I'm struggling with that we even discuss such basic behavior and user expectation here, more so, as Microsoft got it right out of the box. |
Here's the devpod.log from the failed attempt using a locally checked-out clone of https://github.com/thediveo/enumflag ... because trying to directly create a new workspace by cloning fails in devpod without no clear sign as to why it should fail on a public repo. |
Besides installation order there can be another source of problem if the path settings are interpreted differently between vscode devcontainers/devcontainers and devpod. The unit tests of my referenced features work correctly when tested using the |
What happened?
Creating a new workspace from the locally cloned repository github.com/thediveo/enumflag fails. devpod fails to correctly configure and install a devcontainer feature that has a "dependsOn" on ghcr.io/devcontainers/features/go:1, in particular, when the dependent feature's install script runs and tries to invoke the
go
command, it cannot be found.What did you expect to happen instead?
The workspace creation to succeed, as it does with VSCode and its devcontainer implementation.
How can we reproduce the bug? (as minimally and precisely as possible)
My
devcontainer.json
:Local Environment:
DevPod Provider:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: