← Back to issue list

Allow using .snapcraft.yaml as input

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1587933
Type
issue
State
closed
Author
~sergiusens
Labels
verification-done
Created
Updated
Closed

Current evaluation

Feature implemented in canonical/snapcraft PR #582 (commit 98eda9897), shipped in snapcraft 2.12 to xenial; SRU verified by elopio and released to -updates, closing the Launchpad bug.

Resolution: closed resolved

Reason: The maintainer linked PR #582, which merged .snapcraft.yaml support while erroring on projects containing both manifests. Snapcraft 2.12 was uploaded to xenial-proposed, verified successfully by elopio on 2016-06-28 (tag moved to verification-done), and released to -updates on 2016-06-29.

Evaluated by: mr-cal-bot

No scores available.

Issue body

[Impact] * Allow using an alternate snapcraft.yaml which would be hidden (.snapcraft.yaml) [Test Case] 1. Running `snapcraft init` creates a snapcraft.yaml 2. Running `snapcraft` creates a snap using snapcraft.yaml as a source 3. Create a copy `cp snapcraft.yaml .snapcraft.yaml` 4. Running `snapcraft` results in an error due to duplicate sources 5. Remove snapcraft.yaml 6. Running `snapcraft` creates a snap using .snapcraft.yaml as a source [Regression Potential] * Existing projects can fail to run snapcraft if the logic to check duplicates fails. This should be heavily covered by unit and integration tests (all tests would fail today if the code changed in incompatible ways).

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Feature implemented in canonical/snapcraft PR #582 (commit 98eda9897), shipped in snapcraft 2.12 to xenial; SRU verified by elopio and released to -updates, closing the Launchpad bug.
stealth/space-bunny-alpha — closed resolved Hidden .snapcraft.yaml support landed via merged PR canonical/snapcraft#582 (commit 98eda9897), SRU'd in snapcraft 2.12; verified by elopio on xenial -proposed and released to -updates, closing the bug as verification-done.
stealth/space-bunny-alpha — closed resolved Merged in canonical/snapcraft#582 (commit 98eda9897): builds can use .snapcraft.yaml, reject projects containing both YAML files, and init still creates snapcraft.yaml.
qwen/qwen3.6-35b-a3b — — Implemented support for using .snapcraft.yaml as an input file. The change was verified and the issue closed. Duplicate source detection prevents conflicts with standard snapcraft.yaml.
qwen/qwen3.6-35b-a3b — — Fixed to allow .snapcraft.yaml as an input file. The implementation was verified and the issue closed, enabling fallback to the hidden config when snapcraft.yaml is absent.
qwen/qwen3.6-35b-a3b — — Fixed to allow .snapcraft.yaml as an input file. The change was verified and the issue closed. Implementation includes duplicate source detection to prevent conflicts with standard snapcraft.yaml.
qwen3.6-35b-a3b-mtp-q6 — — Implemented and verified support for using .snapcraft.yaml as an input file. The issue was closed after confirming fallback behavior and duplicate source handling via test cases.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#582 (confidence 97%)

    Merged PR 'Support for a hidden snapcraft.yaml' (commit 98eda9897) referenced by the maintainer in the closing comment; released in snapcraft 2.12.

  • Related To: canonical/snapcraft#618 (confidence 55%)

    Follow-up refactor of the same feature in the yaml parser (commit 3cacda309) that also added rejection when both or neither manifest exists.

  • Related To: canonical/snapcraft#5083 (confidence 35%)

    Later regression where .snapcraft.yaml was no longer detected for core24, fixed in Snapcraft 8.9 by PR #5349 via craft-application 5.

Related issues

Issue Project State Summary Similarity
#582 Support for a hidden snapcraft.yaml snapcraft merged Merged as commit 98eda9897, adding .snapcraft.yaml support while rejecting projects containing both hidden and standard manifests. Released in Snapcraft 2.12.
73%
#1588336 Enable snap version to be used in other parts of the snapcraft.yaml snapcraft (launchpad) closed Feature request for using the snap version inside other snapcraft.yaml fields delivered by merged snapcore/snapcraft PR #757 (commit dc0b68174), exporting SNAPCRAFT_PROJECT_NAME/VERSION/STAGE so sources can use $SNAPCRAFT_PROJECT_VERSION. LP bug closed.
71%
#618 parser - Support .snapcraft.yaml files. snapcraft merged Merged support for .snapcraft.yaml alongside snapcraft.yaml in #618 (commit 3cacda309); projects containing both files or neither are now rejected.
70%
#1595012 Implement snapcraft register snapcraft (launchpad) closed Feature request implemented: `snapcraft register` landed in canonical/snapcraft#586 (commit 44156fbfa), shipped as snapcraft 2.12 via SRU to xenial-proposed/-updates. Verified by elopio; bug closed as verification-done.
70%