Giter Site home page Giter Site logo

Comments (13)

tchap avatar tchap commented on June 3, 2024

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.

tchap avatar tchap commented on June 3, 2024

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.

geoko86 avatar geoko86 commented on June 3, 2024

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.

tchap avatar tchap commented on June 3, 2024

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:

  1. Install gvm.
  2. gvm install go1.4.3
  3. gvm use go1.4.3
  4. Clone gonative.
  5. Run godep restore -v 3 times. In case we always get $? -ne 0, we abort.
  6. godep go install works now.

from gonative.

tchap avatar tchap commented on June 3, 2024

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.

tchap avatar tchap commented on June 3, 2024

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.

geoko86 avatar geoko86 commented on June 3, 2024

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.

geoko86 avatar geoko86 commented on June 3, 2024

Had to update ImportPath and Rev for "osext" and had to update the Rev for "go-update" and "axiom"

from gonative.

tchap avatar tchap commented on June 3, 2024

You can send a pull request ;-)

from gonative.

geoko86 avatar geoko86 commented on June 3, 2024

send pull request (Edit now Pull Request 23 instead of PR22): #23

from gonative.

tchap avatar tchap commented on June 3, 2024

Cheers. Now we only need to wait for someone to merge it :-) @inconshreveable

from gonative.

inconshreveable avatar inconshreveable commented on June 3, 2024

Fixed by #23

from gonative.

inconshreveable avatar inconshreveable commented on June 3, 2024

Thanks guys!

from gonative.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.