Closed mefuller closed 1 year ago
Hi @mefuller,
It's curious that you have this failing test because on our machines and on CI it passed.
We indeed reintroduced the Masterminds/semver
package as a dependency this release, which seems to be the cause of the fail for you.
Can you check that you're properly updating your dependencies according to go.mod? It seems to me that you may be trying to compile having an older version of this package.
I'm downloading a clean tarball from github for the build The SHA256 checksum is: 9abe03f06bac507bc8a153bd94ccbe5cde324ee120da7d596b1845ae4e8e3d53 task-3.22.0.tar.gz
The go.mod
file:
module github.com/go-task/task/v3
go 1.19
require (
github.com/Masterminds/semver/v3 v3.2.0
github.com/fatih/color v1.14.1
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0
github.com/golang/mock v1.6.0
github.com/joho/godotenv v1.5.1
github.com/mattn/go-zglob v0.0.4
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/radovskyb/watcher v1.0.7
github.com/sajari/fuzzy v1.0.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.1
golang.org/x/exp v0.0.0-20230212135524-a684f29349b6
golang.org/x/sync v0.1.0
gopkg.in/yaml.v3 v3.0.1
mvdan.cc/sh/v3 v3.6.0
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/sys v0.3.0 // indirect
golang.org/x/term v0.3.0 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
)
The Fedora golang-github-masterminds-semver
is v3.1.1 - perhaps this is the issue.
I will investigate further.
The Fedora
golang-github-masterminds-semver
is v3.1.1 - perhaps this is the issue.
I believe so. It should be using v3.2.0 as pinned in the go.mod file.
I don't know how packaging works on Fedora, or why you seems not to be using Go modules, but I would recommend you to use Go modules to build if possible. This should guarantee that you're using the right version of each dependency.
I'll check the buildlog again to see if any warning about the version showed up, but Fedora and Debian both (and I started the packaging process for Debian) unbundle dependencies. GitHub.com/Masterminds/semver/v3 is its own package that is maintained separately. I opened a PR to update our package and will rebuild once available.
Failing to build new package on Fedora due to a failed test: