-
-
Notifications
You must be signed in to change notification settings - Fork 249
Description
cloning the github project with:
git clone https://github.com/mattn/go-gtk
then cd go-gtk to further install using go get (which is not supported anymore):
go get ... go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.
even trying with go install I get:
go: cannot find main module, but found Gopkg.lock in /home/shane/Dev/Go!/go-gtk to create a module there, run: go mod init [shane@fedora go-gtk]$ go install ... cmd/go: go install cmd/go: copying /tmp/go-build3849820344/b232/exe/a.out: open /usr/lib/golang/bin/go: permission denied [shane@fedora go-gtk]$ go get github.com/mattn/go-gtk/gtk go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.
and even if you try:
go install github.com/mattn/go-gtk/gtk Output: go: 'go install' requires a version when current directory is not in a module Try 'go install github.com/mattn/go-gtk/gtk@latest' to install the latest version [shane@fedora go-gtk]$ go install github.com/mattn/go-gtk/gtk@latest go: downloading github.com/mattn/go-gtk v0.0.0-20230419095350-e099c1bf7abc go: finding module for package github.com/mattn/go-pointer go: downloading github.com/mattn/go-pointer v0.0.1 go: found github.com/mattn/go-pointer in github.com/mattn/go-pointer v0.0.1 package github.com/mattn/go-gtk/gtk is not a main package
Is the project dead?