Skip to content

Conversation

@vincentserpoul
Copy link

Fixes #369.

replace PR #533 as:

  • BurntSushi/toml is unmaintained
  • I fixed some issues on go-toml regarding key order preservation

Still not perfect, comments are not preserved, but most of it should be here.

@vincentserpoul
Copy link
Author

this will probably change with the incoming go-toml v2.
I've seen no comment for more than 2 months. Does it mean the reviewers are busy or that this has no interest?

@autrilla
Copy link
Contributor

No, there’s definitely interest, sorry I missed this. If a new major version of the toml library is going to be released soon, I think it’s best to wait until then before merging this.

@vincentserpoul
Copy link
Author

no worries, I just wanted to know.
I'm participating in this go-toml v2, so, I agree, I'll wait til it's done and then re-update this PR!

@hongkongkiwi
Copy link

hongkongkiwi commented Apr 26, 2021

I'm keen on this, I could see it being valuable for gitlab-runner configs! :)

It does not seem "go-toml v2" is going to be finalised anytime soon. Last comment here was in eb and now it's almost May. Could we merge this as is and then shift to v2 in a year or when it's finalised? That way we are not blocked and can have toml support.

@vincentserpoul
Copy link
Author

vincentserpoul commented Apr 26, 2021

We are at 2.0.alpha2, guestimating more than a couple months to get to v2 final.
I'll make sure sops integration is feasible within the v2 as well, so at least, there is that, there should not be too much time between the release of v2 and the sops toml PR.

If we want to push for this one, we need a review first.

@vishalkuo
Copy link

@autrilla can we possibly push for a review sooner? It seems like we're still some while away from go-toml v2. Unless we expect the API to dramatically change, it might be valuable to get TOML support sooner rather than later. We've had to use a couple workarounds to get sops working with TOML and we'd love to see first-class support so that we can iterate and contribute improvements we've written locally

@bigkraig
Copy link

bigkraig commented Jan 6, 2022

This would be really great to get merged 🙏🏽

@vincentserpoul
Copy link
Author

vincentserpoul commented Jan 8, 2022

@autrilla I was waiting for the v2 to be out and replace this PR implementation but the document representation of the toml is not in the scope of v2 for now, so it's not really convenient to work for now.

Hence, could this PR be reviewed first?

@seperman
Copy link

Hello, any updates on this PR? Thanks.

Comment on lines +52 to +57
<<<<<<< HEAD
gopkg.in/yaml.v3 v3.0.0-20210107172259-749611fa9fcc
gotest.tools v2.2.0+incompatible // indirect
=======
gotest.tools v2.2.0+incompatible
>>>>>>> cc2ee88b7 (add toml store)
Copy link
Contributor

Choose a reason for hiding this comment

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

Merge issue

Copy link
Contributor

@Ph0tonic Ph0tonic left a comment

Choose a reason for hiding this comment

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

We should also update README.rst.
More specifically, the section Important information on types, replace :

YAML and JSON type extensions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``sops`` uses the file extension to decide which encryption method to use on the file
content. ``YAML``, ``JSON``, ``ENV``, and ``INI`` files are treated as trees of data, and key/values are

with:

YAML, JSON, ENV, INI and TOML type extensions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``sops`` uses the file extension to decide which encryption method to use on the file
content. ``YAML``, ``JSON``, ``ENV``, ``INI`` and, ``TOML`` files are treated as trees of data, and key/values are

@Jaykul
Copy link

Jaykul commented Feb 6, 2024

Is there any chance of this being merged at this point?

@vincentserpoul
Copy link
Author

I was the original author, started it and waited a long time to be merged.
by the time it was ready to be merged, go-toml/v2 was released and the author did not want to have the internal struct public, so it's more difficult to apply the same strategy I used with the v1, hence i stalled :/

@felixfontein felixfontein modified the milestones: v3.9.0, 3.10.0 Jun 26, 2024
@zyriab
Copy link

zyriab commented Oct 14, 2024

Hey, just so you know, it seems that BurntSushi/toml is still maintained.
At the time of this comment, the last commit was 4 months ago.

@vincentserpoul
Copy link
Author

maybe it's worth revisiting the previous PR #533 as I was blocked by go-toml/v2

jdx pushed a commit to jdx/mise that referenced this pull request Mar 12, 2025
Resolves #4372.

Since sops doesn't yet support toml
(getsops/sops#812), I ignored it for `toml`.
@felixfontein felixfontein modified the milestones: 3.10.0, 3.11.0 Mar 31, 2025
@avycado13
Copy link

Hi, is there any update on this PR? Just curious if it’s still being considered.

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.

support TOML?