-
-
Notifications
You must be signed in to change notification settings - Fork 61
fix: use workspace-local mise dir on Windows for cache compatibility #437
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -399,6 +399,7 @@ function miseDir(): string { | |||||||||||||||
| const { MISE_DATA_DIR, XDG_DATA_HOME, LOCALAPPDATA } = process.env | ||||||||||||||||
| if (MISE_DATA_DIR) return MISE_DATA_DIR | ||||||||||||||||
| if (XDG_DATA_HOME) return path.join(XDG_DATA_HOME, 'mise') | ||||||||||||||||
|
|
||||||||||||||||
| if (process.platform === 'win32' && LOCALAPPDATA) | ||||||||||||||||
| return path.join(LOCALAPPDATA, 'mise') | ||||||||||||||||
|
Comment on lines
403
to
404
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The PR title promises "use workspace-local mise dir on Windows for cache compatibility," but The intended fix — falling back to
Suggested change
|
||||||||||||||||
|
|
||||||||||||||||
|
|
@@ -408,6 +409,14 @@ function miseDir(): string { | |||||||||||||||
| async function saveCache(cacheKey: string): Promise<void> { | ||||||||||||||||
| await core.group(`Saving mise cache`, async () => { | ||||||||||||||||
| const cachePath = miseDir() | ||||||||||||||||
| core.info(`Cache path: ${cachePath}`) | ||||||||||||||||
| core.info(`Cache path exists: ${fs.existsSync(cachePath)}`) | ||||||||||||||||
| core.info(`Platform: ${process.platform}`) | ||||||||||||||||
| core.info(`GITHUB_WORKSPACE: ${process.env.GITHUB_WORKSPACE}`) | ||||||||||||||||
| if (fs.existsSync(cachePath)) { | ||||||||||||||||
| const contents = await fs.promises.readdir(cachePath) | ||||||||||||||||
| core.info(`Cache dir contents: ${JSON.stringify(contents)}`) | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| if (!fs.existsSync(cachePath)) { | ||||||||||||||||
| throw new Error(`Cache folder path does not exist on disk: ${cachePath}`) | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACTIONS_STEP_DEBUG permanently enabled in CI workflow
Low Severity
ACTIONS_STEP_DEBUG: trueis set as a permanent environment variable on the test step. This enables verbose GitHub Actions step-level debug output for every CI run, not just during active debugging. This looks like a leftover from investigating the Windows caching issue described in the PR.Reviewed by Cursor Bugbot for commit 121dc09. Configure here.