prime syntax for wildcard regression

Bug #1981327 reported by Ondrej Kubik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Claudio Matsuoka

Bug Description

version: snapcraft 7.0.11.post26+gita61c6032 (7946)

Wildcard syntax for priming stage requires parentis
Following syntax would work for SN 6.x and would correctly remove part's content during priming
  prime:
    - -*

With SN 7.x this throw error that prime part contains files which were not staged
Following syntax has to used
  prime:
    - -'*'

Tags: craft-1188
Changed in snapcraft:
assignee: nobody → Claudio Matsuoka (cmatsuoka)
Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

The reported scenario fails with the following error message:

Failed to filter files: inconsistent 'stage' and 'prime' filesets.
The following files have been excluded in the 'stage' fileset, but included by the 'prime' fileset: {'*'}.
Make sure that the files included in 'prime' are also included in 'stage'.

Changed in snapcraft:
status: New → Confirmed
tags: added: craft-1188
Changed in snapcraft:
importance: Undecided → High
Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

Fixed in craft-parts commit c178ddd, released in craft-parts version 1.9.0 and Snapcraft 7.1.

Changed in snapcraft:
status: Confirmed → Fix Released
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.