File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments