addlicense icon indicating copy to clipboard operation
addlicense copied to clipboard

malformed module path "io/fs"

Open nextfour-back-sabina opened this issue 3 years ago • 1 comments

I used the command:

go get github.com/google/[email protected]

And the download started. However, it was interrupted by thiss error message:
build github.com/google/addlicense: cannot load io/fs: malformed module path "io/fs": missing dot in first path element

This is the whole download:

$ go get github.com/google/[email protected]
go: finding github.com v1.0.0
go: finding github.com/google v1.0.0
go: downloading github.com/bmatcuk/doublestar/v4 v4.0.2
go: downloading golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
go: extracting golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
go: extracting github.com/bmatcuk/doublestar/v4 v4.0.2
go: finding golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
go: finding github.com/bmatcuk/doublestar/v4 v4.0.2
build github.com/google/addlicense: cannot load io/fs: malformed module path "io/fs": missing dot in first path element

nextfour-back-sabina avatar Jun 08 '22 12:06 nextfour-back-sabina

What version of go are you using? addlicense requires go1.16, which is when the io/fs package was added.

willnorris avatar Jun 18 '22 22:06 willnorris

I'm assuming this is simply a go versioning issue. If its something else, please feel free to provide more info.

willnorris avatar Aug 31 '22 04:08 willnorris