golangchallenge / GCSolutions

All the solutions received to the Go Challenges
Other
66 stars 17 forks source link

Cannot build oct15/normal/daniel-skinner/piano #5

Open rakyll opened 8 years ago

rakyll commented 8 years ago
go build github.com/golangchallenge/GCSolutions/oct15/normal/daniel-skinner/piano
main.go:8:2: cannot find package "dasa.cc/piano/snd" in any of:
    /Users/jbd/go/src/dasa.cc/piano/snd (from $GOROOT)
    /Users/jbd/src/dasa.cc/piano/snd (from $GOPATH)
main.go:9:2: cannot find package "dasa.cc/piano/snd/al" in any of:
    /Users/jbd/go/src/dasa.cc/piano/snd/al (from $GOROOT)
    /Users/jbd/src/dasa.cc/piano/snd/al (from $GOPATH)

/cc @dskinner

dskinner commented 8 years ago

@rakyll the README notes the location requirement of the project, To build from source, the source expects to exist at $GOPATH/src/dasa.cc/piano

there is an import constraint due to the snd subpkg: https://github.com/golangchallenge/GCSolutions/blob/master/oct15/normal/daniel-skinner/piano/snd/snd.go#L23

Sadly, I didn't have time to put everything in a single package to make it more portable for the contest.

I believe the change affects these lines: https://github.com/golangchallenge/GCSolutions/blob/master/oct15/normal/daniel-skinner/piano/snd/al/al.go#L42 https://github.com/golangchallenge/GCSolutions/blob/master/oct15/normal/daniel-skinner/piano/snd/al/al.go#L94 https://github.com/golangchallenge/GCSolutions/blob/master/oct15/normal/daniel-skinner/piano/snd/al/al.go#L206

I've been meaning to fix this since i noticed the change go in some days back over where I'll be continuing the project: https://github.com/dskinner/snd