FAIL in (repair-metadata-corrects-versions) (repair_metadata.clj:53)
creates the correct metadata
expected: (= ["0.1.0" "0.2.0" "0.4.0" "0.5.0-SNAPSHOT"] (.getVersions versioning))
actual: (not (= ["0.1.0" "0.2.0" "0.4.0" "0.5.0-SNAPSHOT"] ["0.2.0" "0.5.0-SNAPSHOT" "0.1.0" "0.4.0"]))
this is failing on a new ubuntu server, but not on my Mac, or in CI
I’m a bit puzzled
.getVersions
should return the versions in the order they appear in maven-metadata.xml
(I think). We add them in dir last modified order (https://github.com/clojars/clojars-web/tree/master/src/clojars/tools/repair_metadata.clj#L66)
maybe the version of java or the underlying syscalls used by FileUtils/copyDirectory
copy in a different order on the new machine: https://github.com/clojars/clojars-web/tree/master/test/clojars/test/unit/tools/repair_metadata.clj#L17
I may be doing something silly, but leiningen seems to hang when I put a clojars repo replacement in the :user
profile
it downloads from Central fine though
oh wait
it was doing a lein-npm install