Skip to content

Failed to build with go1.26.1 #3514

@linuxerwang

Description

@linuxerwang
go_toolchain(
    name = "toolchain",
    hashes = ["031f088e5d955bab8657ede27ad4e3bc5b7c1ba281f05f245bcc304f327c987a"],
    install_std = False,
    version = "1.26.1",
)

go_stdlib(name = "std")
$ plz --version
Please version 17.29.1

$ plz build example/cmd:example-server 
Build stopped after 2.14s. 1 target failed:
    //third_party/go:std
Error building target //third_party/go:std: exit status 1
2026/03/29 18:47:09 failed to write module info: failed to import directory third_party/go/std/src/cmd/dist: found packages main (build.go) and building_Go_requires_Go_1_24_6_or_later (notgo124.go) in third_party/go/std/src/cmd/dist

Note that it worked with go1.25.0, but started to fail after upgraded to go1.26.1.

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