Mayowa-Ojo / chmod-cli

Effortlessly generate chmod commands
MIT License
174 stars 4 forks source link

package io/fs is not in GOROOT #1

Open trankov opened 2 years ago

trankov commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@taigrr Thank you so much for such detailed answer!

taigrr commented 2 years ago

This is closeable.