[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to use /usr/share/gocode?



Dear all

(please Cc answers)

I am trying to fix some bugs in a Go program I am using which is not
packaged. I have the sources in
	~/go/src/github.com/...
I have installed the necessary dependencies via apt (all kinds of
golang-github-... packages).

Now I am trying to build the package. First I tried with
	GOPATH=~/go
which normally works if I have all deps installed into ~/go. But since
other deps are in /usr/share/gocode, this doesn't work.

Next I set
	GOPATH=/usr/share/gocode:~/go
which again fails with errors for *each* installed package:
	mkdir /usr/share/gocode/pkg: permission denied
(yes of course, I am not compiling anything as root!).

Then I checked whether there is any documentation in the golang-go,
golang, etc etc etc, but no README.Debian nor anything else under
	/usr/share/doc/golang*

Could you please explain (and maybe add it to some README.Debian in
golang-go or similar) how
	/usr/share/gocode
should be used (besides copying everything into ~/go, which defeats the
idea!).

Thanks (again, please Cc)

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


Reply to: