sops icon indicating copy to clipboard operation
sops copied to clipboard

add toml store

Open vincentserpoul opened this issue 4 years ago • 14 comments

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 avatar Feb 03 '21 14:02 vincentserpoul

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?

vincentserpoul avatar Apr 16 '21 03:04 vincentserpoul

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.

autrilla avatar Apr 16 '21 09:04 autrilla

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!

vincentserpoul avatar Apr 16 '21 17:04 vincentserpoul

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.

hongkongkiwi avatar Apr 26 '21 03:04 hongkongkiwi

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.

vincentserpoul avatar Apr 26 '21 04:04 vincentserpoul

@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

vishalkuo avatar Sep 07 '21 21:09 vishalkuo

This would be really great to get merged 🙏🏽

bigkraig avatar Jan 06 '22 18:01 bigkraig

@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?

vincentserpoul avatar Jan 08 '22 14:01 vincentserpoul

Hello, any updates on this PR? Thanks.

seperman avatar Aug 18 '23 17:08 seperman

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

Jaykul avatar Feb 06 '24 06:02 Jaykul

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 :/

vincentserpoul avatar Feb 06 '24 08:02 vincentserpoul