FS#29197 - [go] Unrecognized imports when using "go get"
Attached to Project:
Community Packages
Opened by Jesus Alvarez (demizer) - Saturday, 31 March 2012, 03:14 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 31 March 2012, 19:06 GMT
Opened by Jesus Alvarez (demizer) - Saturday, 31 March 2012, 03:14 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 31 March 2012, 19:06 GMT
|
Details
Using "go get" produces errors:
sudo go get code.google.com/p/go-tour/gotour package bytes: unrecognized import path "bytes" package encoding/base64: unrecognized import path "encoding/base64" package fmt: unrecognized import path "fmt" package image: unrecognized import path "image" package image/png: unrecognized import path "image/png" package runtime: unrecognized import path "runtime" package math/rand: unrecognized import path "math/rand" package encoding/json: unrecognized import path "encoding/json" package flag: unrecognized import path "flag" package go/build: unrecognized import path "go/build" package io/ioutil: unrecognized import path "io/ioutil" package log: unrecognized import path "log" package net/http: unrecognized import path "net/http" package os: unrecognized import path "os" package os/exec: unrecognized import path "os/exec" package path/filepath: unrecognized import path "path/filepath" package regexp: unrecognized import path "regexp" package strconv: unrecognized import path "strconv" package strings: unrecognized import path "strings" package sync: unrecognized import path "sync" I want to play with gotour, but it can't retrieve the package. The same thing happens to packages on github. Also, my $GOROOT is set to /usr/lib/go |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Saturday, 31 March 2012, 19:06 GMT
Reason for closing: Fixed
Additional comments about closing: Please reopen if "sudo go get" still have problems. The package will be updated in [community] shortly.
Saturday, 31 March 2012, 19:06 GMT
Reason for closing: Fixed
Additional comments about closing: Please reopen if "sudo go get" still have problems. The package will be updated in [community] shortly.
Source /etc/profile.d/go.sh or relogin
source /etc/profile.d/go.sh
go get code.google.com/p/go-tour/gotour
solves it.
However, I think it's a good idea that "sudo go" works right after installation, so I'll make a wrapper script and update the go package.