Redefining elements of remote parts does not work
Metadata
Current evaluation
Fixed by merged snapcraft PR #666 (commit aee8589b3), allowing slashes in part names so remote-part subparts such as desktop/qt5 could be redefined.
Resolution: closed resolved
Reason: The issue was resolved by merged PR #666, commit aee8589b3, which changed validation to allow slash-delimited part names and enabled the reported remote-part override.
Evaluated by: mr-cal-bot
No scores available.
Issue body
According to http://askubuntu.com/questions/797031/how-do-you-exclude-files-from-wiki-part-used-in-snapcraft-yaml it should be possible to redefine elements of remote parts. In the following example (using snapcraft 2.12.1) it doesn't quite work.
name: game-2048
version: 1
summary: 2048 game
description: clone written in pure QML. No C++ wrappers needed.
confinement: strict
apps:
game-2048:
command: desktop-launch $SNAP/usr/lib/*/qt5/bin/qmlscene $SNAP/2048.qml
plugs: [unity7, opengl, x11]
parts:
game-2048:
plugin: copy
source: https://github.com/MartinBriza/2048.qml
source-type: git
files:
2048.qml: 2048.qml
stage-packages:
- qml-module-qtquick2
- qmlscene
after: [desktop/qt5]
desktop/qt5:
snap:
- -usr/include
- -usr/share/doc
- -usr/share/icons
- -usr/share/themes
The error message is:
Issues while validating snapcraft.yaml: The 'parts' property does not match the required schema: Additional properties are not allowed ('desktop/qt5' was unexpected)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged snapcraft PR #666 (commit aee8589b3), allowing slashes in part names so remote-part subparts such as desktop/qt5 could be redefined. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #666 (commit aee8589b3), which allowed slashes in part names so remote-part subparts such as desktop/qt5 could be redefined. | |
| stealth/space-bunny-alpha | — | closed stale | Remote-part redefinition failed schema validation in Snapcraft 2.12.1; the report was closed without a fix or documented resolution after prolonged inactivity. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The reported schema validation error for redefining remote parts was not addressed, indicating the issue was abandoned or the feature remains unsupported. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The reported validation error for redefining remote part elements was not addressed, likely superseded by updated snapcraft schema changes. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#666
(confidence 99%)
Merged PR #666 and commit aee8589b3 directly implemented the required part-name validation fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1766878 $SNAPCRAFT_PROJECT_NAME used in a remote part expands to wrong value | snapcraft (launchpad) | closed | Remote parts feature removed from Snapcraft, making this issue moot. |