Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure stable order of SOPS parameters in dotenv file #1101

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

edofic
Copy link
Contributor

@edofic edofic commented Aug 4, 2022

Fixes #565 by sorting the parameters as suggested by @autrilla (implementation by @Jdban)

Built on top of #575

The test reliably fails if I comment out line 106 sort.Strings(keys)

@Jdban
Copy link
Contributor

Jdban commented Oct 24, 2022

Awesome!

@edofic edofic closed this Apr 7, 2023
@Jdban
Copy link
Contributor

Jdban commented Apr 7, 2023

Aww, why did you close it? :(

(Aside from the 7 months of it being ignored)

@andywhite37
Copy link

👍 to re-open - would be nice to have this fix!

@edofic edofic reopened this Apr 19, 2023
@hiddeco hiddeco added this to the v3.8.0 milestone Jul 4, 2023
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the (quite lengthy) wait!

If you could rebase and sign-off your (test) commit, I would be more than happy to include this in the next release 🙇 🍰

@edofic edofic force-pushed the issue565/sort-dotenv-sops-params branch from d544170 to 700eea7 Compare August 16, 2023 09:21
@edofic
Copy link
Contributor Author

edofic commented Aug 16, 2023

@hiddeco I've rebased and signed-off the second commit 👍

@edofic edofic requested a review from hiddeco August 16, 2023 09:24
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @edofic 🥇

@hiddeco hiddeco changed the title Sort sops parameters in dotenv file Ensure stable order of SOPS parameters in dotenv file Aug 16, 2023
@hiddeco hiddeco merged commit 78ddedc into getsops:main Aug 16, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dotenv sops config variables do not maintain a specific order after editing
4 participants