Rust plugin broke in the last few days

Bug #1809259 reported by Alan Pope 🍺🐧🐱 🦄
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Status tracked in Trunk
Fix Committed
Sergio Schvezov
Fix Released
Sergio Schvezov

Bug Description

I previously successfully built a snap which uses the rust plugin. - 3 days later it no longer builds. I have confirmed this on two computers, and a colleague has repeated the issue. I'm using snapcraft from stable with multipass.

error: Found argument '--prefix' which wasn't expected, or isn't valid in this context

    rustup-init [FLAGS] [OPTIONS]

For more information try --help
Failed to run '/root/parts/shellharden/rust/ --prefix=/root/parts/shellharden/rust --disable-sudo --save --channel=stable' for 'shellharden': Exited with code 1.
Verify that the part is using the correct parameters and try again.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
An error occurred when trying to execute 'sudo -i snapcraft snap' with 'multipass': returned exit code 2.

Tags: 19.04-blue
Revision history for this message
Simos Xenitellis  (simosx) wrote :
Revision history for this message
Kornel Lesinski (kornelski) wrote :

This is still a problem.

Rustup's issue is a WONTFIX, so at the moment I'm unable to create any Rust snaps.

Leo Arias (elopio)
Changed in snapcraft:
status: New → Confirmed
Revision history for this message
Leo Arias (elopio) wrote :

This is affecting the parity snap, so I'd say high priority :)

As a workaround, I'm using the nil plugin calling cargo on the build stepd

Changed in snapcraft:
importance: Undecided → Critical
milestone: none → 3.1
status: Confirmed → In Progress
assignee: nobody → Sergio Schvezov (sergiusens)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
tags: added: 19.04-blue
Changed in snapcraft:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.