Skip to content

Build fails on Ubuntu 24.04 with Go 1.22 due to Go version and dependency requirements #135

@zhongcheng0519

Description

@zhongcheng0519

Environment

  • OS: Ubuntu 24.04 LTS (amd64)
  • Go version: 1.22.2
  • Build method: make
  • Branch: main

Issue

Building gogcli from source fails on Ubuntu 24.04 with Go 1.22.

The project currently specifies:

go 1.25

in go.mod, and also pulls in dependencies (e.g. golang.org/x/net v0.49.0) that require a higher Go version than 1.22.

As a result, the build fails with the system-provided Go toolchain on Ubuntu 24.04.

Error messages

go: go.mod requires go >= 1.25 (running go 1.22.2)

After adjusting go.mod:

golang.org/x/net@v0.49.0 requires go >= 1.24.0

Expected behavior

The project should be buildable with a released, stable Go version such as Go 1.22, or clearly document the required Go toolchain for building from source.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions