-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: "go clean -cache" is an unknown command on fresh installs #59109
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
Comments
how did you install go? |
I was installing on my Raspberry PI 4 running Rocky9 - I have the commands on hand:
Then immediately ran |
is this a reproducible error? |
You've got a zero width space character before clean (it's also in the command you pasted above): |
Oh ahaha! Nice spot. No idea how that got there. Okey, no issue here. Closing... |
Just wanted to comment I was hit by the exact same error. Surprisingly when copying and pasting from Google! Apparently Google inserts that character there for some reason. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Installed golang on a Raspiberry PI and ran
go clean -cache
but got an "unknown command" error.After running
go install
(I installed Hugo from it's source).go clean -cache
is now a recongised command and doesn't error.What did you expect to see?
I would expect the command to not say it is an unknown command on a fresh install and if there is nothing to clean, either exit with such a message or no message at all. Saying it is an "unknown command" is misleading.
What did you see instead?
The text was updated successfully, but these errors were encountered: