-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Failure to generate a JVM lockfile if a jvm_artifact
uses the jar
field
#15218
Comments
Merged
This might be similar to #15121, which is an issue because ofhttps://github.com//issues/14719. Given that we need to cherry pick, it's probably better to go for the fast win rather than 14719 |
stuhood
added a commit
that referenced
this issue
Apr 22, 2022
…r` fields. (#15219) #15218 demonstrates a fairly obscure issue where a mostly-duplicated `jvm_artifact` target which defined a `jar` field would find that the first few fields in an `ArtifactRequirement` were equal before attempting to compare a `JvmArtifactJarSourceField` field, which would fail. Rather than sorting `ArtifactRequirement` instances, we can instead ensure that the input targets are sorted. Fixes #15218.
stuhood
added a commit
to stuhood/pants
that referenced
this issue
Apr 22, 2022
…r` fields. (pantsbuild#15219) pantsbuild#15218 demonstrates a fairly obscure issue where a mostly-duplicated `jvm_artifact` target which defined a `jar` field would find that the first few fields in an `ArtifactRequirement` were equal before attempting to compare a `JvmArtifactJarSourceField` field, which would fail. Rather than sorting `ArtifactRequirement` instances, we can instead ensure that the input targets are sorted. Fixes pantsbuild#15218. # 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
to stuhood/pants
that referenced
this issue
Apr 22, 2022
…r` fields. (pantsbuild#15219) Rather than sorting `ArtifactRequirement` instances, we can instead ensure that the input targets are sorted. Fixes pantsbuild#15218. [ci skip-rust] [ci skip-build-wheels]
stuhood
added a commit
that referenced
this issue
Apr 22, 2022
…r` fields. (Cherry-pick of #15219) (#15230) #15218 demonstrates a fairly obscure issue where a mostly-duplicated `jvm_artifact` target which defined a `jar` field would find that the first few fields in an `ArtifactRequirement` were equal before attempting to compare a `JvmArtifactJarSourceField` field, which would fail. Rather than sorting `ArtifactRequirement` instances, we can instead ensure that the input targets are sorted. Fixes #15218.
stuhood
added a commit
that referenced
this issue
Apr 22, 2022
…r` fields. (Cherry-pick of #15219) (#15232) #15218 demonstrates a fairly obscure issue where a mostly-duplicated `jvm_artifact` target which defined a `jar` field would find that the first few fields in an `ArtifactRequirement` were equal before attempting to compare a `JvmArtifactJarSourceField` field, which would fail. Rather than sorting `ArtifactRequirement` instances, we can instead ensure that the input targets are sorted. Fixes #15218. [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
Describe the bug
When a
jvm_artifact
target has ajar
field, we will fail to generate a lockfile for the relevant resolve(s) with:Pants version
The stack is for
2.11.0rc3
, but this issue also exists in2.10.0
.The text was updated successfully, but these errors were encountered: