Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(32)

Issue 4368059: Windows env.bash fix

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Mr_Dark
Modified:
13 years ago
Visibility:
Public.

Description

src/env.bash: Workaround/fix so compiling works on windows (MingW). Otherwise you would get the following when compiling Go make: pwd: Command not found make: echo: Command not found make: *** [go-env] Error 127 Did not find Go environment variables.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M src/env.bash View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 24
Mr_Dark
13 years ago (2011-04-18 09:38:05 UTC) #1
rsc1
What causes the commands not to be found and why does rearranging directory order in ...
13 years ago (2011-04-18 15:21:31 UTC) #2
Mr_Dark
I really have no idea. This is just something that came up when I looked ...
13 years ago (2011-04-18 17:36:13 UTC) #3
rsc1
On Mon, Apr 18, 2011 at 13:36, Mr_Dark <mr_dark@darkweb.nl> wrote: > I really have no ...
13 years ago (2011-04-18 17:51:20 UTC) #4
peterGo
Russ, In Windows paths, a colon is a volume separator and a semi-colon is a ...
13 years ago (2011-04-18 18:28:23 UTC) #5
rsc1
On Mon, Apr 18, 2011 at 14:28, <go.peter.90@gmail.com> wrote: > Russ, > > In Windows ...
13 years ago (2011-04-18 18:35:09 UTC) #6
peterGo
Russ This is a quick kludge that I threw together to get over the immediate ...
13 years ago (2011-04-18 18:58:05 UTC) #7
peterGo
Russ, > It seems like rearranging $PATH > is ignoring the fact that $GOBIN is ...
13 years ago (2011-04-18 20:41:02 UTC) #8
Mr_Dark
Just converting the \ to / also works. MSYS/MinGW doesn't seem to have a problem ...
13 years ago (2011-04-18 20:49:55 UTC) #9
peterGo
On 2011/04/18 20:49:55, Mr_Dark wrote: > Just converting the \ to / also works. MSYS/MinGW ...
13 years ago (2011-04-18 21:22:55 UTC) #10
Mr_Dark
You still need to fix $PATH otherwise it'll you will get that error. env.bash - ...
13 years ago (2011-04-18 21:49:05 UTC) #11
Joe Poirier
On Mon, Apr 18, 2011 at 4:49 PM, Mr_Dark <mr_dark@darkweb.nl> wrote: > You still need ...
13 years ago (2011-04-18 23:12:30 UTC) #12
Joe Poirier
...left out the first part of the readme Go-dev issue 424905 moved GOBIN in front ...
13 years ago (2011-04-18 23:15:53 UTC) #13
brainman
Unfortunately I have nothing useful to add. I think this http://code.google.com/p/go/issues/detail?id=1587 is related. Alex
13 years ago (2011-04-18 23:48:41 UTC) #14
Joe Poirier
Just to clarify - when I say the user may have already set an environment ...
13 years ago (2011-04-19 02:08:28 UTC) #15
peterGo
Joe, On 2011/04/19 02:08:28, Joe Poirier wrote: > - if GOBIN is hard coded to ...
13 years ago (2011-04-19 13:37:35 UTC) #16
peterGo
Joe, Sorry, it should have read, c:/go/bin -> /c/go/bin c:\go\bin -> /cgobin Peter
13 years ago (2011-04-19 13:39:41 UTC) #17
peterGo
Joe, Plus, c:\go/bin -> /cgo/bin c:/go\bin -> /c/gobin First, replace \ by /. Peter
13 years ago (2011-04-19 13:44:56 UTC) #18
peterGo
Joe, On 2011/04/19 02:08:28, Joe Poirier wrote: > env.bash > -------- > export OLDPATH=$PATH > ...
13 years ago (2011-04-19 15:55:50 UTC) #19
rsc1
Thanks for all the information. I'm having a bit of a hard time following it ...
13 years ago (2011-04-19 16:16:02 UTC) #20
Joe Poirier
On Tue, Apr 19, 2011 at 11:15 AM, Russ Cox <rsc@google.com> wrote: > Thanks for ...
13 years ago (2011-04-19 16:47:52 UTC) #21
Joe Poirier
I can do the CL tonight unless someone else has already started one? -joe On ...
13 years ago (2011-04-19 16:53:46 UTC) #22
peterGo
Joe, On 2011/04/19 16:47:52, Joe Poirier wrote: > For the CL to work it needs ...
13 years ago (2011-04-19 16:56:52 UTC) #23
peterGo
13 years ago (2011-04-19 17:15:33 UTC) #24
Russ,

You clearly understand the problem.

We need a CL that converts $GOBIN from a Windows path to a Unix-like path before
it's inserted in the $PATH list.

This CL is not okay.

Peter
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b