Building rust as a part fails with: submodules cannot be used without a working tree.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I'm trying to snap cargo, that part is easy but in order to run it, it requires rust. So the only current solution is to bundle rust in the same snap.
When I try that, snapcraft fails during configure with:
fatal: /usr/lib/
Stopping at 'src/rust-
configure: error: git failed
Command '['/bin/sh', '/tmp/tmpr39gfk45', './configure', '--prefix=']' returned non-zero exit status 1
To reproduce, try to snap this yaml:
name: cargo
version: master
summary: The Rust package manager
description: |
Cargo downloads your Rust project’s dependencies and compiles your project.
grade: devel
confinement: strict
apps:
cargo:
command: cargo
plugs: [home, network]
parts:
cargo:
source: .
plugin: rust after: [rust]
rust:
source: https:/
source-tag: '1.11.0'
plugin: autotools
build-packages: [g++, git, curl, python]
El 29/09/16 a las 13:37, Leo Arias escribió:
> Public bug reported:
>
> I'm trying to snap cargo, that part is easy but in order to run it, it
> requires rust. So the only current solution is to bundle rust in the
> same snap.
Why would you want to snap cargo and not provide it as a snapcraft
plugin (or extend the rust one) instead?