Skip to content

Update Coursier default version to v2.1.24#22906

Merged
benjyw merged 7 commits into
pantsbuild:mainfrom
enragedginger:update-coursier-version
Nov 26, 2025
Merged

Update Coursier default version to v2.1.24#22906
benjyw merged 7 commits into
pantsbuild:mainfrom
enragedginger:update-coursier-version

Conversation

@enragedginger
Copy link
Copy Markdown
Contributor

@enragedginger enragedginger commented Nov 21, 2025

Pick up the fix for this Coursier bug.

Running the reported cs command (cs fetch --json-output-file example.json org.apache.hive:hive-exec:1.1.0 --exclude org.apache.calcite:calcite-avatica --exclude org.apache.calcite:calcite-core --exclude jdk.tools:jdk.tools) results in an example.json file where hive-exec depends on junit 4.11 which is present in the file as well with its own coord entry.

@enragedginger enragedginger marked this pull request as draft November 21, 2025 13:25
@enragedginger enragedginger marked this pull request as ready for review November 21, 2025 13:50
@enragedginger
Copy link
Copy Markdown
Contributor Author

@benjyw Can you review this when you have a chance?

@sureshjoshi
Copy link
Copy Markdown
Member

Thanks!

If no one gets to this before then, I'll be more available for reviews once I finally bring home the Python 3.14 upgrade, hopefully this weekend or next week.

dependency_entry
entries.get((d.group, d.artifact, d.classifier))
for d in entry.dependencies
# The dependency might not be present in the entries due to coursier bug:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not yet confident that the issue has been fixed on the coursier side, just because the one example we had seems not to occur. Can we point to the coursier PR that truly fixes this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I cloned down coursier and ran git bisect to find the exact commit that fixed things.

It's this one. PR is this one.

Do you want a comment linking to either of these in the code or were you just asking for a pointer on this PR to the fix from the coursier side?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for doing the digging! Looking at that change, it makes total sense that this fixes the issue. No need to link to this in the code (especially since the comment would have to say something like "we used to work around this Coursier bug here, and now we don't have to", which is hardly necessary). I just wanted us to be reasonably confident that this issue is indeed fixed.

Copy link
Copy Markdown
Contributor

@benjyw benjyw left a comment

Choose a reason for hiding this comment

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

Nice!

@enragedginger
Copy link
Copy Markdown
Contributor Author

I updated the PR summary and release notes, so I think the PR check should pass now

@enragedginger
Copy link
Copy Markdown
Contributor Author

Sorry for the back-and-forth on this. Lint, check, and test are all passing now on my machine.

@benjyw benjyw merged commit 785b8f2 into pantsbuild:main Nov 26, 2025
25 checks passed
@enragedginger enragedginger deleted the update-coursier-version branch November 27, 2025 21:37
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