You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened?
In a dev container that uses the pre-commit dev container feature to install pre-commit, I have a "postCreateCommand": "pre-commit install". It fails to run:
16:26:53 info Run command : pre-commit install...
16:26:53 warn bash: line 1: pre-commit: command not found
16:26:53 info lifecycle hooks: failed to run: pre-commit install, error: exit status 127
16:26:53 info devcontainer up: run agent command: Process exited with status 1
16:26:53 error Try using the --debug flag to see a more verbose output
16:26:53 fatal run agent command: Process exited with status 1
What did you expect to happen instead?
pre-commit should be in PATH in the dev container context: it is installed by the feature.
How can we reproduce the bug? (as minimally and precisely as possible)
This repo reproduces the issue with devpod up . --recreate:
{
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"remoteEnv": {
// set variable to the local user
// Needed to upload to the db as the correct user
"OS_USER": "${localEnv:USER}"
},
"features": {
"ghcr.io/prulloac/devcontainer-features/pre-commit:1": {},
},
"remoteUser": "devuser",
// install pre-commit Git hooks automatically after build
"postCreateCommand": "pre-commit install",
}
What happened?
In a dev container that uses the pre-commit dev container feature to install
pre-commit
, I have a"postCreateCommand": "pre-commit install"
. It fails to run:What did you expect to happen instead?
pre-commit
should be in PATH in the dev container context: it is installed by the feature.How can we reproduce the bug? (as minimally and precisely as possible)
This repo reproduces the issue with
devpod up . --recreate
:https://github.com/eguiraud/devpod-postcreatecommand-issue
The
devcontiner.json
:Local Environment:
DevPod Provider:
Anything else we need to know?
Works with VSCode.
Related (closed) issue: #1084
The text was updated successfully, but these errors were encountered: