Skip to content

fix: resolve Sage caches from HOME in container jobs - #877

Closed
marcopellegrinoit wants to merge 1 commit into
einride:masterfrom
marcopellegrinoit:fix/container-job-cache-paths
Closed

marcopellegrinoit wants to merge 1 commit into
einride:masterfrom
marcopellegrinoit:fix/container-job-cache-paths

Conversation

@marcopellegrinoit

@marcopellegrinoit marcopellegrinoit commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Hash go.sum from the workspace shell instead of hashFiles('**/go.sum'), which looks under /home/runner/work and fails when the job runs in a container.
  • Point KOCACHE and the actions/cache paths at ~ / $HOME, so they follow /home/runner on a hosted runner and /github/home inside a container.

Testing

  • Run a job with container: and confirm setup no longer fails on hashFiles, and that the post-job cache save writes under $HOME.
  • Re-run that container job and confirm the tool caches are present before the build.

hashFiles and /home/runner paths miss the workspace and tool caches when the job runs inside a container.
@marcopellegrinoit

Copy link
Copy Markdown
Contributor Author

Superseded by #889, opened from a branch in this repository instead of a fork.

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