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

setup-uv incompatible with alpine #278

Closed
yhu02 opened this issue Feb 12, 2025 · 4 comments · Fixed by #284
Closed

setup-uv incompatible with alpine #278

yhu02 opened this issue Feb 12, 2025 · 4 comments · Fixed by #284

Comments

@yhu02
Copy link

yhu02 commented Feb 12, 2025

Hi I'm trying to use this action in an alpine distro but I get the following error when trying to use the command after installing it.

__res_init: symbol not found

Image Image

I've tried replicating it in my local environment and these are my findings.
Doing curl -LsSf https://astral.sh/uv/install.sh | sh works fine and shows the following

Image

However, replicating the behaviour of the setup-uv action i.e. downloading directly from https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-x86_64-unknown-linux-gnu.tar.gz gives me the following

Image

But, it seems that it is resolving to the wrong binary, i need the other one https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-x86_64-unknown-linux-musl.tar.gz

Image Image

It seems like it always resolves to the gnu variant

linux: "unknown-linux-gnu",

Is it possible to enter an input parameter platform for the action?

@eifinger
Copy link
Collaborator

I assume you are running this inside a container?

@yhu02
Copy link
Author

yhu02 commented Feb 12, 2025

Yes, that is correct. We build our own images

Image

I assume you are running this inside a container?

@eifinger
Copy link
Collaborator

Can you please try with uses: astral-sh/setup-uv@musl-support?
Please be aware that you have to make sure a python interpreter is already present (apk add python3), see also https://docs.astral.sh/uv/concepts/python-versions/#cpython-distributions and astral-sh/uv#6890

@eifinger
Copy link
Collaborator

@yhu02 feel free to reopen if your issue is not fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants