octokit / go-octokit

Simple Go wrapper for the GitHub API
https://github.com/octokit/go-octokit
MIT License
258 stars 79 forks source link

Errors building #59

Closed catsby closed 10 years ago

catsby commented 10 years ago

Revisiting this project after a while , now I can't build it:

$ go get -u . 
package github.com/octokit/go-octokit
    imports github.com/fhs/go-netrc/netrc
    imports github.com/jtacoma/uritemplates
    imports github.com/lostisland/go-sawyer
    imports github.com/lostisland/go-sawyer/hypermedia
    imports github.com/lostisland/go-sawyer/mediatype
    imports github.com/lostisland/go-sawyer/mediaheader
    imports github.com/lostisland/go-sawyer/mediaheader
    imports github.com/lostisland/go-sawyer/mediaheader: cannot find package "github.com/lostisland/go-sawyer/mediaheader" in any of:
    /Users/clint/Developer/Cellar/go/1.2.1/libexec/src/pkg/github.com/lostisland/go-sawyer/mediaheader (from $GOROOT)
    /Users/clint/Projects/Go/src/github.com/lostisland/go-sawyer/mediaheader (from $GOPATH)

Ideas on what I'm doing wrong? I tried updating my copy of gopack, but that throws a panic :/

$ ./gp 
/// g o p a c k ///
updating github.com/fhs/go-netrc/netrc
pointing github.com/fhs/go-netrc/netrc at commit 4422b68c9c934b03e8e53ef18c8c8714542def7e
updating github.com/lostisland/go-sawyer
pointing github.com/lostisland/go-sawyer at commit ec1b99a1915d53f09d40d0c87caf60460b7f8728
updating github.com/bmizerany/assert
pointing github.com/bmizerany/assert at commit e17e99893cb6509f428e1728281c2ad60a6b31e3
panic: runtime error: index out of range

goroutine 1 [running]:
runtime.panic(0x137540, 0x2e1c17)
    /Users/clint/Developer/Cellar/go/1.2.1/libexec/src/pkg/runtime/panic.c:266 +0xb6
main.main()
    /Users/clint/Projects/Go/src/github.com/d2fn/gopack/main.go:50 +0x373
owenthereal commented 10 years ago

@catsby go-octokit is locked to an earlier version of go-sawyer using gopack. You could build it with ./script/build and test it with ./script/test, which use the vendor version of gopack.

catsby commented 10 years ago

excellent, thanks, everything :+1: now