Go install

122 views
Skip to first unread message

William Molina

unread,
Mar 2, 2022, 10:44:22 PM3/2/22
to golang-nuts
Hello,

I've been trying to install Go for sometime now and for some reason it keeps denying access to it every time I try to call it in the command prompt. Everything is installed and I'm trying to use it on Visual Studio. If anyone could help me, that would be amazing.

Thank you

Kurtis Rader

unread,
Mar 2, 2022, 11:03:56 PM3/2/22
to William Molina, golang-nuts
Insufficient information. You didn't tell us your OS. You didn't tell us how you installed the Go toolchain. You didn't tell us how you are invoking the Go command. Start by eliminating the "Visual Studio" IDE as a variable. What happens if you open a terminal CLI and simply type "go version"?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a8779790-0fb3-4e7c-86fc-2af440d0e354n%40googlegroups.com.


--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

William Molina

unread,
Mar 2, 2022, 11:43:33 PM3/2/22
to golang-nuts
I am using  Windows 10 and not sure what you mean by how I installed the Go toolchain but I installed it through the Go website. I was simply invoking "go" on the terminal. I tried "go version" but the same problem persists. The picture below is what prompts after "go version" is invoked and when I choose yes, nothing seems to happen or change. If I try "go version" again then the same thing is prompted. When I say no then it simply denies access.

Thank you for the help and if there is anymore clarification you need, let me know.
IMG_8573.jpg

Jason E. Aten

unread,
Mar 11, 2022, 6:09:04 PM3/11/22
to golang-nuts
It looks like you are running into one of the various dubious Windows "security" features, this one seems related to "User Account Control". If you haven't
solved this yet, try googling for the error that you are getting. For example, I searched "windows 10 user account control do you want to allow this app" without the double quotes, and found a number of suggestions.

The other thing I would do would be to reinstall Go into the C:\go folder, rather than in C:\Program Files\Go. Reasons for this are: a) I suspect windows adds additional checks on things run from c:\Program Files;  b) I've typically run from C:\go without issue.

Make sure to add c:\go to your system PATH, if it is not automatically added by the installer. You'll have to close and re-open your cmd.exe shell to check that "go version" can run from the cmd line.

Reply all
Reply to author
Forward
0 new messages