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

Fix cabal store path for gh-action Ubuntu #1183

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pgrange
Copy link

@pgrange pgrange commented Jun 8, 2023

Nothing's cached when applying suggested configuration for cabal caching. Exploring the Ubuntu image, it happens that cabal does not store its data in ~/.cabal but, instead, in:

  • ~/.cache/cabal/packages
  • ~/.local/state/cabal

You can see this CI using this configuration: https://github.com/pgrange/to_remove_cache/blob/main/.github/workflows/blank.yml

Description

Fix suggested configuration for cabal.

Motivation and Context

The cache was not working for me and it took me some time to figure out that the cache was not looking into the appropriate paths.

How Has This Been Tested?

See this exemple CI: https://github.com/pgrange/to_remove_cache/blob/main/.github/workflows/blank.yml

See this CI run where we can see something's been fetched from the cache: https://github.com/pgrange/to_remove_cache/actions/runs/5216337562/jobs/9414956883

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • [x ] Documentation (add or update README or docs)

Checklist:

  • [x ] My code follows the code style of this project.
  • [ x] My change requires a change to the documentation.
  • [ x] I have updated the documentation accordingly.
  • [ x] I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@pgrange pgrange requested a review from a team as a code owner June 8, 2023 22:59
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 this pull request may close these issues.

1 participant