Fork me on GitHub
#clojars
<
2016-09-19
>
danielcompton04:09:41

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"]))

danielcompton04:09:53

this is failing on a new ubuntu server, but not on my Mac, or in CI

danielcompton04:09:59

I’m a bit puzzled

tcrawley11:09:33

.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)

tcrawley11:09:47

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

danielcompton20:09:49

I may be doing something silly, but leiningen seems to hang when I put a clojars repo replacement in the :user profile

danielcompton20:09:59

it downloads from Central fine though

danielcompton20:09:14

it was doing a lein-npm install