Skip to content

Commit

Permalink
Set RYE_HOME before installing rye
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Mar 4, 2024
1 parent f8aec3f commit e3b44ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 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.

5 changes: 2 additions & 3 deletions src/setup-rye.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ async function run(): Promise<void> {
if (arch === undefined) {
throw new Error(`Unsupported architecture: ${process.arch}`)
}

core.exportVariable('RYE_HOME', ryeHomePath)
core.info(`Set RYE_HOME to ${ryeHomePath}`)
const setupResult = await setupRye(
platform,
arch,
Expand All @@ -50,8 +51,6 @@ async function run(): Promise<void> {
if (enableCache) {
await restoreCache(cachePrefix, setupResult.version)
}
core.exportVariable('RYE_HOME', ryeHomePath)
core.info(`Set RYE_HOME to ${ryeHomePath}`)
} catch (err) {
core.setFailed((err as Error).message)
}
Expand Down

0 comments on commit e3b44ce

Please sign in to comment.