Skip to content
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

bug: bentoml containerize failed by uv installation location change #5069

Open
lingw777 opened this issue Nov 8, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@lingw777
Copy link

lingw777 commented Nov 8, 2024

Describe the bug

My CICD build is failing at bentoml containerize

RUN curl -LO https://astral.sh/uv/install.sh &&     sh install.sh && rm install.sh && mv $HOME/.cargo/bin/uv /usr/local/bin/
#12 0.858 downloading uv 0.5.0 x86_64-unknown-linux-gnu
#12 1.514 installing to /root/.local/bin
#12 1.553 mv: cannot stat '/root/.cargo/bin/uv': No such file or directory

It's probably related to recent uv release. See astral-sh/uv#8913

To reproduce

No response

Expected behavior

No response

Environment

bentoml: 1.3.10
python: 3.10
platform: --opt platform=linux/amd64,linux/arm64

@lingw777 lingw777 added the bug Something isn't working label Nov 8, 2024
@lingw777
Copy link
Author

lingw777 commented Nov 8, 2024

Found this breaking change in uv release note

Use XDG (i.e. ~/.local/bin) instead of the Cargo home directory in the installer (#8420)

Previously, uv's installer used $CARGO_HOME or ~/.cargo/bin for its target install directory. It's been a longstanding complaint that uv uses this directory, as there's no relationship to Cargo. Now, uv will be installed into $XDG_BIN_HOME, $XDG_DATA_HOME/../bin, or ~/.local/bin (in that order). Note that $UV_INSTALL_DIR can always be used to override the target directory. Upgrading with uv self update will not move uv to the new install directory.

and bentoML base docker image scripts pull from latest installation scripts https://astral.sh/uv/install.sh but still trying to mv $HOME/.cargo/bin/uv
See

sh install.sh && rm install.sh && mv $HOME/.cargo/bin/uv /usr/local/bin/

@frostming
Copy link
Contributor

The fix is on the way to the next release.

@mobecks
Copy link

mobecks commented Nov 8, 2024

Workaround until next release (worked for me):
change above-mentioned "line 17" to
sh install.sh && rm install.sh && mv $HOME/.local/bin/uv /usr/local/bin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants