Snapcraft 7 silently ignores any files ending in *.snap when the source is a folder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Any files which end in *.snap are not copied to the part/x/src directory, as can be seen from this minimal example:
snapcraft.yaml:
name: my-snap-name
base: core22
version: '0.1'
summary: Single-line elevator pitch for your amazing snap
description: Test
grade: devel
confinement: devmode
parts:
my-part:
plugin: nil
source: test
override-build: |
cp ${CRAFT_
---
Snapcraft output:
itrue@lxc-
Starting Snapcraft 7.1.3
Logging execution to '/root/
Running on amd64 for amd64
Initializing parts lifecycle
Executing parts lifecycle...
Executing parts lifecycle: skip pull my-part (already ran)
Executing action
Executed: skip pull my-part (already ran)
Executing parts lifecycle: skip overlay my-part (already ran)
Executing action
Executed: skip overlay my-part (already ran)
Executing parts lifecycle: build my-part
Executing action
:: + cp /home/itrue/
:: cp: cannot stat '/home/
'override-build' in part 'my-part' failed with code 1.
Review the scriptlet and make sure it's correct.
Full execution log: '/root/
---
Source folder contents:
itrue@lxc-
test.notasnap test.snap
---
parts src folder contents:
itrue@lxc-
test.notasnap
---
Please either copy all files in the source directory, or at least add a warning to say that these files are not being copied, rather than silently not doing it.
Are there any other explicit omissions from the pull step we should be aware of?