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

package io/fs is not in GOROOT #1

Open
trankov opened this issue Mar 23, 2022 · 3 comments
Open

package io/fs is not in GOROOT #1

trankov opened this issue Mar 23, 2022 · 3 comments

Comments

@trankov
Copy link

trankov commented Mar 23, 2022

As I've tried to install this wonderful tool in Debian, I got the following issues.

First, after make install I saw:

$ make install
go install
make: go: No such file or directory
make: *** [Makefile:15: install] Error 127

Okay, I did apt install golang then ran make install again. So what I'd see:

$ make install
go install
go: downloading github.com/urfave/cli/v2 v2.3.0
go: downloading github.com/charmbracelet/bubbletea v0.19.1
go: downloading github.com/charmbracelet/bubbles v0.9.0
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/charmbracelet/lipgloss v0.4.0
go: downloading github.com/containerd/console v1.0.3
go: downloading github.com/muesli/reflow v0.3.0
go: downloading github.com/muesli/ansi v0.0.0-20211031195517-c9f0611b6c70
go: downloading golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827
go: downloading github.com/mattn/go-isatty v0.0.14
go: downloading github.com/muesli/termenv v0.9.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mattn/go-runewidth v0.0.13
go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
internal/generate/generate.go:5:2: package io/fs is not in GOROOT (/usr/lib/go-1.15/src/io/fs)
make: *** [Makefile:15: install] Error 1

Stackoverflow didn't help me because I'm far from Go and how does it work in different environments; so what I must to do for build it from source finally?

@taigrr
Copy link

taigrr commented Mar 23, 2022

This means your go version is not at least go 1.16. As per your logs, you're running 1.15. 1.18 is the current release. You should upgrade your go compiler.

Debian is famously behind on its go releases. Here's the recommended way to get up to date:

https://go.dev/doc/install

Finally, I would recommend removing go from your package manager in debian so they don't conflict and you know which one you're running.

@trankov
Copy link
Author

trankov commented Mar 24, 2022

@taigrr Thank you so much for such detailed answer!

@taigrr
Copy link

taigrr commented May 15, 2022

This is closeable.

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