Skip to content
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

Saving deps cache on windows #30

Closed
deemp opened this issue Jan 8, 2024 · 2 comments · Fixed by #32
Closed

Saving deps cache on windows #30

deemp opened this issue Jan 8, 2024 · 2 comments · Fixed by #32

Comments

@deemp
Copy link
Contributor

deemp commented Jan 8, 2024

Hi! On a Windows runner, the action saves almost no deps. Here are the last lines of logs (link) for cache/save:

2024-01-06T20:52:11.0212239Z ##[group]Run actions/cache/save@v3
2024-01-06T20:52:11.0212593Z with:
2024-01-06T20:52:11.0212963Z   path: ~/.stack
./rzk-js/.stack-work
./rzk/.stack-work
./.stack-work

2024-01-06T20:52:11.0214098Z   key: Windows-stack-deps-ghc-9.6.3-c757603d4408c896376e0374586b34f0558c8e33b84a8f65172bdc4a128bf355-0606785d46d422f42bae30bac4456b1bb19c79fd95878814eb8839726aa17ae4
2024-01-06T20:52:11.0215218Z   enableCrossOsArchive: false
2024-01-06T20:52:11.0215553Z ##[endgroup]
2024-01-06T20:52:11.2543589Z [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/rzk/rzk --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2024-01-06T20:52:11.9347363Z Cache Size: ~0 MB (71719 B)
2024-01-06T20:52:12.0100618Z Cache saved successfully
2024-01-06T20:52:12.0108447Z Cache saved with key: Windows-stack-deps-ghc-9.6.3-c757603d4408c896376e0374586b34f0558c8e33b84a8f65172bdc4a128bf355-0606785d46d422f42bae30bac4456b1bb19c79fd95878814eb8839726aa17ae4
@pbrisbin
Copy link
Member

pbrisbin commented Jan 8, 2024

2024-01-06T20:52:11.9347363Z Cache Size: ~0 MB (71719 B)

Good catch! I think this is a huge clue in #28.

So, where does Stack place things on Windows? Is this not the correct set of paths?

path: ~/.stack
./rzk-js/.stack-work
./rzk/.stack-work
./.stack-work

As far as I know, choosing this option is all we can control here, the rest is actions/cache/save.

@deemp
Copy link
Contributor Author

deemp commented Jan 8, 2024

These paths seem relevant (link, link):

~\AppData\Roaming\stack
~\AppData\Local\Programs\stack

This was referenced Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants