Removing a hook script and building, script still present

Bug #1865167 reported by Kyle Nitzsche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

I had a snap/hooks/prepare-slot-serial-port hook script and built the snap.

I then realized I did not want the hook, so I deleted the file and re-ran snapcraft.

The final snap still contained the hook script, so I had to clean and build, which took a long time since this is building a a gadget on pi3.

Expected behavior: snapcraft would detect a previous hook script is no longer present and create a new snap without it, without needed to clean first.

Revision history for this message
Oliver Grawert (ogra) wrote :

unrelated to this bug report, why exactly do you build pi gadgets on a pi? all our pi gadgets should be cross buildable by design (unless foundations broke this very recently) by simply using snapcraft --target-arch={armhf|arm64}

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

@Ogra: I've sensed (perhaps incorrectly) a lack of full-bore support for cross compiling and thought it was a straighter path to build natively.

Revision history for this message
Oliver Grawert (ogra) wrote :

it is definitely the less exercised and less tested path ... same goes for kernel snaps btw ...

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

@which is less tested/exercised: native build, or cross compile?

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.