Skip to content

Cannot build task with Go 1.25.1 #2444

@mikemadden42

Description

@mikemadden42

Description

I am seeing these errors when building task with Go 1.25.1.

$ go version
go version go1.25.1 linux/amd64

$ go install -ldflags "-s -w"  github.com/go-task/task@latest

github.com/go-task/task
go: downloading github.com/go-task/task v2.2.0+incompatible
go: finding module for package github.com/Masterminds/sprig
go: finding module for package golang.org/x/sync/errgroup
go: finding module for package github.com/mattn/go-zglob
go: finding module for package mvdan.cc/sh/interp
go: finding module for package mvdan.cc/sh/syntax
go: finding module for package gopkg.in/yaml.v2
go: finding module for package mvdan.cc/sh/shell
go: finding module for package github.com/Masterminds/semver
go: finding module for package github.com/radovskyb/watcher
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/Masterminds/sprig v2.22.0+incompatible
go: downloading github.com/mattn/go-zglob v0.0.6
go: downloading github.com/radovskyb/watcher v1.0.7
go: downloading mvdan.cc/sh v2.6.4+incompatible
go: found github.com/Masterminds/semver in github.com/Masterminds/semver v1.5.0
go: found github.com/mattn/go-zglob in github.com/mattn/go-zglob v0.0.6
go: found github.com/radovskyb/watcher in github.com/radovskyb/watcher v1.0.7
go: found golang.org/x/sync/errgroup in golang.org/x/sync v0.17.0
go: found mvdan.cc/sh/shell in mvdan.cc/sh v2.6.4+incompatible
go: found mvdan.cc/sh/interp in mvdan.cc/sh v2.6.4+incompatible
go: found mvdan.cc/sh/syntax in mvdan.cc/sh v2.6.4+incompatible
go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.4.0
go: found github.com/Masterminds/sprig in github.com/Masterminds/sprig v2.22.0+incompatible
go: finding module for package golang.org/x/crypto/ssh/terminal
go: finding module for package golang.org/x/crypto/scrypt
go: finding module for package github.com/Masterminds/goutils
go: finding module for package github.com/imdario/mergo
go: finding module for package github.com/google/uuid
go: finding module for package github.com/mitchellh/copystructure
go: finding module for package github.com/huandu/xstrings
go: downloading github.com/imdario/mergo v1.0.2
go: found golang.org/x/crypto/ssh/terminal in golang.org/x/crypto v0.42.0
go: found github.com/Masterminds/goutils in github.com/Masterminds/goutils v1.1.1
go: found github.com/google/uuid in github.com/google/uuid v1.6.0
go: found github.com/huandu/xstrings in github.com/huandu/xstrings v1.5.0
go: found github.com/imdario/mergo in github.com/imdario/mergo v1.0.2
go: found github.com/mitchellh/copystructure in github.com/mitchellh/copystructure v1.2.0
go: found golang.org/x/crypto/scrypt in golang.org/x/crypto v0.42.0
go: github.com/go-task/task imports
	github.com/go-task/task/internal/templater imports
	github.com/Masterminds/sprig imports
	github.com/imdario/mergo: github.com/imdario/[email protected]: parsing go.mod:
	module declares its path as: dario.cat/mergo
	        but was required as: github.com/imdario/mergo

Version

main

Operating system

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions