Skip to content

Commit 9b19f8f

Browse files
authored
Add warning about shadowed uv binaries to activate-environment (#439)
Closes astral-sh/uv#13785
1 parent d44461e commit 9b19f8f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ This allows directly using it in later steps:
137137
- run: uv pip install pip
138138
```
139139

140+
> [!WARNING]
141+
>
142+
> Activating the environment adds your dependencies to the `PATH`, which could break some workflows.
143+
> For example, if you have a dependency which requires uv, e.g., `hatch`, activating the
144+
> environment will shadow the `uv` binary installed by this action and may result in a different uv
145+
> version being used.
146+
>
147+
> We do not recommend using this setting for most use-cases. Instead, use `uv run` to execute
148+
> commands in the environment.
149+
140150
### Working directory
141151

142152
You can set the working directory with the `working-directory` input.

0 commit comments

Comments
 (0)