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

fix(deps): update module github.com/pelletier/go-toml/v2 to v2.2.3 #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 29, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/pelletier/go-toml/v2 v2.0.9 -> v2.2.3 age adoption passing confidence

Release Notes

pelletier/go-toml (github.com/pelletier/go-toml/v2)

v2.2.3

Compare Source

What's Changed

What's new
Performance
Fixed bugs
Documentation
Other changes

New Contributors

Full Changelog: pelletier/go-toml@v2.2.2...v2.2.3

v2.2.2

Compare Source

What's Changed

Fixed bugs

New Contributors

Full Changelog: pelletier/go-toml@v2.2.1...v2.2.2

v2.2.1

Compare Source

What's Changed

Fixed bugs

New Contributors

Full Changelog: pelletier/go-toml@v2.2.0...v2.2.1

v2.2.0

Compare Source

What's Changed

What's new
Fixed bugs
Documentation
Other changes

New Contributors

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

v2.1.1

Compare Source

What's Changed

Fixed bugs

New Contributors

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

v2.1.0

Compare Source

This new minor release brings back the commented struct field tag from go-toml v1. It makes it easier to generate default or example configuration files. For instance:

type TLS struct {
	Cipher  string `toml:"cipher"`
	Version string `toml:"version"`
}
type Config struct {
	Host string `toml:"host" comment:"Host IP to connect to."`
	Port int    `toml:"port" comment:"Port of the remote server."`
	Tls  TLS    `toml:"TLS,commented" comment:"Encryption parameters (optional)"`
}
example := Config{
	Host: "127.0.0.1",
	Port: 4242,
	Tls: TLS{
		Cipher:  "AEAD-AES128-GCM-SHA256",
		Version: "TLS 1.3",
	},
}
out, err := toml.Marshal(example)

generates this TOML document:

### Host IP to connect to.
host = '127.0.0.1'

### Port of the remote server.
port = 4242

### Encryption parameters (optional)
### [TLS]

### cipher = 'AEAD-AES128-GCM-SHA256'
### version = 'TLS 1.3'

This feature was often mentioned as a blocker to upgrading from go-toml v1. Hopefully bringing it back in scope will help folks make the transition!

An other noteworthy improvement is on type mismatch errors. They now include the human-readable context, and include the struct field name of the faulty value if applicable.

Before:

toml: cannot store TOML string into a Go int

After:

1| [server]
2| path = "/my/path"
3| port = "bad"
 |        ~~~~~ cannot decode TOML string into struct field toml_test.Server.Port of type int

What's Changed

What's new
Fixed bugs
Other changes

New Contributors

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


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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 9876d0d to 0b8f79d Compare September 19, 2023 11:42
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 0b8f79d to 16453ea Compare November 16, 2023 11:53
@renovate renovate bot changed the title Update module github.com/pelletier/go-toml/v2 to v2.1.0 Update module github.com/pelletier/go-toml/v2 to v2.1.1 Dec 11, 2023
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 16453ea to 881a901 Compare December 11, 2023 19:59
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 881a901 to 644aa29 Compare January 28, 2024 10:28
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 644aa29 to 97e41d4 Compare February 25, 2024 11:16
@renovate renovate bot changed the title Update module github.com/pelletier/go-toml/v2 to v2.1.1 Update module github.com/pelletier/go-toml/v2 to v2.2.0 Mar 19, 2024
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 97e41d4 to e389dc3 Compare March 19, 2024 19:22
@renovate renovate bot changed the title Update module github.com/pelletier/go-toml/v2 to v2.2.0 Update module github.com/pelletier/go-toml/v2 to v2.2.1 Apr 12, 2024
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from e389dc3 to 0e512ee Compare April 12, 2024 15:28
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 0e512ee to 0edd9a3 Compare May 3, 2024 08:50
@renovate renovate bot changed the title Update module github.com/pelletier/go-toml/v2 to v2.2.1 Update module github.com/pelletier/go-toml/v2 to v2.2.2 May 3, 2024
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 0edd9a3 to 716a509 Compare May 9, 2024 11:44
Copy link
Contributor Author

renovate bot commented Jun 4, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.18 -> 1.23.1

@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 716a509 to 3d8b897 Compare July 14, 2024 09:32
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 3d8b897 to 1a0441e Compare August 23, 2024 22:08
@renovate renovate bot changed the title Update module github.com/pelletier/go-toml/v2 to v2.2.2 Update module github.com/pelletier/go-toml/v2 to v2.2.3 Aug 23, 2024
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from 1a0441e to cfb21a5 Compare September 1, 2024 03:01
@renovate renovate bot changed the title Update module github.com/pelletier/go-toml/v2 to v2.2.3 fix(deps): update module github.com/pelletier/go-toml/v2 to v2.2.3 Sep 1, 2024
@renovate renovate bot force-pushed the renovate/github.com-pelletier-go-toml-v2-2.x branch from cfb21a5 to 64b794d Compare September 11, 2024 16:58
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.

0 participants