Closed jelder closed 9 years ago
Hello –
From the guide:
$ godep save
This will save a list of dependencies to the file Godeps/Godeps.json and copy their source code into Godeps/_workspace.
Looking at the repo you shared, I don't see the source code copied into Godeps/_workspace
:
That's why they build is failing, because it can't find the source there. It should have the source of your projects copied (see here in heroku/busl as an example).
Can you try godep save
again, maybe after making sure you're installed Godep is up to date? (go get -u github.com/tools/godep
)
@catsby Thanks for looking. I installed Go for the first time today, but ran go get -u github.com/tools/godep
anyway just to be safe.
godep save
leaves my repo clean. Locally, Godeps/_workspace
has the source for all my dependencies. I must have had a .gitignore
entry somewhere preventing src/
from getting added, but add -Af
fixed it.
Awesome, glad you got things sorted. Happy hacking :rocket:
Does this mean Godeps/_workspace
has to be checked into the repo to use this buildpack? Is this a go idiosyncrasy? I have never checked in the actual dependencies into VCS in other languages, and other buildpacks will pull down your gems/jars/etc down at build time.
Am I misunderstanding something?
Yes, vendoring your dependencies by copying them into your code using a tool or by hand is the Go way.
Followed the guide, getting
cannot find package
for all of my Github-hosted dependencies. Pretty new to Go, so not sure if this is my fault or an actual bug.My Godeps/Godeps.json:
App repo: https://github.com/jelder/beacon/