Skip to content

"package io/fs is not in GOROOT" on Go 1.15 #1870

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

Closed
3 tasks done
soranoba opened this issue May 10, 2021 · 5 comments
Closed
3 tasks done

"package io/fs is not in GOROOT" on Go 1.15 #1870

soranoba opened this issue May 10, 2021 · 5 comments

Comments

@soranoba
Copy link

Issue Description

If we update to echo v4.3.0, go mod tidy will fail except for Go 1.16.
golang-migrate/migrate#480 was detailed.
(go-migrate seems to have chosen to revert)

$ go mod tidy
github.com/xxx/xxxx/pkg/server imports
	github.com/labstack/echo/v4/middleware tested by
	github.com/labstack/echo/v4/middleware.test imports
	io/fs: package io/fs is not in GOROOT (/usr/local/Cellar/go/1.15.8/libexec/src/io/fs)
github.com/xxx/xxxx/pkg/server imports
	github.com/labstack/echo/v4/middleware tested by
	github.com/labstack/echo/v4/middleware.test imports
	testing/fstest: package testing/fstest is not in GOROOT (/usr/local/Cellar/go/1.15.8/libexec/src/testing/fstest)

Checklist

  • Dependencies installed
  • No typos
  • Searched existing issues and docs

Expected behaviour

Actual behaviour

Steps to reproduce

Working code to debug

package main

func main() {
}

Version/commit

v4.3.0

@soranoba soranoba changed the title package io/fs is not in GOROOT" on Go 1.15 "package io/fs is not in GOROOT" on Go 1.15 May 10, 2021
@aldas
Copy link
Contributor

aldas commented May 10, 2021

@soranoba if you update Go version to 1.15.12 - does it make any difference?

@soranoba
Copy link
Author

Ah... Thanks.
It fixes on Go 1.15.12

@aldas
Copy link
Contributor

aldas commented May 10, 2021

Just for readers in future - that go mod problem was fixed in pre 1.16 versions soon after 1.16 was released. I think in 1.15.10 or 1.15.11 version.

@tte
Copy link

tte commented May 20, 2021

Bumped into the same issue with go1.14.14 and go mod tidy

io/fs: package io/fs is not in GOROOT
...
testing/fstest: package testing/fstest is not in GOROOT

as @aldas mentioned, you need to update the version of go >= 1.15.10

@Sri-Nikitha-K
Copy link

Sri-Nikitha-K commented Nov 22, 2022

Facing the same issue in go->go1.19.3

On running "gcloud app deploy"
package io/fs is not in GOROOT

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

4 participants