Skip to content

chore: migrate to maintained YAML library#1651

Merged
SpencerTorres merged 1 commit intoClickHouse:mainfrom
joschi:deps-yaml
Sep 11, 2025
Merged

chore: migrate to maintained YAML library#1651
SpencerTorres merged 1 commit intoClickHouse:mainfrom
joschi:deps-yaml

Conversation

@joschi
Copy link
Copy Markdown
Contributor

@joschi joschi commented Sep 11, 2025

Summary

The library gopkg.in/yaml.v3 is unmaintained since 2025-04-01:

https://github.com/go-yaml/yaml#this-project-is-unmaintained

There's an official fork of the YAML project at https://github.com/yaml/go-yaml which works as a drop-in replacement and where the development will continue.

This change set replaces the old gopkg.in/yaml.v3 with the new go.yaml.in/yaml/v3.

Please note that gopkg.in/yaml.v3 is still being used in tests as an indirect dependency via github.com/stretchr/testify/assert/yaml.

❯ go mod why gopkg.in/yaml.v3
github.com/ClickHouse/clickhouse-go/v2/tests
github.com/stretchr/testify/assert
github.com/stretchr/testify/assert/yaml
gopkg.in/yaml.v3

See stretchr/testify#1724 for the respective GitHub issue.

For the CHANGELOG (Other Changes):

Replace unmaintained gopkg.in/yaml.v3 with go.yaml.in/yaml/v3.

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added (existing tests work without a change due to go.yaml.in/yaml/v3 being a drop-in replacement)
  • A human-readable description of the changes was provided to include in CHANGELOG

The library `gopkg.in/yaml.v3` is unmaintained since 2025-04-01:

https://github.com/go-yaml/yaml#this-project-is-unmaintained

There's an official fork of the YAML project at https://github.com/yaml/go-yaml which works as a drop-in replacement and where the development will continue.

This change set replaces the old `gopkg.in/yaml.v3` with the new `go.yaml.in/yaml/v3`.

Please note that `gopkg.in/yaml.v3` is still being used in tests as an indirect dependency via `github.com/stretchr/testify/assert/yaml`.

```
❯ go mod why gopkg.in/yaml.v3
github.com/ClickHouse/clickhouse-go/v2/tests
github.com/stretchr/testify/assert
github.com/stretchr/testify/assert/yaml
gopkg.in/yaml.v3
```

See stretchr/testify#1724 for the respective GitHub issue.
@SpencerTorres SpencerTorres merged commit b5b4a53 into ClickHouse:main Sep 11, 2025
4 of 14 checks passed
@joschi joschi deleted the deps-yaml branch September 12, 2025 07:41
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.

2 participants