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
ini: Encode duplicate sections #1340
Comments
I am facing exactly the same problem so I opened a PR for this issue. Let's see what the maintainers say. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice to encode sections with the same name in INI style config files.
Duplicate sections should not be dropped from the encoded output, because
some programs, namely wg from the wireguard-tools rely on this.
From https://www.man7.org/linux/man-pages/man8/wg.8.html
Example
Trying to encode a
wg-quick
configuration file fails because only a single [Peer] section is returned in the encoded withsops -e
output.input file test.ini
The following age key is used for encryption.
encrypted output
Only the first [Peer] section is included in the encrypted output file.
The text was updated successfully, but these errors were encountered: