Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load io/fs: malformed module path "io/fs": missing dot in first path element #31

Closed
noloader opened this issue Nov 30, 2021 · 2 comments

Comments

@noloader
Copy link
Contributor

I'm trying to build the installer on Ubuntu 20.04.3 LTS, x86_64. I'm using Master. Running go build results in:

$ go build
build github.com/mtesauro/godojo: cannot load io/fs: malformed module path "io/fs": missing dot in first path element
@mtesauro
Copy link
Collaborator

mtesauro commented Dec 1, 2021

What version of go are you using? I'm basically on the same OS as you:

$ go version
go version go1.17.3 linux/amd64
$ cat /etc/lsb-release
DISTRIB_ID=Pop
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Pop!_OS 21.04"
$ pwd
/my/path/defectdojo/godojo
$ go build
$ 

prior to updating to 1.17.3 recently, I was running 1.16.3 of Go downloaded for golang.org and manually installed.

FWIW, I've never tried to go build from a URL since I have the code locally - don't think that matters but I've never built godojo that way.

@mtesauro
Copy link
Collaborator

mtesauro commented Dec 1, 2021

Also, io/fs came into go around 1.16 so if your go version is less than 1.16, that's likely your problem.

@mtesauro mtesauro closed this as completed Dec 5, 2021
coopergillan added a commit to coopergillan/terraform-provider-redshift that referenced this issue Jan 27, 2023
The older versions of Go are failing on `go install` with an error about
`io/fs`, which looks like an issue with older versions of Go:

DefectDojo/godojo#31

Remove old versions of Go that have been EOL for some time:

https://endoflife.date/go
coopergillan added a commit to coopergillan/terraform-provider-redshift that referenced this issue Jan 27, 2023
* GH-36 - Run builds for Go 1.16, 1.17

Run the builds for Go 1.16 and 1.17 before trying other newer versions.

* GH-36 - Remove older versions and add newer veresions

The older versions of Go are failing on `go install` with an error about
`io/fs`, which looks like an issue with older versions of Go:

DefectDojo/godojo#31

Remove old versions of Go that have been EOL for some time:

https://endoflife.date/go

* GH-36 - Update to latest terraform SDK, pq

* GH-36 - Remove all EOL Go versions

* GH-36 - Set `go.mod` to minimum of Go 1.18

With builds running for non-EOL versions only, set go.mod to use a
minimum of Go 1.18.

* GH-36 - Run `go mod tidy` for Go 1.18 minimum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants