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

průvodce: zastaralý (?) obsah #17

Open
mcepl opened this issue Jul 8, 2024 · 0 comments
Open

průvodce: zastaralý (?) obsah #17

mcepl opened this issue Jul 8, 2024 · 0 comments

Comments

@mcepl
Copy link

mcepl commented Jul 8, 2024

Kontext: https://go-tour-cz.appspot.com/welcome/1

Je opravdu smutné, když začátečník, který se má učit první kroky, si musí projít toto:

tumbleweed-pkg/tmp$ go tool tour
go: no such tool "tour"
tumbleweed-pkg/tmp$ go get golang.org/x/tour/gotour
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'.
tumbleweed-pkg/tmp$ go install golang.org/x/tour/gotour
go: 'go install' requires a version when current directory is not in a module
	Try 'go install golang.org/x/tour/gotour@latest' to install the latest version
tumbleweed-pkg/tmp$ go install golang.org/x/tour/gotour@latest
go: golang.org/x/tour/gotour@latest: module golang.org/x/tour@latest found (v0.1.0), but does not contain package golang.org/x/tour/gotour
tumbleweed-pkg/tmp$ 

a teprve, když přepne do anglického originálu se dozví, že správný příkaz je

tumbleweed-pkg/tmp$ go install golang.org/x/website/tour@latest
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

1 participant