setup-uv: Error: GetUserByName: "user redirect does not exist [name: astral-sh]
I’ve been using v3 for a while without any problems on my self-hosted runner. Just updated to v4 and ran into this GetUserByName error.
- name: Set up uv
id: setup-uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
prune-cache: false
Logs
2024-12-12 12:41:21 [ci/ci] ⭐ Run Main Set up uv
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
2024-12-12 12:41:21 [ci/ci] [DEBUG] Extracting content to '/var/run/act'
2024-12-12 12:41:21 [ci/ci] [DEBUG] expression '${{ github.token }}' rewritten to 'format('{0}', github.token)'
2024-12-12 12:41:21 [ci/ci] [DEBUG] evaluating expression 'format('{0}', github.token)'
2024-12-12 12:41:21 [ci/ci] [DEBUG] expression 'format('{0}', github.token)' evaluated to '%!t(string=***)'
2024-12-12 12:41:21 [ci/ci] [DEBUG] type=remote-action actionDir=/data/cache/actions/astral-sh-setup-uv@v4 actionPath= workdir=/workspace/Research/Python actionCacheDir=/data/cache/actions actionName=astral-sh-setup-uv@v4 containerActionDir=/var/run/act/actions/astral-sh-setup-uv@v4
2024-12-12 12:41:21 [ci/ci] [DEBUG] /var/run/act/actions/astral-sh-setup-uv@v4
2024-12-12 12:41:21 [ci/ci] [DEBUG] Removing /data/cache/actions/astral-sh-setup-uv@v4/.gitignore before docker cp
2024-12-12 12:41:21 [ci/ci] 🐳 docker cp src=/data/cache/actions/astral-sh-setup-uv@v4/ dst=/var/run/act/actions/astral-sh-setup-uv@v4/
2024-12-12 12:41:21 [ci/ci] [DEBUG] Writing tarball /tmp/act2175040455 from /data/cache/actions/astral-sh-setup-uv@v4/
2024-12-12 12:41:21 [ci/ci] [DEBUG] Stripping prefix:/data/cache/actions/astral-sh-setup-uv@v4/ src:/data/cache/actions/astral-sh-setup-uv@v4/
2024-12-12 12:41:21 [ci/ci] [DEBUG] Extracting content from '/tmp/act2175040455' to '/var/run/act/actions/astral-sh-setup-uv@v4/'
2024-12-12 12:41:21 [ci/ci] [DEBUG] executing remote job container: [node /var/run/act/actions/astral-sh-setup-uv@v4/dist/setup/index.js]
2024-12-12 12:41:21 [ci/ci] 🐳 docker exec cmd=[node /var/run/act/actions/astral-sh-setup-uv@v4/dist/setup/index.js] user= workdir=
2024-12-12 12:41:21 [ci/ci] [DEBUG] Exec command '[node /var/run/act/actions/astral-sh-setup-uv@v4/dist/setup/index.js]'
2024-12-12 12:41:21 [ci/ci] [DEBUG] Working directory '/workspace/Research/Python'
2024-12-12 12:41:22 [ci/ci] ::error::GetUserByName: "user redirect does not exist [name: astral-sh]"
2024-12-12 12:41:22 [ci/ci] | ::error::GetUserByName: "user redirect does not exist [name: astral-sh]"
2024-12-12 12:41:22 [ci/ci] ❌ Failure - Main Set up uv
2024-12-12 12:41:22 [ci/ci] exitcode '1': failure
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 17
Given that v5 now works I will close this.
Perhaps getting latest release of
uvdoesn’t really work outsidegithub.com? It seems that on Gitea / Forgejo this ends up looking atcode.example.com/astral-sh/..., which fails due toastral-shnot being present on that forge.I’ve just tested versions
4.0.0,4.1.0and4.2.0separately. And it seems that the breaking change happens between4.1.0and4.2.0. Sorry, I should have checked this more explicitly at first, rather than just checkingv4.So presumably it must be the changes introduced in