GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Cache Maven Distributions downloaded by the Maven Wrapper by yeikel · Pull Request #453 · actions/setup-java

Conversation

@yeikel

@yeikel yeikel commented Feb 12, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Related issue : #448

With cache: https://github.com/yeikel/mvn-wrapper-caching-test/actions/runs/4158390216/jobs/7193735589

Without cache : https://github.com/yeikel/mvn-wrapper-caching-test/actions/runs/4158489501/jobs/7193751281

2023-02-12 22:15:22 (4.06 MB/s) - ‘/home/runner/work/mvn-wrapper-caching-test/mvn-wrapper-caching-test/.mvn/wrapper/maven-wrapper.jar’ saved [59925/59925]
[INFO] Apache Maven Wrapper 3.1.1
[INFO] Installing Maven distribution /home/runner/.m2/wrapper/dists/apache-maven-3.8.5-bin/67203e94
[INFO] Downloading https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
[INFO] Unzipping /home/runner/.m2/wrapper/dists/apache-maven-3.8.5-bin/67203e94/apache-maven-3.8.5-bin.zip to /home/runner/.m2/wrapper/dists/apache-maven-3.8.5-bin/67203e94

Cache invalidation after a maven upgrade : https://github.com/yeikel/mvn-wrapper-caching-test/actions/runs/4158550035/jobs/7193847666

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jfallows reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@yeikel
yeikel requested a review from a team as a code owner February 12, 2023 22:16
@yeikel

yeikel commented Feb 16, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

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>

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yeikel yeikel mentioned this pull request Feb 16, 2023
Cache Maven distribution downloaded by Maven Wrapper #448
Closed
@IvanZosimov

IvanZosimov commented Feb 17, 2023

Copy link
Copy Markdown
Contributor

@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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yeikel

yeikel commented Feb 17, 2023

Copy link
Copy Markdown
Author

@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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yeikel

yeikel commented Feb 28, 2023

Copy link
Copy Markdown
Author

@IvanZosimov Could you please approve the workflow? Hopefully after my latest commits there are no more conflicts

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@IvanZosimov IvanZosimov linked an issue Jul 7, 2023 that may be closed by this pull request
Cache Maven distribution downloaded by Maven Wrapper #448
Closed
@v-mahabaleshwars

v-mahabaleshwars commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yeikel

yeikel commented Apr 29, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

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
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@v-mahabaleshwars

v-mahabaleshwars commented May 4, 2026

Copy link
Copy Markdown
Contributor

Hi @yeikel,
The format-check CI job is failing. Could you please run the formatter locally and commit the result?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yeikel
Cache Maven Dists downloaded by the Maven Wrapper
1e7dfcf
@yeikel

yeikel commented May 4, 2026

Copy link
Copy Markdown
Author

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
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@v-mahabaleshwars

v-mahabaleshwars commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

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!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@v-mahabaleshwars

v-mahabaleshwars commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

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!


All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@v-HarithaVattikuti v-HarithaVattikuti removed a link to an issue Jun 22, 2026
Cache Maven distribution downloaded by Maven Wrapper #448
Closed
@brunoborges

brunoborges commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brunoborges brunoborges closed this Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

4 participants

@yeikel @IvanZosimov @v-mahabaleshwars @brunoborges
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.