← Back to issue list

'snapcraft init' examples are not style compliant

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1604504
Type
issue
State
closed
Author
~andy-k
Labels
—
Created
Updated
Closed

Current evaluation

Fix released: snapcraft init now generates snapcraft.yaml with two-space indentation. PR snapcore/snapcraft#682 addressed the style bug; additional fields and links were deferred.

Resolution: closed resolved

Reason: The author resubmitted the style patch as snapcore/snapcraft#682. In the closing comment on 2017-03-19, maintainer ~elopio confirmed that init generated YAML with two spaces and marked the style-compliance bug fix released.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Using the standard boiler-plate from `snapcraft init` is slightly annoying because the indentations are 4 spaces instead of 2. As well, there aren't quite enough properties for a minimum example. Patch submitted on github, #673 https://github.com/snapcore/snapcraft/pull/673

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fix released: snapcraft init now generates snapcraft.yaml with two-space indentation. PR snapcore/snapcraft#682 addressed the style bug; additional fields and links were deferred.
stealth/space-bunny-alpha — closed resolved The indentation concern was fixed: a maintainer closed the item as "fix released" after snapcraft init generated two-space YAML; extra fields and documentation links were deferred.
stealth/space-bunny-alpha — closed superseded Original PR #673 was closed unmerged after its messy history blocked review. A later template update merged via #776 (e1be44bc7) for LP #1620428.
qwen/qwen3.6-35b-a3b — — Resolved via merged PR #673, which updated the snapcraft init boilerplate to use 2-space indentation and added missing minimum properties.
qwen/qwen3.6-35b-a3b — — Resolved via PR #673, which updated snapcraft init boilerplate indentation to 2 spaces and added missing minimum properties.
qwen/qwen3.6-35b-a3b — — Resolved via PR #673. The snapcraft init boilerplate was updated to use 2-space indentation and include required minimum properties, fixing the style compliance issue.
qwen/qwen3.6-35b-a3b — — The snapcraft init style compliance issues were fixed and merged via pull request #673. Generated examples now use 2-space indentation and include necessary minimum properties, resolving the reported boilerplate formatting concerns.
qwen3.6-35b-a3b-mtp-q6 — — Resolved by merging pull request #673. The update corrects the snapcraft init boilerplate indentation to 2 spaces and adds missing properties, ensuring style compliance.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#682 (confidence 98%)

    Resubmitted patch for the two-space indentation problem, followed by maintainer confirmation that the generated YAML was compliant.

  • Superseded By: snapcore/snapcraft#673 (confidence 96%)

    Original patch submission, later resubmitted by the author as snapcore/snapcraft#682.

Related issues

Issue Project State Summary Similarity
#1575581 "snapcraft init" doesn't generate a valid template snapcraft (launchpad) closed Fixed by PR ubuntu-core/snapcraft#528 and released in Snapcraft 2.10 for Xenial; verification confirmed `snapcraft init` followed by `snapcraft` produced a valid snap.
71%