← Back to issue list

snapcraft init doesn't finish the yaml with an empty line

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1660880
Type
issue
State
closed
Author
~elopio
Labels
bitesize ui
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed. The missing trailing newline in generated snapcraft.yaml was fixed. The update ensures generated files adhere to standard formatting conventions.

Suggested action:

No scores available.

Issue body

It is nice to always finish the source code files with an empty line. The snapcraft.yaml we get after calling snapcraft init doesn't finish with an empty line. $ snapcraft init $ cat snap/snapcraft.yaml name: my-snap-name # you probably want to 'snapcraft register <name>' version: '0.1' # just for humans, typically '1.2+git' or '1.3.2' summary: Single-line elevator pitch for your amazing snap # 79 char long summary description: | This is my-snap's description. You have a paragraph or two to tell the most important story about your snap. Keep it under 100 words though, we live in tweetspace and your description wants to look good in the snap store. grade: devel # must be 'stable' to release into candidate/stable channels confinement: devmode # use 'strict' once you have the right plugs and slots parts: my-part: # See 'snapcraft plugins' plugin: nilelopio@ubuntu-xenial:~/test$

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed. The missing trailing newline in generated snapcraft.yaml was fixed. The update ensures generated files adhere to standard formatting conventions.
qwen/qwen3.6-35b-a3b Resolved by updating snapcraft init to append a trailing newline to generated snapcraft.yaml, ensuring compliance with standard source code formatting practices.
qwen3.6-35b-a3b-mtp-q6 Resolved by updating snapcraft init to append a trailing newline to the generated snapcraft.yaml file.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1604326 snapcraft init doesn't fail if there is a .snapcraft.yaml file snapcraft (launchpad) closed Closed without resolution. The snapcraft init command remains unchanged and still creates snapcraft.yaml when .snapcraft.yaml exists, indicating the bug was abandoned or superseded by newer project changes.
74%
#5664 fix: snapcraft init crash when snapcraft.yaml exists but is empty snapcraft merged Merged a fix for a snapcraft init crash when snapcraft.yaml exists but is empty. The PR addressed review comments, added unit tests, and passed all CI checks before merging.
70%
#1604504 'snapcraft init' examples are not style compliant snapcraft (launchpad) closed Resolved via PR #673, which updated snapcraft init boilerplate indentation to 2 spaces and added missing minimum properties.
70%