-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error when cloning repo in container volume using basecloj template #29
Comments
Looking at the log again I can see
So the value of |
yes, I have seen that as well (sometimes) Most OS have environemnt variable 'USER' set an then it does work. We had as well an other issue about the same thing: |
so this should fix it: "args": { Can you try , please ? |
I just noticed that we never "published" the fix done in #27. Could you maybe try the latest version of the template (1.0.2) ? |
Hi there, thanks for picking this up. I tried again earlier today from the VSCode ui directly, and it now works. So I guess VSCode must be picking up newer template versions automatically. I didn't try with the other One other point of note, the other template Anyway this can be closed now, thanks! |
Hi @behrica, I just tried Note: Is this a regression regarding Thanks 🙏
|
Looking at this:
seems to set the username explicitely to empty string. ARG USERNAME=vscode Maybe this happens only when using 'clone repo in dev container volume' (which I never used...) |
@alza-bitz ARG USERNAME=vscode with ENV USERNAME=vscode |
Does you devcontainer.json has this line ?
There we set the default to "vscode" |
Ok @behrica I edited the Result: no error, it seemed to work So this would just be a small PR then? Is it possible to test the use case Edit: would also be a good idea to check other cases still work with this change before merging, e.g. |
To persist the value into running containers. Fixes scicloj#29.
Hi there, when I attempt to create a new dev container using the
basecloj
template in VSCode, it makes some progress but ultimately fails.I didn't look too far into the cause but it seems like some
$USERNAME
script var is empty, so the groupadd command fails due to a missing argument.I did see that
ARG USERNAME=vscode
is present in the Dockerfile so I don't understand how this is happening, but there you go:The text was updated successfully, but these errors were encountered: