Skip to content

Update go.mod to 1.25 to support new language #25

@element-of-surprise

Description

@element-of-surprise

Error when running the tool:

Problem:

/var/folders/rd/hbhb8s197633_f8ncy6fmpqr0000gn/T/goptimizer/1cc734a3-9777-482e-8c1d-c3f85d6779c0/service/service.go:3:1: package requires newer Go version go1.25 (application built with go1.24)
-: This application uses version go1.24 of the source-processing packages but runs version go1.25 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.

Fix:
Cloned the repo, set go.mod file to have: go 1.25.0 and did a new "go install" which then allowed betteralign to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions