rust plugin doesn't check if the Cargo.toml file exists

Bug #1654768 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Low
Unassigned

Bug Description

Our rust plugin uses cargo to build the snap. Before checking if the Cargo.toml file, it downloads rust, and then it fails with:
error: could not find `Cargo.toml` in `/home/ubuntu/workspace/canonical/snapcraft/integration_tests/snaps/rust-subdir/parts/rust-subdir/build` or any parent directory

Before downloading anything, the plugin should make sure that the cargo file exists, to fail early if it doesn't.

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1654768] [NEW] rust plugin doesn't check if the Cargo.toml file exists

I think the real issue here is the bug I filed - the build/ directory is
empty.

Mark

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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