Closed charles-dyfis-net closed 5 years ago
On further reflection and analysis, I believe this should be addressed on the nixpkgs side, rather than here.
Hmm -- this looks like we actually have two separate bugs here.
One of these was the immediate failure on encountering any pom
-only package; that's fixed by NixOS/nixpkgs#51240.
The second one is whatever is (in the aforementioned kiries
example) causing org.clojure:clojure:1.8.0
to not be given a url
(similarly, its metadata-only dependency org.sonatype.oss:oss-parent:7:pom
has no url
or metadata.url
-- while sibling releases org.sonatype.oss:oss-parent:5:pom
and org.sonatype.oss:oss-parent:9:pom
are correctly downloaded and included in the repository).
That's still open, and I'm frankly scratching my head over it. The end impact of that issue looks something like the following:
[ERROR] Failed to execute goal on project kiries: Could not resolve dependencies for project kiries:kiries:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at com.taoensso:carmine:jar:2.16.0 -> com.taoensso:encore:jar:2.90.1 -> org.clojure:tools.reader:jar:0.10.0: Failed to read artifact descriptor for org.clojure:tools.reader:jar:0.10.0: Cannot access central (https://repo1.maven.org/maven2) in offline mode and the artifact org.sonatype.oss:oss-parent:pom:7 has not been downloaded from it before. -> [Help 1]
Hmm. It looks like the missing packages are dependencies of the mvn2nix
plugin itself.
Using
lein pom
to generate apom.xml
for https://github.com/threatgrid/kiries, and thenmvn org.nixos.mvn2nix:mvn2nix-maven-plugin:mvn2nix
, generates aproject-info.json
for which numerous dependencies have no URLs:This is much shorter than the list of 858 unique dependencies which do have URLs, so it's a fairly small subset. However, the nixpkgs code intended to consume these JSON files is really quite unhappy when encountering one of them:
I suspect that we should be downloading only metadata, and not build artifacts, for these items.
Any pointers?