Skip to content

Commit

Permalink
fix: use lockfile for cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Nov 4, 2024
1 parent fb230aa commit 57eda1a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
24 changes: 12 additions & 12 deletions dist/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/index.js.map

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ async function restoreMiseCache(): Promise<void> {
const cachePath = miseDir()
const fileHash = await glob.hashFiles(
[
`**/.config/mise/config.toml`,
`**/.config/mise/config.*.toml`,
`**/.config/mise.toml`,
`**/.config/mise.*.toml`,
`**/.mise/config.toml`,
`**/.mise/config.*.toml`,
`**/mise/config.toml`,
`**/mise/config.*.toml`,
`**/.mise.toml`,
`**/.mise.*.toml`,
`**/mise.toml`,
`**/mise.*.toml`,
`**/.config/mise/config.{toml,lock}`,
`**/.config/mise/config.*.{toml,lock}`,
`**/.config/mise.{toml,lock}`,
`**/.config/mise.*.{toml,lock}`,
`**/.mise/config.{toml,lock}`,
`**/.mise/config.*.{toml,lock}`,
`**/mise/config.{toml,lock}`,
`**/mise/config.*.{toml,lock}`,
`**/.mise.{toml,lock}`,
`**/.mise.*.{toml,lock}`,
`**/mise.{toml,lock}`,
`**/mise.*.{toml,lock}`,
`**/.tool-versions`
].join('\n')
)
Expand Down

0 comments on commit 57eda1a

Please sign in to comment.