pulumi config set command is reordering stack file keys #10244
Labels
area/config
pulumi config
kind/enhancement
Improvements or new features
resolution/duplicate
This issue is a duplicate of another issue
What happened?
when setting new config items using
pulumi config set
, the stack file it touches has its keys reordered alphabetically. this shouldn't be the default behavior. i like to keep my stack files arranged in certain way and this requires me to fix them every time i set a new config/secret key.Steps to reproduce
run
pulumi config set
against any non-alphabetically arranged stack file.Expected Behavior
no reordering, just add the new config/secret key to the bottom of the relevant section.
Actual Behavior
stack file gets rearranged so that keys are alphabetical
Versions used
CLI
Version 3.36.0
Go Version go1.18.4
Go Compiler gc
Plugins
NAME VERSION
kubernetes 3.20.2
python unknown
Host
OS darwin
Version 12.4
Arch arm64
This project is written in python: executable='/opt/homebrew/bin/python3' version='3.9.13'
Current Stack: dev-publicapi-test
Found no resources associated with dev-publicapi-test
Found no pending operations associated with dev-publicapi-test
Backend
Name pulumi.com
URL https://app.pulumi.com/kris-dockery-dutchie-com
User kris-dockery-dutchie-com
Organizations kris-dockery-dutchie-com, getdutchie
Dependencies:
NAME VERSION
boto3 1.24.37
click 8.1.3
Jinja2 3.1.2
pip 22.2
pulumi-kubernetes 3.20.2
setuptools 63.2.0
wheel 0.37.1
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: