Skip to content

feat(cli): add edit-vars command to update vars section in Melange config#2104

Closed
debasishbsws wants to merge 4 commits intochainguard-dev:mainfrom
debasishbsws:feat-edit-vars
Closed

feat(cli): add edit-vars command to update vars section in Melange config#2104
debasishbsws wants to merge 4 commits intochainguard-dev:mainfrom
debasishbsws:feat-edit-vars

Conversation

@debasishbsws
Copy link
Copy Markdown
Member

  • Introduces a new CLI command: melange edit-vars <config.yaml> "key1=value1 key2=value2"

  • Enables safe in-place editing of the vars section if it exists in the Melange YAML file

  • Designed to assist with manual package version updates and enables potential automation in the future

  • Skips editing gracefully if the vars section or requested keys are not present

Melange Pull Request Template

Functional Changes

  • This change can build all of Wolfi without errors (describe results in notes)

Notes:

SCA Changes

  • Examining several representative APKs show no regression / the desired effect (details in notes)

Notes:

Linter

  • The new check is clean across Wolfi
  • The new check is opt-in or a warning

Notes:

…nfig

Introduces a new CLI command: melange edit-vars <config.yaml> "key1=value1 key2=value2"

Enables safe in-place editing of the vars section if it exists in the Melange YAML file

Designed to assist with manual package version updates and enables potential automation in the future

Skips editing gracefully if the vars section or requested keys are not present

Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
@debasishbsws debasishbsws marked this pull request as draft July 28, 2025 06:45
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant