Part's without `source` key has an implicit source `.`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Critical
|
Sergio Schvezov |
Bug Description
Consider this snapcraft parts recipe:
```yaml
ccache:
plugin: nil
build-packages:
- ccache
override-build: 'true'
override-stage: 'true'
override-prime: 'true'
```
And according to the description of `snapcraft help nil`:
> The nil plugin is useful for parts with no source.
However after running `snapcraft pull ccahe`, non-snapcraft-
```
parts/ccache/src
├── guvcview-
├── guvcview.strace.log
├── icons
│ ├── guvcview256.png
│ └── guvcview.png
├── LICENSE
├── nohup.out
├── README.md
└── screenshots
└── view-image-
2 directories, 8 files
```
IMO the behavior is unexpected and should be a snapcraft bug.
## Workaround
Override the entire pull step using `override-pull` [scriptlets](https:/
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
summary: |
- `nil` plugin shouldn't pull anything to the srctree + part's without `source` key has an implicit source `.` |
summary: |
- part's without `source` key has an implicit source `.` + Part's without `source` key has an implicit source `.` |
Related Snapcraft Forum topic: /forum. snapcraft. io/t/snapcraft- implicit- source/ 7060)
[Snapcraft implicit source - snapcraft - snapcraft.io](https:/