Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jvm] Fix parsing of Coursier report coordinates when packaging is reported. #13996

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Dec 27, 2021

As reported in #13986, artifacts with packaging specified in their POMs currently parse incorrectly from the Coursier report. While we wait for clarity upstream in coursier/coursier#2315, optionally apply fixed parsing in the relevant positions. Fixes #13986.

[ci skip-rust]
[ci skip-build-wheels]

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@stuhood stuhood merged commit 8aa7976 into pantsbuild:main Dec 27, 2021
@stuhood stuhood deleted the stuhood/fix-parsing-of-coursier-report-coordinates branch December 27, 2021 19:42
@stuhood stuhood added this to the 2.9.x milestone Dec 27, 2021
stuhood added a commit to stuhood/pants that referenced this pull request Dec 27, 2021
…s reported. (pantsbuild#13996)

As reported in pantsbuild#13986, artifacts with `packaging` specified in their POMs currently parse incorrectly from the `Coursier` report. While we wait for clarity upstream in coursier/coursier#2315, optionally apply fixed parsing in the relevant positions. Fixes pantsbuild#13986.

[ci skip-rust]
[ci skip-build-wheels]
stuhood added a commit that referenced this pull request Dec 27, 2021
…s reported. (cherrypick of #13996) (#13998)

As reported in #13986, artifacts with `packaging` specified in their POMs currently parse incorrectly from the `Coursier` report. While we wait for clarity upstream in coursier/coursier#2315, optionally apply fixed parsing in the relevant positions. Fixes #13986.

[ci skip-rust]
[ci skip-build-wheels]
stuhood pushed a commit that referenced this pull request Dec 28, 2021
This goes on top of #13996 removing the workaround on the maven coordinates after finding out that coursier's behaviour (reported at coursier/coursier#2315) is the correct one. While I haven't found any _spec_ of that, this is what I gather from [this Maven document](https://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html) and from inspecting other implementations.

This PR parses the Maven coordinates using a regular expression that is able to extract the packaging and classifier in case they are present. This should make it compatible with artifacts that only display three of the elements and with the ones that even include the classifier in it.
stuhood pushed a commit to stuhood/pants that referenced this pull request Dec 28, 2021
)

This goes on top of pantsbuild#13996 removing the workaround on the maven coordinates after finding out that coursier's behaviour (reported at coursier/coursier#2315) is the correct one. While I haven't found any _spec_ of that, this is what I gather from [this Maven document](https://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html) and from inspecting other implementations.

This PR parses the Maven coordinates using a regular expression that is able to extract the packaging and classifier in case they are present. This should make it compatible with artifacts that only display three of the elements and with the ones that even include the classifier in it.
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
stuhood added a commit that referenced this pull request Dec 28, 2021
…14010) (#14015)

This goes on top of #13996 removing the workaround on the maven coordinates after finding out that coursier's behaviour (reported at coursier/coursier#2315) is the correct one. While I haven't found any _spec_ of that, this is what I gather from [this Maven document](https://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html) and from inspecting other implementations.

This PR parses the Maven coordinates using a regular expression that is able to extract the packaging and classifier in case they are present. This should make it compatible with artifacts that only display three of the elements and with the ones that even include the classifier in it.

[ci skip-rust]
[ci skip-build-wheels]
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.

[jvm] erroneous BouncyCastle transitive dependencies resolved
2 participants