Description
I got the above error for multiple dependencies while building walker. Am using the latest version of go from the release website go1.24.2 linux/amd64. I also tried the version from the package manager but the same error.
Below is the output i got:
"clemency@localhost:/tmp/walker/cmd$ go build -x -o walker
WORK=/tmp/go-build3781610279
/home/clemency/go/pkg/mod/golang.org/x/image@v0.23.0/bmp/reader.go:1:1: expected 'package', found 'EOF'
/home/clemency/go/pkg/mod/golang.org/x/text@v0.21.0/encoding/encoding.go:1:1: expected 'package', found 'EOF'
/home/clemency/go/pkg/mod/golang.org/x/text@v0.21.0/encoding/charmap/charmap.go:1:1: expected 'package', found 'EOF'
/home/clemency/go/pkg/mod/golang.org/x/text@v0.21.0/encoding/htmlindex/gen.go:1:1: expected 'package', found 'EOF'
/home/clemency/go/pkg/mod/golang.org/x/text@v0.21.0/transform/examples_test.go:1:1: expected 'package', found 'EOF'"
I manually checked and the files are there.