Skip to content

Commit f45fd3e

Browse files
committed
This should work
Signed-off-by: Gary Oberbrunner <[email protected]>
1 parent fccbd0c commit f45fd3e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,12 @@ jobs:
208208
# uv also installs a symlink in $HOME/.local/bin but because
209209
# that is only a symlink, it causes problems with pip and venv.
210210
# As a workaround, prepend the actual bin dir to $PATH.
211-
ls $(uv python dir)
212-
uv_python_dir=$(uv python dir)
213-
uv_cpython_name=$(/bin/ls -1 $(uv python dir))
214-
PATH=$uv_python_dir/$uv_cpython_name/bin:$PATH
215-
# Save updated path (note: don't use $GITHUB_ENV here)
216-
echo "$PATH" >> $GITHUB_PATH
217-
echo uv python is in $UV_PYTHON_BIN
218-
echo Updated PATH to include that: $PATH
211+
uv_python_dir="$(uv python dir)"
212+
uv_cpython_name="$(/bin/ls -1 $uv_python_dir)"
213+
uv_python_path="$uv_python_dir/$uv_cpython_name/bin"
214+
PATH="$uv_python_path":$PATH
215+
# Prepend to path for future steps (note: don't use $GITHUB_ENV here)
216+
echo "$uv_python_path" >> $GITHUB_PATH
219217
220218
- name: Check python, uv paths
221219
run: |

0 commit comments

Comments
 (0)