|
|
Descriptionmisc/vim: Allow multiple GOOS/GOARCH.
Patch Set 1 #Patch Set 2 : diff -r bbe324079abe http://go.googlecode.com/hg/ #Patch Set 3 : diff -r bbe324079abe http://go.googlecode.com/hg/ #Patch Set 4 : diff -r fd0b7333b96b http://go.googlecode.com/hg/ #
Total comments: 5
Patch Set 5 : diff -r fd0b7333b96b http://go.googlecode.com/hg/ #Patch Set 6 : diff -r fd0b7333b96b http://go.googlecode.com/hg/ #Patch Set 7 : diff -r fd0b7333b96b http://go.googlecode.com/hg/ #MessagesTotal messages: 17
`go env GOROOT` returns multiple lines if there are some GOOS/GOARCH in pkg directory.
Sign in to reply to this message.
`go env GOROOT` returns multiple lines if there are some GOOS/GOARCH in pkg directory.
Sign in to reply to this message.
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to http://go.googlecode.com/hg/
Sign in to reply to this message.
Oops sorry.
Sign in to reply to this message.
This is too late for go1.1, but can you please remind me of this after go1.1 is released?
Sign in to reply to this message.
Hm, I can't reproduce the > returns multiple lines if there are some GOOS/GOARCH in pkg directory. thing here. What exactly is up with that?
Sign in to reply to this message.
Try to create directory in pkg. $ ls linux_amd64 $ mkdir linux_amd64_tmp This make break. On Wednesday, May 8, 2013 6:15:57 PM UTC+9, Dominik Honnef wrote: > > Hm, I can't reproduce the > > > returns multiple lines if there are some GOOS/GOARCH in pkg directory. > > thing here. What exactly is up with that? > > https://codereview.appspot.com/9293043/ >
Sign in to reply to this message.
dominikh@dominikh-pc $ go env GOROOT /home/dominikh/go dominikh@dominikh-pc $ mkdir $GOROOT/pkg/linux_amd64_tmp dominikh@dominikh-pc $ go env GOROOT /home/dominikh/go dominikh@dominikh-pc $ go version go version devel +aa1ff597baa5 Wed Apr 03 20:32:50 2013 +1100 linux/amd64 For what it's worth, I already had directories for all GOOS/GOARCH combinations in /pkg/, since I have cross compilation for all of those set up. So I can't still reproduce it.
Sign in to reply to this message.
Look here https://codereview.appspot.com/9293043/diff/6001/misc/vim/autoload/go/complet... Probably, your environment doesn't set "*" to s:goos or s:goarch. On my environment, it is set as '*'. Then, expand(dir . '/pkg/' . s:goos . '_' . s:goarch) return multiple-line. On Wednesday, May 8, 2013 6:35:54 PM UTC+9, Dominik Honnef wrote: > > dominikh@dominikh-pc $ go env GOROOT > /home/dominikh/go > dominikh@dominikh-pc $ mkdir $GOROOT/pkg/linux_amd64_tmp > dominikh@dominikh-pc $ go env GOROOT > /home/dominikh/go > dominikh@dominikh-pc $ go version > go version devel +aa1ff597baa5 Wed Apr 03 20:32:50 2013 +1100 > linux/amd64 > > For what it's worth, I already had directories for all GOOS/GOARCH > combinations in /pkg/, since I have cross compilation for all of those > set up. So I can't still reproduce it. > > https://codereview.appspot.com/9293043/ >
Sign in to reply to this message.
ping
Sign in to reply to this message.
https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... File misc/vim/autoload/go/complete.vim (right): https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... misc/vim/autoload/go/complete.vim:47: let pathsep = (has('win32')||has('win64')) ? ';' : ':' may as well use existing vars for this. please frame it to make windows the exceptional case too. let sep = ':' if s:goos == 'windows' let sep = ';' endif https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... misc/vim/autoload/go/complete.vim:60: let root = split(expand(dir . '/pkg/' . s:goos . '_' . s:goarch), "\n") what is this splitting? shouldn't this expand to a single thing? if this is to permit this not matching, make that explicit instead. let root = expand(...) if root == '' continue endif
Sign in to reply to this message.
Hello golang-dev@googlegroups.com, dsymonds@golang.org, dominik.honnef@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
Sign in to reply to this message.
https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... File misc/vim/autoload/go/complete.vim (right): https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... misc/vim/autoload/go/complete.vim:47: let pathsep = (has('win32')||has('win64')) ? ';' : ':' On 2013/07/02 03:02:16, dsymonds wrote: > may as well use existing vars for this. please frame it to make windows the > exceptional case too. > > let sep = ':' > if s:goos == 'windows' > let sep = ';' > endif Done. https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... misc/vim/autoload/go/complete.vim:60: let root = split(expand(dir . '/pkg/' . s:goos . '_' . s:goarch), "\n") Yes, this return multiple-lines if several directries are exists in /pkg/. The s:goarch is '*' on my environment. On 2013/07/02 03:02:16, dsymonds wrote: > what is this splitting? shouldn't this expand to a single thing? > > if this is to permit this not matching, make that explicit instead. > > let root = expand(...) > if root == '' > continue > endif
Sign in to reply to this message.
https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... File misc/vim/autoload/go/complete.vim (right): https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... misc/vim/autoload/go/complete.vim:60: let root = split(expand(dir . '/pkg/' . s:goos . '_' . s:goarch), "\n") On 2013/07/02 03:20:50, mattn wrote: > Yes, this return multiple-lines if several directries are exists in /pkg/. The > s:goarch is '*' on my environment. > > On 2013/07/02 03:02:16, dsymonds wrote: > > what is this splitting? shouldn't this expand to a single thing? > > > > if this is to permit this not matching, make that explicit instead. > > > > let root = expand(...) > > if root == '' > > continue > > endif > okay, that wasn't obvious. Add a comment. " this may expand to multiple lines
Sign in to reply to this message.
On 2013/07/02 04:08:57, dsymonds wrote: > https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... > File misc/vim/autoload/go/complete.vim (right): > > https://codereview.appspot.com/9293043/diff/16001/misc/vim/autoload/go/comple... > misc/vim/autoload/go/complete.vim:60: let root = split(expand(dir . '/pkg/' . > s:goos . '_' . s:goarch), "\n") > On 2013/07/02 03:20:50, mattn wrote: > > Yes, this return multiple-lines if several directries are exists in /pkg/. The > > s:goarch is '*' on my environment. > > > > On 2013/07/02 03:02:16, dsymonds wrote: > > > what is this splitting? shouldn't this expand to a single thing? > > > > > > if this is to permit this not matching, make that explicit instead. > > > > > > let root = expand(...) > > > if root == '' > > > continue > > > endif > > > > okay, that wasn't obvious. Add a comment. > > " this may expand to multiple lines Done
Sign in to reply to this message.
LGTM
Sign in to reply to this message.
*** Submitted as https://code.google.com/p/go/source/detail?r=dfb6b95d3a98 *** misc/vim: Allow multiple GOOS/GOARCH. R=golang-dev, dsymonds, dominik.honnef CC=golang-dev https://codereview.appspot.com/9293043 Committer: David Symonds <dsymonds@golang.org>
Sign in to reply to this message.
|