← Back to issue list

Treat the gadget.yaml like other snap meta files

View original Github issue

Metadata

Project
snapcraft
Number
#4344
Type
issue
State
open
Author
dilyn-corner
Labels
Status: Triaged Type: Enhancement
Created
2023-09-01 15:06:20+00:00
Updated
2026-02-05 16:20:21+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done The `gadget.yaml` should be required to be located in `snap/gadget.yaml` of the snap project directory instead of in the root of the project directory. This should not interfere with the `gadget.yaml` being migrated to its final location in `${SNAP}/meta/gadget.yaml`. ### Why it needs to get done Currently, the `gadget.yaml` for a gadget snap must be located in the root of the project directory. The `snapcraft.yaml` was previously also located in the root of the project directory, but was migrated to `snap/snapcraft.yaml`. Likewise, hooks are in `snap/hooks/`, and are moved (in some relevant way) to `${SNAP}/meta/hooks/` at the end of the build. For continuity, it would be make sense to require that the `gadget.yaml` be located in `snap/gadget.yaml`. This would ensure uniformity in the way `snapcraft` treats all snap-related meta information.

Evaluation history

No evaluation history available.