Skip to content

Misinterprets ./... and checks stdlib unless on go 1.25 #335

@Groxx

Description

@Groxx

After building with a go.mod that includes a newer golang.org/x/tools so it actually builds, running this on 1.23.4 or 1.24.0 (and likely other versions) misbehaves:

$ go run github.com/google/go-licenses/v2 check ./...
...
E0905 16:57:46.379094   50690 library.go:159] Package go/constant does not have module info. Non go modules projects are no longer supported. For feedback, refer to https://github.com/google/go-licenses/issues/128.
E0905 16:57:46.379099   50690 library.go:159] Package hash/maphash does not have module info. Non go modules projects are no longer supported. For feedback, refer to https://github.com/google/go-licenses/issues/128.
...

./... does not include stdlib packages, only ... does.

running on go 1.25.0+ works as expected and doesn't complain about stdlib stuff.

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