GeezerVison is showing github.com — Cache Maven Distributions downloaded by the Maven Wrapper by yeikel · Pull Request #453 · actions/setup-java
Conversation
yeikel
commented
Feb 12, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jfallows reacted with thumbs up emoji
yeikel
commented
Feb 16, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
I am not sure why the "Check dist" is failing. Any help would be appreciated
C:\Users\Yeikel\setup-java>nvm list
- 16.19.0 (Currently using 64-bit executable)
C:\Users\Yeikel\setup-java>npm ci --ignore-scripts
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
added 407 packages, and audited 408 packages in 4s
25 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
C:\Users\Yeikel\setup-java>npm run build
[email protected] build
ncc build -o dist/setup src/setup-java.ts && ncc build -o dist/cleanup src/cleanup-java.ts
ncc: Version 0.33.4
ncc: Compiling file index.js into CJS
ncc: Using [email protected] (local user-provided)
4165kB dist\setup\index.js
4165kB [6176ms] - ncc 0.33.4
ncc: Version 0.33.4
ncc: Compiling file index.js into CJS
ncc: Using [email protected] (local user-provided)
2800kB dist\cleanup\index.js
2800kB [4451ms] - ncc 0.33.4
C:\Users\Yeikel\setup-java>git status
On branch cache/mvn-wrapper
Your branch is up to date with 'origin/cache/mvn-wrapper'.
nothing to commit, working tree clean
C:\Users\Yeikel\setup-java>
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@yeikel, just tried to rebuild your solution locally on Windows, check the output out:
C:\Users\Desktop\Yeikel\setup-java> git status
On branch cache/mvn-wrapper
Your branch is up to date with 'origin/cache/mvn-wrapper'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: dist/cleanup/index.js
modified: dist/setup/index.js
no changes added to commit (use "git add" and/or "git commit -a")
Try to rebuild one more time.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
@yeikel, just tried to rebuild your solution locally on Windows, check the output out:
C:\Users\Desktop\Yeikel\setup-java> git status
On branch cache/mvn-wrapper
Your branch is up to date with 'origin/cache/mvn-wrapper'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: dist/cleanup/index.js
modified: dist/setup/index.js
no changes added to commit (use "git add" and/or "git commit -a")
Try to rebuild one more time.
It seems that there is a slight difference in how the compiler behaves in Windows compared to Unix
I tried the same build in my Windows machine and it returned no changes. But in my Mac it created 1ec9456
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@IvanZosimov Could you please approve the workflow? Hopefully after my latest commits there are no more conflicts
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hey @yeikel,
The PR currently has merge conflicts due to base branch divergence.
Could you:
- Rebase onto the current main
- Rebuild the dist/ bundles
- Verify the tests still pass
Once the conflicts are resolved, this looks good to move forward with review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
yeikel
commented
Apr 29, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Hey @yeikel,
The PR currently has merge conflicts due to base branch divergence.
Could you:
* Rebase onto the current main
* Rebuild the dist/ bundles
* Verify the tests still pass
Once the conflicts are resolved, this looks good to move forward with review.
@mahabaleshwars I rebased it and ran npm run build on the latest build using node v24.14.1
The tests are also passing
Test Suites: 24 passed, 24 total
Tests: 744 passed, 744 total
Snapshots: 0 total
Time: 43.727 s
|
v-mahabaleshwars reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hi @yeikel,
The format-check CI job is failing. Could you please run the formatter locally and commit the result?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Hi @yeikel, The format-check CI job is failing. Could you please run the formatter locally and commit the result?
@mahabaleshwars I updated it
|
v-mahabaleshwars reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hi @yeikel,
Thanks again for the rebase and formatting fixes! Before we move forward, could you also address the following:
Documentation — The "Caching packages dependencies" section in README.md describes which files contribute to the Maven cache key. Since this PR changes both the hash inputs and the cached paths, please update the docs to reflect the new behavior.
Unit test coverage — The current Maven tests in __tests__/cache.test.ts only cover the pom.xml scenario. Could you add coverage for the new wrapper-based path so the behavior introduced by this PR is locked in?
End-to-end coverage — The new ~/.m2/wrapper/dists path isn't validated end-to-end in .github/workflows/e2e-cache.yml. Please extend the e2e workflow (and fixture, if needed) so this PR's behavior is covered across Linux, macOS, and Windows.
Let me know if you have any questions. Thanks!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hi @yeikel,
Whenever you get a chance, could you take a look at the three remaining items from my previous comment so we can move forward with review?
Let me know if you have any questions or would like a hand with any of these. Thanks!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR is now superseded by #1027, which has already been merged and covers the Maven Wrapper cache support (including broader pattern matching and updated docs/tests). Closing this one as superseded.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|