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

Installing issue with newer go version #28

Open
prashant3286 opened this issue Jun 14, 2022 · 2 comments
Open

Installing issue with newer go version #28

prashant3286 opened this issue Jun 14, 2022 · 2 comments

Comments

@prashant3286
Copy link

Just a suggestion from my side:

Starting in Go 1.17, installing executables with go get is deprecated.
Now, go install may be used instead.

So can you please just update the documentation so that people would not be confused while using it

@Shohreh
Copy link

Shohreh commented Jul 3, 2023

I don't know go. What's the right way to install and proceed?

Thank you.

c:\go>go install rsc.io/2fa@latest
go: downloading rsc.io/2fa v1.2.0
go: downloading github.com/atotto/clipboard v0.1.2
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:65:2: package bufio is not in GOROOT (c:\go\src\bufio)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:66:2: package bytes is not in GOROOT (c:\go\src\bytes)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:67:2: package crypto/hmac is not in GOROOT (c:\go\src\crypto\hmac)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:68:2: package crypto/sha1 is not in GOROOT (c:\go\src\crypto\sha1)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:69:2: package encoding/base32 is not in GOROOT (c:\go\src\encoding\base32)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:70:2: package encoding/binary is not in GOROOT (c:\go\src\encoding\binary)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:71:2: package flag is not in GOROOT (c:\go\src\flag)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:72:2: package fmt is not in GOROOT (c:\go\src\fmt)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:73:2: package io/ioutil is not in GOROOT (c:\go\src\io\ioutil)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:74:2: package log is not in GOROOT (c:\go\src\log)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:75:2: package os is not in GOROOT (c:\go\src\os)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:76:2: package path/filepath is not in GOROOT (c:\go\src\path\filepath)
package rsc.io/2fa: cannot find package
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:77:2: package sort is not in GOROOT (c:\go\src\sort)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:78:2: package strconv is not in GOROOT (c:\go\src\strconv)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:79:2: package strings is not in GOROOT (c:\go\src\strings)
C:\Users\joe\go\pkg\mod\github.com\atotto\clipboard@v0.1.2\clipboard_windows.go:10:2: package syscall is not in GOROOT (c:\go\src\syscall)
C:\Users\joe\go\pkg\mod\github.com\atotto\clipboard@v0.1.2\clipboard_windows.go:11:2: package time is not in GOROOT (c:\go\src\time)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:81:2: package unicode is not in GOROOT (c:\go\src\unicode)
C:\Users\joe\go\pkg\mod\github.com\atotto\clipboard@v0.1.2\clipboard_windows.go:12:2: package unsafe is not in GOROOT (c:\go\src\unsafe)

c:\go>2fa -add twitter
'2fa' is not recognized as an internal or external command,operable program or batch file.

@ghost
Copy link

ghost commented Sep 25, 2023

I don't know go. What's the right way to install and proceed?

Thank you.

c:\go>go install rsc.io/2fa@latest
go: downloading rsc.io/2fa v1.2.0
go: downloading github.com/atotto/clipboard v0.1.2
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:65:2: package bufio is not in GOROOT (c:\go\src\bufio)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:66:2: package bytes is not in GOROOT (c:\go\src\bytes)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:67:2: package crypto/hmac is not in GOROOT (c:\go\src\crypto\hmac)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:68:2: package crypto/sha1 is not in GOROOT (c:\go\src\crypto\sha1)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:69:2: package encoding/base32 is not in GOROOT (c:\go\src\encoding\base32)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:70:2: package encoding/binary is not in GOROOT (c:\go\src\encoding\binary)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:71:2: package flag is not in GOROOT (c:\go\src\flag)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:72:2: package fmt is not in GOROOT (c:\go\src\fmt)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:73:2: package io/ioutil is not in GOROOT (c:\go\src\io\ioutil)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:74:2: package log is not in GOROOT (c:\go\src\log)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:75:2: package os is not in GOROOT (c:\go\src\os)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:76:2: package path/filepath is not in GOROOT (c:\go\src\path\filepath)
package rsc.io/2fa: cannot find package
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:77:2: package sort is not in GOROOT (c:\go\src\sort)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:78:2: package strconv is not in GOROOT (c:\go\src\strconv)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:79:2: package strings is not in GOROOT (c:\go\src\strings)
C:\Users\joe\go\pkg\mod\github.com\atotto\clipboard@v0.1.2\clipboard_windows.go:10:2: package syscall is not in GOROOT (c:\go\src\syscall)
C:\Users\joe\go\pkg\mod\github.com\atotto\clipboard@v0.1.2\clipboard_windows.go:11:2: package time is not in GOROOT (c:\go\src\time)
C:\Users\joe\go\pkg\mod\rsc.io\2fa@v1.2.0\main.go:81:2: package unicode is not in GOROOT (c:\go\src\unicode)
C:\Users\joe\go\pkg\mod\github.com\atotto\clipboard@v0.1.2\clipboard_windows.go:12:2: package unsafe is not in GOROOT (c:\go\src\unsafe)

c:\go>2fa -add twitter
'2fa' is not recognized as an internal or external command,operable program or batch file.

Hey this is a bit late and I sort of got into the same confusion after installing go using snap. There is a directory at ~/go, and inside ~/go/bin you would see the binary file of 2fa, running ./2fa in the directory ~/go/bin works. I guess to call "2fa" directly in the terminal you would add ~/go/bin/2fa to the local path?

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