LaunchPad recipe failing: curl error: Could not resolve host: github.com
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Greetings! I am trying to get a recipe building on LaunchPad which happens to be a rust library, built with cargo. During the build, cargo downloads some things from GitHub, to compile certain dependencies, which does not seem to work on the LaunchPad builders. Here is the buildlog and a snippet of the error:
https:/
dh build
dh_testdir
dh_update_
dh_auto_
debian/rules override_
make[1]: Entering directory '/<<BUILDDIR>
CARGO_HOME=
Updating crates.io index
warning: spurious network error (2 tries remaining): curl error: Could not resolve host: github.com
; class=Net (12)
warning: spurious network error (1 tries remaining): curl error: Could not resolve host: github.com
; class=Net (12)
error: failed to fetch `https:/
Caused by:
curl error: Could not resolve host: github.com
; class=Net (12)
debian/rules:9: recipe for target 'override_
make[1]: *** [override_
I'm afraid that external internet access is intentionally not allowed in Launchpad recipe builds. You'll need to arrange to package the dependencies you need, build-depend on them, and get cargo to use them.
Build-depending on dh-cargo and using "dh $@ --buildsystem= cargo" may be helpful; if you follow https:/ /wiki.debian. org/Teams/ RustPackaging/ Policy then it should also be possible to build your package on Launchpad.