Repository navigation
Improve error message clarity - #1351
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the cache-miss dependency error message emitted by the cache distributor to include the active package manager and provide clearer next-step guidance for users of the action.
Changes:
- Expanded the thrown error message when no dependency file is found to include
packageManagercontext and remediation guidance. - Regenerated the compiled
dist/bundles to reflect the source change. - Updated the cache restore test assertion to match the new error text.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/cache-distributions/cache-distributor.ts | Updates the runtime error message for missing dependency-file matches. |
| dist/setup/index.js | Updates the bundled setup entrypoint to include the new error message. |
| dist/cache-save/index.js | Updates the bundled cache-save entrypoint to include the new error message. |
| tests/cache-restore.test.ts | Adjusts the expected thrown error string to match the new message. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
v-priya-kinthali
approved these changes
Aug 19, 2026
v-jitenderpalsingh
approved these changes
Aug 19, 2026
v-HarithaVattikuti
approved these changes
Aug 20, 2026
Closed
2 tasks
luketainton
pushed a commit
to luketainton/actions_gha-workflows
that referenced
this pull request
Oct 24, 2026
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-python](https://github.com/actions/setup-python) | action | minor | `v7.0.0` → `v7.1.0` | --- ### Release Notes <details> <summary>actions/setup-python</summary> ### [`v7.1.0`](https://github.com/actions/setup-python/releases/tag/v7.1.0) [Compare Source](actions/setup-python@v7.0.0...v7.1.0) ##### What's Changed ##### Enhancements - Add `mirror` and `mirror-token` inputs for custom Python distribution sources by [@​luhenry](https://github.com/luhenry) in [#​1302](actions/setup-python#1302) - Improve error message clarity by [@​v-lmvysakh](https://github.com/v-lmvysakh) in [#​1351](actions/setup-python#1351) ##### Dependency Upgrade - Upgrade browserslist from 4.28.2 to 4.28.9 by [@​dependabot](https://github.com/dependabot) in [#​1353](actions/setup-python#1353) - Upgrade [@​typescript-eslint/parser](https://github.com/typescript-eslint/parser) from 8.62.0 to 8.70.0 by [@​dependabot](https://github.com/dependabot) in [#​1343](actions/setup-python#1343) - Upgrade eslint-plugin-jest from 29.15.2 to 29.16.6 by [@​dependabot](https://github.com/dependabot) in [#​1342](actions/setup-python#1342) - Upgrade [@​vercel/ncc](https://github.com/vercel/ncc) from 0.44.0 to 0.45.0 by [@​dependabot](https://github.com/dependabot) in [#​1357](actions/setup-python#1357) - Upgrade [@​types/semver](https://github.com/types/semver) from 7.7.1 to 7.8.0 by [@​dependabot](https://github.com/dependabot) in [#​1359](actions/setup-python#1359) - Upgrade undici from 6.28.0 to 6.29.0 by [@​dependabot](https://github.com/dependabot) in [#​1364](actions/setup-python#1364) - Upgrade ts-jest from 29.4.11 to 29.4.14 by [@​dependabot](https://github.com/dependabot) in [#​1361](actions/setup-python#1361) - Upgrade brace-expansion from 5.0.9 to 5.0.12 by [@​dependabot](https://github.com/dependabot) in [#​1365](actions/setup-python#1365) - Upgrade prettier from 3.8.4 to 3.9.9 and package.json from 7.0.0 to 7.1.0 by [@​dependabot](https://github.com/dependabot) in [#​1363](actions/setup-python#1363) - Upgrade [@​typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.62.0 to 8.71.1 by [@​dependabot](https://github.com/dependabot) in [#​1369](actions/setup-python#1369) - Upgrade actions/checkout from 7.0.0 to 7.0.1 by [@​dependabot](https://github.com/dependabot) in [#​1345](actions/setup-python#1345) - Upgrade cache to 6.3.0 by [@​v-HarithaVattikuti](https://github.com/v-HarithaVattikuti) in [#​1370](actions/setup-python#1370) - Resolve Basic Validation audit failures by [@​v-HarithaVattikuti](https://github.com/v-HarithaVattikuti) in [#​1347](actions/setup-python#1347) - Resolve npm audit failures by [@​v-HarithaVattikuti](https://github.com/v-HarithaVattikuti) in [#​1350](actions/setup-python#1350) ##### New Contributors - [@​luhenry](https://github.com/luhenry) made their first contribution in [#​1302](actions/setup-python#1302) **Full Changelog**: <actions/setup-python@v7.0.0...v7.1.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjAuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE2MC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==--> Reviewed-on: https://git.tainton.uk/actions/gha-workflows/pulls/132 Reviewed-by: Luke Tainton <luke@tainton.uk> Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Updates the error message to provide clearer information to users.
Check list: