>
> Anyway, thanks for try to help!
>
Actually I was able to instal Go on my mac computer, it took only 10
minutes))), so I will continue to study there ;)
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
I'm sorry that I can't help more. It appears to me that the go builder
was able to create some of the temporary files it needs, but not
others. This is a very strange situation that I have not seen before.
Akin to having a full disk or otherwise exhausting the storage
availability.
I do not know h
Ok there is one file in
E:\temp\go-build828919622\b001\importcfg.link
end is empty in
E:\temp\go-build828919622\b001\exe
this is content of importcfg.link
packagefile
hello=C:\Users\Avetis\AppData\Local\go-build\ae\aecfeab49f117df031d74e0ca3aad783ba25f0524b981cbb74a2db671205fadd-d
packagefile fmt=
> PS F:\GoWorckspace\src\hello> go build -work
> WORK=E:\temp\go-build828919622
> open E:\temp\go-build828919622\b001\exe\a.out.exe: The system cannot find the
> file specified.
once you have done this you should be able to cd to
E:\temp\go-build828919622 and look around to see if any files have
GOPATH = F:\GoWorckspace
GOPATH dir structure is:
-bin/
-pkg/
-src/
-hello/
hello.go
This is my home computer and cause is not an antivirus programm, I tried to
reapit everising with it uninstalled.
And here is resul running build command with -work argument
PS F:\GoWorckspace\s
> PS F:\GoWorckspace\src\hello> go install
> open E:\temp\go-build447177998\b001\exe\a.out.exe: The system cannot find the
> file specified.
is this a school or work computer? if yes then a group policy may have
disabled the execution of exe files. supply the "-work" argument to go
build. it will
It could be due to some anti-virus scanner deleting files.
Here is the relevant issue : https://github.com/golang/go/issues/26195
On Monday, 29 April 2019 22:02:33 UTC-7, Avetis Sargsian wrote:
>
> I set GOTMPDIR to E:\temp folder
>>
> and here is the result
>
> PS F:\GoWorckspace\src\hello> go i
>
> I set GOTMPDIR to E:\temp folder
>
and here is the result
PS F:\GoWorckspace\src\hello> go install
open E:\temp\go-build447177998\b001\exe\a.out.exe: The system cannot find
the file specified.
PS F:\GoWorckspace\src\hello> go build
open E:\temp\go-build140959642\b001\exe\a.out.exe: The sys
What is the output of your "go build" under the dir?
Please give a pre and after capture.
On Sunday, April 28, 2019 at 6:45:20 AM UTC-7, Avetis Sargsian wrote:
>
> Hi everyone, as you can see from the topic I am new to Go
>
> I follow the instruction on this page
> https://golang.org/doc/code.ht
try setting GOTMPDIR. not sure what this corresponds to on windows,
but it will change where the go tool will create its temp files:
$ go run -x t.go
WORK=/var/folders/sp/06p28g2d0vs7gd2vhf26wl9mgn/T/go-build126372523
[...]
$ GOTMPDIR=/tmp/go go run -x t.go
WORK=/tmp/go/go-build661115935
[...]
Unfortunately changin GOCACHE variable didn't help
> PS F:\GoWorckspace\src\hello> go env
> set GOARCH=amd64
> set GOBIN=F:\GoWorckspace\bin
> set GOCACHE=F:\temp
> set GOEXE=.exe
> set GOFLAGS=
> set GOHOSTARCH=amd64
> set GOHOSTOS=windows
> set GOOS=windows
> set GOPATH=F:\GoWorckspace
> set G
There is a problem with your C drive. Go uses it to store temporary files.
The error messages says it cannot access a file that Go should have created
there. It's either a full drive or a permission issues. You can change the
location by changing the GOCACHE variable
--
You received this mess
Well, I don't have experience in Windows, but I'd suggest you to try:
1) get out of your GOPATH or set GO111MODULES=on
2) go mod init or go mod init hello
3) go mod tidy
4) go run main.go or go build && ./hello
Also, have a look at https://github.com/golang/go/wiki/Modules#quick-start
good luck!
13 matches
Mail list logo