← Back to issue list

organize keyword does not accept globs to organize into a target directory

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1616459
Type
issue
State
closed
Author
~paelzer
Labels
plugin
Created
Updated
Closed

Current evaluation

Glob expansion for organize entries was added, resolving the inability to use globs when organizing source files; PR #784 was merged in commit 260671d1a.

Resolution: closed resolved

Reason: Merged PR canonical/snapcraft#784 added glob expansion for organize entries and explicitly resolved LP #1616459. The change is recorded in commit 260671d1a.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Hi, bug 1597600 got closed by adding the dump plugin, but I have found challenges to migrate from copy to dump/nil in my case. The case: So far I used the copy plugin (now deprecated) to achive the following: - copy a file from the local source (source: .) into the snap to be installed - copy it into the snap under a different name (using the file feature of copy) Here a slimmed down snippet of my old snapcraft.yaml defaultconf: plugin: copy files: etc/example.conf: etc/ntp.conf etc/use*: etc/ Here (one of many) tries using dump: defaultconf: plugin: dump source: etc organize: etc/example.conf: etc/ntp.conf etc/use*: etc/ I had various similar tries with/without the "filesets" and "snap" keys as well as trying the nil plugin to only use filesets/organize features. But none worked. Most of the times I end up with the system complaining that the files are not at .../install/.. like: FileNotFoundError: [Errno 2] No such file or directory: '/home/paelzer/work/snapsomething/ntpsec/parts/defaultconf/install/etc/example.conf' -> '/home/paelzer/work/snapsomething/ntpsec/parts/defaultconf/install/etc/ntp.conf' But that is just what I used the copy plugin for before - adding extra files that got not added by the app's "make&install" step. I'm sure it is not too hard, but it seems I can't get there by trial and error. And neither doc nor IRC got it resolved, hence the bug report.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Glob expansion for organize entries was added, resolving the inability to use globs when organizing source files; PR #784 was merged in commit 260671d1a.
stealth/space-bunny-alpha — closed resolved Glob support for organize was merged in snapcraft PR #784 (commit 260671d1a), enabling wildcard sources to be organized into destination directories.
stealth/space-bunny-alpha — closed resolved Glob support for organize landed in snapcraft#784 (commit 260671d1a), allowing wildcard sources such as etc/use* to be organized into a destination directory.
qwen/qwen3.6-35b-a3b — — Abandoned and closed without resolution or comments. The organize keyword's lack of glob support for file renaming in the dump plugin was never addressed.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments, likely as stale. The organize keyword's lack of glob support for directory organization remains unaddressed.
qwen/qwen3.6-35b-a3b — — Closed without comments or a fix. The report regarding glob support in the dump plugin's organize keyword appears abandoned or rejected, with no resolution or workaround provided.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#784 (confidence 100%)

    The merged PR implemented glob support for organize and resolved this issue.

Related issues

Issue Project State Summary Similarity
#784 Support globbing for organize snapcraft merged Merged PR #784 added glob expansion for organize entries, resolving LP #1616459, in commit 260671d1a. Empty-parent-directory cleanup was deferred.
76%
#553 Organize does not raise error if source file does not exist craft-parts open A missing exact-path organize source is still silently skipped: the current glob loop has no zero-match error, allowing rocks to build without required files.
70%