Skip to content

Conversation

jonstacks
Copy link

We found this issue in ngrok/ngrok-go#213 (comment)

This file was removed between v3.0.0-testing.5 and v3.1.0. This can cause issues when modules depend on v3.0.0-testing.5. Running go get -u github.com/me/my-module will update the dependency on log15 to the latest "minor" version which is v3.1.0. This version is missing the v3/ext/id.go file and causes programs not to be able to build when upgrading.

I believe releasing a v3.1.1 with this file being reinstated will help prevent this issue.

Reading https://go.dev/ref/mod#versions,

The pre-release suffix indicates a version is a pre-release. Pre-release versions sort before the corresponding release versions. For example, v1.2.3-pre comes before v1.2.3.

A version is considered unstable if its major version is 0 or it has a pre-release suffix. Unstable versions are not subject to compatibility requirements. For example, v0.2.0 may not be compatible with v0.1.0, and v1.5.0-beta may not be compatible with v1.5.0.

It seems like log15 removing this function is valid so this could just be an issue with the go tooling. I still think releasing a patch version that adds this back would help prevent paper cuts like this.

This file was removed between v3.0.0-testing.5 and v3.1.0. This can
cause issues when modules depend on v3.0.0-testing.5. Running
`go get -u github.com/me/my-module` will update the dependeny on
log15 to the latest "minor" version which is v3.1.0. This version is
missing the `v3/ext/id.go` file and causes programs not to be able
to build when upgrading

Signed-off-by: Jonathan Stacks <[email protected]>
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.

1 participant