Comments (13)
Hmm, I guess that it should be possible to use Godep, I guess the issue is that regular go get
won't work... Somehow don't manage to get that to work either...
from gonative.
Well, after creating a clean workspace:
$ go get -d github.com/inconshreveable/gonative
$ cd src/github.com/inconshreveable/gonative
$ make
go get github.com/tools/godep
<WORKSPACE>/src/github.com/inconshreveable/gonative/Godeps/_workspace/bin/godep restore
godep: restore, during download dep: exit status 1
make: *** [workspace] Error 1
from gonative.
I am running into the same issue. Using Mac OS X with a clean workspace. When I run
godep restore -v
I get these errors:
execute: &{Path:/usr/local/go/bin/go Args:[go get -d -v bitbucket.org/kardianos/osext] Env:[] Dir:. Stdin:<nil> Stdout:bitbucket.org/kardianos/osext (download)
package bitbucket.org/kardianos/osext: code in directory /Users/gkoester/development/golang_temp/src/bitbucket.org/kardianos/osext expects import "github.com/kardianos/osext"
Stderr:bitbucket.org/kardianos/osext (download)
package bitbucket.org/kardianos/osext: code in directory /Users/gkoester/development/golang_temp/src/bitbucket.org/kardianos/osext expects import "github.com/kardianos/osext"
ExtraFiles:[] SysProcAttr:<nil> Process:0xc820104040 ProcessState:exit status 1 lookPathErr:<nil> finished:true childFiles:[0xc820030080 0xc820030098 0xc820030098] closeAfterStart:[0xc820030080 0xc820030098] closeAfterWait:[0xc820030090] goroutine:[0x9b6b0] errch:0xc820018660}
output: bitbucket.org/kardianos/osext (download)
package bitbucket.org/kardianos/osext: code in directory /Users/gkoester/development/golang_temp/src/bitbucket.org/kardianos/osext expects import "github.com/kardianos/osext"
The issue seems to be in the osext package from bitbucket.
bitbucket.org/kardianos/osext expects import "github.com/kardianos/osext"
Does anybody have an idea?
from gonative.
This actually only completely breaks when using Go 1.5 I think. I solved the issue for myself right now by installing gvm
and using Go 1.4.3. In this case godep restore -v
still breaks on the first run, but when you run it again, it somehow succeeds and then godep go install
works fine. So my script basically does this:
- Install
gvm
. gvm install go1.4.3
gvm use go1.4.3
- Clone gonative.
- Run
godep restore -v
3 times. In case we always get$? -ne 0
, we abort. godep go install
works now.
from gonative.
The solution could be I guess to update the version of github.com/kardianos/osext
to a more recent commit. Will take a look...
from gonative.
Ah, it's still importing the old import path, that is why it is breaking. The right import path is github.com/kardianos/osext
, obviously...
from gonative.
true, I am using Go 1.5.1. After fixing the Godeps.json by Hand i was able to run make again:
{
"ImportPath": "_/Users/aes/src/gonative",
"GoVersion": "go1.3",
"Packages": [
"github.com/inconshreveable/gonative"
],
"Deps": [
{
"ImportPath": "github.com/kardianos/osext",
"Comment": "null-15",
"Rev": "10da29423eb9a6269092eebdc2be32209612d9d2"
},
{
"ImportPath": "github.com/codegangsta/cli",
"Comment": "1.2.0-50-ga14c5b4",
"Rev": "a14c5b47c7efa4ff80cc42e1079a34b4756f2311"
},
{
"ImportPath": "github.com/inconshreveable/axiom",
"Rev": "d47f34fee0ce318eb07f0eee4b0e68b5662355ed"
},
{
"ImportPath": "github.com/inconshreveable/go-update",
"Rev": "8455de157e5e3eee5d680febf627fc4c03b59332"
},
{
"ImportPath": "github.com/inconshreveable/mousetrap",
"Rev": "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
},
{
"ImportPath": "github.com/kr/binarydist",
"Rev": "9955b0ab8708602d411341e55fffd7e0700f86bd"
},
{
"ImportPath": "github.com/mattn/go-colorable",
"Rev": "043ae16291351db8465272edf465c9f388161627"
},
{
"ImportPath": "gopkg.in/inconshreveable/log15.v2",
"Comment": "v2.7",
"Rev": "7cf5571b3b32a7c7b5605dc5ed8ad8fdbb2135f0"
},
{
"ImportPath": "gopkg.in/yaml.v1",
"Rev": "9f9df34309c04878acc86042b16630b0f696e1de"
}
]
}
from gonative.
Had to update ImportPath and Rev for "osext" and had to update the Rev for "go-update" and "axiom"
from gonative.
You can send a pull request ;-)
from gonative.
send pull request (Edit now Pull Request 23 instead of PR22): #23
from gonative.
Cheers. Now we only need to wait for someone to merge it :-) @inconshreveable
from gonative.
Fixed by #23
from gonative.
Thanks guys!
from gonative.
Related Issues (19)
- gonative build returns "Bad response for download: 404" HOT 6
- Fails to build, go1.4 windows/amd64 HOT 1
- Make fails because Godeps/Godeps.json not checked in HOT 1
- golang 1.4.2 do not have freebsd release package HOT 1
- Does this works for compiling go using sqlite3 package HOT 2
- Test / Validate on Windows HOT 2
- Go 1.5.1 support HOT 5
- Distribution URL needs an update HOT 2
- Easier Bootstrap for Go 1.5+ HOT 4
- Failing to cross-compile when using gonative, gox and Go 1.5.1 HOT 14
- Fails to build on OS X 10.8 HOT 6
- go get failed with too many errors HOT 2
- Support for alternative libc's like musl?
- question about deprecation of this tool and alternative HOT 5
- gonative can't be `go get`-ed HOT 1
- make.bash build does not install race enabled stdlib packages HOT 4
- Fails to build, 1.3 on linux-amd64 HOT 2
- > gonative won't run on Windows because it uses unzip/tar unix utilities HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gonative.