Skip to content

Commit

Permalink
Avoid duplicate rye bootstrap (#149)
Browse files Browse the repository at this point in the history
The previous implementation installed rye to a location outside of home. If the env var `RYE_HOME` is not set to that location rye can't find it and bootstraps itself to the user home.
  • Loading branch information
eifinger authored Feb 7, 2024
1 parent d9927b7 commit 2a1e535
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/setup/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/setup-rye.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ async function installRye(

const cachedPath = await tc.cacheDir(tempDir, 'rye', version, arch)
core.info(`Moved Rye into ${cachedPath}`)
core.exportVariable('RYE_HOME', cachedPath)
return cachedPath
}

Expand Down

0 comments on commit 2a1e535

Please sign in to comment.