fix: use 2-space indentation in generated score.yaml#41
Merged
mathieu-benoit merged 3 commits intomainfrom Apr 12, 2026
Merged
Conversation
…emplate Agent-Logs-Url: https://github.com/score-spec/score-helm/sessions/c15dd739-beb7-4a65-a4df-f8de898398bc Co-authored-by: mathieu-benoit <11720844+mathieu-benoit@users.noreply.github.com>
Agent-Logs-Url: https://github.com/score-spec/score-helm/sessions/c15dd739-beb7-4a65-a4df-f8de898398bc Co-authored-by: mathieu-benoit <11720844+mathieu-benoit@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
mathieu-benoit
April 11, 2026 16:11
View session
7 tasks
Overview
Policies (0 improved, 0 worsened)
Packages and Vulnerabilities (1 package changes and 0 vulnerability changes)
Changes for packages of type
|
| Package | Versionscore-helm:latest |
Versionscore-helm:latest |
|
|---|---|---|---|
| ♾️ | github.com/score-spec/score-helm | 0.0.0-20260411161043-69430caecf27 |
0.10.2-0.20260412225718-80f0d91fa8f9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Analogous to score-spec/score-compose#461, this fixes the sample
score.yamlgenerated byscore-helm initto use 2-space indentation instead of the 4-space default fromyaml.Marshal.Description
The
initcommand was callingyaml.Marshal(workload)directly, which usesgopkg.in/yaml.v3's default 4-space indentation. Thestate.goalready usedenc.SetIndent(2)forstate.yaml.Fix: Replace
yaml.Marshalwith ayaml.NewEncoderthat setsenc.SetIndent(2).Also fixes a tab character (instead of spaces) in the template source code (
template.goline 31), which was a formatting inconsistency (it did not affect generated output due to Go template whitespace trimming).What does this PR do?
Fixes 4-space indentation in
score.yamloutput fromscore-helm init, aligning it with standard YAML formatting and the existingstate.yamloutput.Types of changes
Checklist: