-
Notifications
You must be signed in to change notification settings - Fork 33
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
uv self update
command cannot be used inside the devcontainer
#54
Comments
Thank you for your issue! If the following settings are made, "onCreateCommand": "curl -LsSf https://astral.sh/uv/install.sh | sh",
"updateContentCommand": "uv self update",
"postCreateCommand": "uv sync --frozen", As you point out, Therefore, I recommend upgrading uv by restarting the devcontainer as is. |
Is there an example that package can be built using image copy, but cannot be built using command install? |
For example, an error occurred when executing the following command (I have the impression that there are many ML-related library installations) was executed. uv add transformers[ja,sentencepiece,torch] |
I've recently encountered a similar issue, but copying from the Dockerfile still didn't resolve it. uv add py-rust-stemmers The error message indicates that cargo cannot be found.
|
I recently started learning to use devcontainer, and this repo has taught me a lot.
The UV built and copied into the container in multiple stages cannot execute the
uv self update
command.If continue with the current approach, rebuilding the entire devcontainer might be the only way to upgrade the UV version?
I ultimately chose to use
onCreateCommand
to install UV, so I can useuv self update
to upgrade the UV version.Also, I'm not quite sure about the trigger timing for
updateContentCommand
, so I'm not sure if writing it this way is correct.I wonder if you think the approach mentioned above is appropriate?
The text was updated successfully, but these errors were encountered: