Skip to content

Docs say that recommended go version for trillian@v1.6.1 is go 1.22, but it appears to require go 1.22.6 #3689

@niels-moller

Description

@niels-moller

Hi, I'm looking at the release notes for v1.6.1, and it says recommended go version is 1.22. See https://github.com/google/trillian/releases/tag/v1.6.1

However, if I create a go module with go.mod saying

module local
go 1.22
require github.com/google/trillian v1.6.1

and a source file dummy.go

package local
import _ "github.com/google/trillian"

and run go mod tidy, go mod tidy insists on changing that to go 1.22.6, and if I insists and change back to go 1.22, build fails, "go: updates to go.mod needed; to update it: go mod tidy" (which is go's way of saying that some dependency wants a more recent go version than specified in go.mod).

If the version dependency that rules out plain go 1.22 is intended, it would be nice to say that in release notes. I don't know if it is common for go modules to depend on patch version, but I was a bit surprised that I couldn't update to latest trillian after I finally upgraded the required go version in my project to go 1.22. For now, I'm on trillian@v1.6.0, which seems to work fine in this setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions