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

Add cmd/gotoml-test-encoder #907

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Add cmd/gotoml-test-encoder #907

merged 1 commit into from
Oct 23, 2023

Conversation

arp242
Copy link
Contributor

@arp242 arp242 commented Oct 13, 2023

Since there was already an encoder I figured adding an encoder makes sense. Also had to fix it for local dates.

% toml-test -encoder ./gotoml-test-encoder
toml-test v2023-10-13 [./gotoml-test-encoder]: using embedded tests
encoder tests: 162 passed,  0 failed

Since there was already an encoder I figured adding an encoder makes
sense. Also had to fix it for local dates.

	% toml-test -encoder ./gotoml-test-encoder
	toml-test v2023-10-13 [./gotoml-test-encoder]: using embedded tests
	encoder tests: 162 passed,  0 failed
@arp242
Copy link
Contributor Author

arp242 commented Oct 13, 2023

I copied all the extra tests from testdata/fuzz/FuzzUnmarshal to toml-test by the way:
toml-lang/toml-test@f03077a

Updating toml-test fails though, since it will also include the TOML 1.1 tests; you'll need to either use the tests/files-toml-1.0.0 file, or use toml-test -copy from the CLI.

@pelletier pelletier added the build Issues regarding go-toml's CI system. label Oct 23, 2023
@pelletier
Copy link
Owner

Thank you for taking care of this! I've created a follow-up issue to update toml-test properly.

@pelletier pelletier mentioned this pull request Oct 23, 2023
@pelletier pelletier merged commit fd8d0bf into pelletier:v2 Oct 23, 2023
9 checks passed
@arp242 arp242 deleted the enc branch October 23, 2023 20:46
jooola referenced this pull request in hetznercloud/cli Dec 12, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/pelletier/go-toml/v2](https://togithub.com/pelletier/go-toml)
| require | patch | `v2.1.0` -> `v2.1.1` |

---

### Release Notes

<details>
<summary>pelletier/go-toml (github.com/pelletier/go-toml/v2)</summary>

###
[`v2.1.1`](https://togithub.com/pelletier/go-toml/releases/tag/v2.1.1)

[Compare
Source](https://togithub.com/pelletier/go-toml/compare/v2.1.0...v2.1.1)

<!-- Release notes generated using configuration in .github/release.yml
at v2.1.1 -->

##### What's Changed

##### Fixed bugs

- Fix unmarshaling of nested non-exported struct by
[@&#8203;pelletier](https://togithub.com/pelletier) in
[https://github.com/pelletier/go-toml/pull/917](https://togithub.com/pelletier/go-toml/pull/917)

##### New Contributors

- [@&#8203;arp242](https://togithub.com/arp242) made their first
contribution in
[https://github.com/pelletier/go-toml/pull/907](https://togithub.com/pelletier/go-toml/pull/907)
- [@&#8203;mpldr](https://togithub.com/mpldr) made their first
contribution in
[https://github.com/pelletier/go-toml/pull/911](https://togithub.com/pelletier/go-toml/pull/911)

**Full Changelog**:
pelletier/go-toml@v2.1.0...v2.1.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/hetznercloud/cli).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues regarding go-toml's CI system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants