generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
.rye folder location #193
Comments
Thanks for reporting that. Moving |
Is that Rye's home? Would we be able to place it in another spot like this? setup-rye on main [!] via v18.17.1
❯ git diff
diff --git a/.github/workflows/test-cache.yml b/.github/workflows/test-cache.yml
index 55b251d..9cbe166 100644
--- a/.github/workflows/test-cache.yml
+++ b/.github/workflows/test-cache.yml
@@ -9,6 +9,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
+env:
+ RYE_HOME: __tests__/fixtures/.rye
+
jobs:
test-setup-cache:
runs-on: ${{ matrix.os }}
diff --git a/src/restore-cache.ts b/src/restore-cache.ts
index eb5c8dc..d43e50e 100644
--- a/src/restore-cache.ts
+++ b/src/restore-cache.ts
@@ -11,7 +11,7 @@ export const STATE_CACHE_MATCHED_KEY = 'cache-matched-key'
export const workingDirInput = core.getInput('working-directory')
export const workingDir = workingDirInput ? `/${workingDirInput}` : ''
export const venvPath = `${process.env['GITHUB_WORKSPACE']}${workingDir}/.venv`
-export const ryeHomePath = `${process.env['GITHUB_WORKSPACE']}${workingDir}/.rye`
+export const ryeHomePath = `${process.env['GITHUB_WORKSPACE']}$/.rye`
const CACHE_VERSION = '2' I'm not too familiar with building github actions, so maybe I'm misunderstanding something. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some time with the latest release of this action, a new
.rye
folder showed up in the checkout location which now confuses calls likerye fmt
etc. I had to add that folder to thepyproject.toml
as excluded. This does not seem ideal.astral-sh/rye#822
The text was updated successfully, but these errors were encountered: