The rust plugin fails when using source_subdir

Bug #1685562 reported by Leo Arias
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
RoxD

Bug Description

When trying to make a rust snap that has uses source-subdir, it fails during fetch:

/home/ubuntu/workspace/canonical/snapcraft/integration_tests/snaps/rust-subdir/parts/rust-subdir/rust/bin/cargo fetch --manifest-path /home/ubuntu/workspace/canonical/snapcraft/integration_tests/snaps/rust-subdir/parts/rust-subdir/src/Cargo.toml
error: manifest path `/home/ubuntu/workspace/canonical/snapcraft/integration_tests/snaps/rust-subdir/parts/rust-subdir/src/Cargo.toml` does not exist

It's looking for the Cargo.toml file in source, not in source-subdir.

Steps to reproduce:

Go to integration_tests/snaps/rust-subdir
Edit the snapcraft.yaml to have:
    source: .
    source-subdir: subdir
Run snapcraft

Tags: plugin
Leo Arias (elopio)
Changed in snapcraft:
status: New → In Progress
assignee: nobody → RoxD (roxd)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
milestone: none → 2.30
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
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.