Skip to content

Conversation

@otaviocc
Copy link
Owner

Changed hashFiles pattern from Package.resolved to Package.swift because Package.resolved doesn't exist in the repository at checkout time, causing the hashFiles() function to fail. Package.swift always exists and will properly invalidate the cache when dependencies change.

Fixes: hashFiles('**/Package.resolved') failed error

Changed hashFiles pattern from Package.resolved to Package.swift because
Package.resolved doesn't exist in the repository at checkout time, causing
the hashFiles() function to fail. Package.swift always exists and will
properly invalidate the cache when dependencies change.

Fixes: hashFiles('**/Package.resolved') failed error
@otaviocc otaviocc self-assigned this Nov 23, 2025
Remove **/ glob pattern and use direct file path 'Package.swift' instead
of '**/Package.swift' to avoid hashFiles validation errors in GitHub Actions.
Replace hashFiles() with static versioned cache key to avoid template
validation errors. When dependencies change, increment the version number
(v1 -> v2) to invalidate the cache.
@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.84%. Comparing base (dd4af41) to head (1de7216).
⚠️ Report is 4 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   98.74%   98.84%   +0.10%     
==========================================
  Files          64       64              
  Lines        4781     3999     -782     
==========================================
- Hits         4721     3953     -768     
+ Misses         60       46      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@otaviocc otaviocc merged commit d944eef into main Nov 23, 2025
3 checks passed
@otaviocc otaviocc deleted the claude/fix-workflow-hashfiles-01AU68YNdYoXZNyXN2fXRvuB branch November 23, 2025 11:53
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.

3 participants