Skip to content

Updates the sbt cache docs in the README#327

Merged
dmitry-shibanov merged 1 commit intoactions:mainfrom
adamnfish:update-sbt-cache-docs
May 9, 2022
Merged

Updates the sbt cache docs in the README#327
dmitry-shibanov merged 1 commit intoactions:mainfrom
adamnfish:update-sbt-cache-docs

Conversation

@adamnfish
Copy link
Copy Markdown
Contributor

Description:

The README's description of sbt's cache behaviour does not match the implementation. An sbt build can be modified from multiple places and the current cache invalidation behaviour correctly captures these cases. The README only mentions build.sbt files, which might mean teams with more experience using sbt unnecessarily add their own cache patterns here.

Here's the (current) implementation, for reference:

pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']

Related issue:
N/A

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

The README's description of sbt's cache behaviour does not match the
implementation. An `sbt` build can be modified from multiple places
and the current cache invalidation behaviour correctly captures these
cases. The README only mentions `build.sbt` files, which might mean
teams with more experience using `sbt` unnecessarily add their own
cache patterns here.

Here's the (current) implementation, for reference:
https://github.com/actions/setup-java/blob/860f60056505705214d223b91ed7a30f173f6142/src/cache.ts#L43
@adamnfish adamnfish requested a review from a team May 6, 2022 16:55
Copy link
Copy Markdown
Contributor

@fmeriaux fmeriaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Good point, I had forgotten to edit this section in my contribution.

@dmitry-shibanov dmitry-shibanov merged commit 05b9e39 into actions:main May 9, 2022
tdfacer pushed a commit to ifit/setup-java that referenced this pull request Oct 7, 2025
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.

4 participants