-
Notifications
You must be signed in to change notification settings - Fork 14
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
Cache fails for Windows fallback to copy #60
Comments
This happens because the default cache is on a different partition ( |
Yeah, I get, but I believe this tool should adjust the cache path accordingly. |
@gaborbernat are you using If yes, why did you not create a virtual environment? This would be created by default at the working directory which lies on the I you want to use the |
I am just trying to install a tool within the CI for which I found it a bit excessive to create a virtual environment. Especially as then I would need to activate or put the virtual environments path. onto the system path. I think this tool itself should change the cached path for UV, not myself. |
E.g. this should work out of box: - name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Add .local/bin to Windows PATH
if: runner.os == 'Windows'
shell: bash
run: echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
- name: install hatch
run: uv tool install --python-preference only-managed --python 3.13 hatch https://github.com/tox-dev/platformdirs/actions/runs/10907772759/job/30272231706 and not warn about cannot use the cache 👍 |
This comment was marked as outdated.
This comment was marked as outdated.
I am still getting the same warning https://github.com/tox-dev/platformdirs/actions/runs/10925997549/job/30328840701?pr=308 via tox-dev/platformdirs#308 |
https://github.com/tox-dev/platformdirs/actions/runs/10760776068/job/29839144844?pr=300
The text was updated successfully, but these errors were encountered: