lein calls in `_get_project` cause builds to fails in projects with plugins
The project.clj
in dujour-version-check
fails to build with dh-clojure
:
dpkg-buildpackage
-----------------
Command: dpkg-buildpackage --sanitize-env -us -uc -rfakeroot
dpkg-buildpackage: info: source package dujour-version-check-clojure
dpkg-buildpackage: info: source version 0.2.3-2
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Louis-Philippe Véronneau <pollo@debian.org>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
debian/rules clean
dh clean --buildsystem=leiningen
dh_auto_clean -O--buildsystem=leiningen
Could not transfer artifact lein-parent:lein-parent:jar:0.3.7 from/to central (https://repo1.maven.org/maven2/): transfer failed for https://repo1.maven.org/maven2/lein-parent/lein-parent/0.3.7/lein-parent-0.3.7.j
ar
Could not transfer artifact lein-parent:lein-parent:jar:0.3.7 from/to clojars (https://repo.clojars.org/): transfer failed for https://repo.clojars.org/lein-parent/lein-parent/0.3.7/lein-parent-0.3.7.jar
Could not transfer artifact lein-parent:lein-parent:jar:0.3.7 from/to releases (https://artifactory.delivery.puppetlabs.net/artifactory/clojure-releases__local/): transfer failed for https://artifactory.delivery.p
uppetlabs.net/artifactory/clojure-releases__local/lein-parent/lein-parent/0.3.7/lein-parent-0.3.7.jar
Could not transfer artifact lein-parent:lein-parent:jar:0.3.7 from/to snapshots (https://artifactory.delivery.puppetlabs.net/artifactory/clojure-snapshots__local/): transfer failed for https://artifactory.delivery
.puppetlabs.net/artifactory/clojure-snapshots__local/lein-parent/lein-parent/0.3.7/lein-parent-0.3.7.jar
Failed to read artifact descriptor for lein-parent:lein-parent:jar:0.3.7
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
dh_auto_clean: error: /usr/bin/lein update-in :name println -- version returned exit code 1
make: *** [debian/rules:7: clean] Error 25
dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2
It seems these bits from the project.clj
are to blame:
:parent-project {:coords [puppetlabs/clj-parent "4.2.4"]
:inherit [:managed-dependencies]}
:plugins [[lein-parent "0.3.7"]]
Would it be possible to always ignore :parent-project
? I don't think we'd need this in Debian, ever.
Edited by Jérôme Charaoui