errolflynn
errolflynn

Reputation: 641

Putting GOPATH (or any environment variable) on a separate drive in Windows

I have a drive that I use for non-executable stuff, and I set %GOPATH% to point to a directory on that drive (D:\go\path). However, I can't simply type

cd %GOPATH% 

from the C:\ drive and navigate there. I need to type

cd /c d:\go\path 

Will the go linker/compiler/assembler/other stuff still function the same way?

Upvotes: 0

Views: 435

Answers (1)

Peter Brennan
Peter Brennan

Reputation: 1376

This behavior on the command line is solely cd's fault. If you would write out the whole gopath string, you would get exactly the same behaviour. As go does (have to) make the drive/folder distinction on it's own while processing the path, everything will work just fine.

Upvotes: 2

Related Questions