Most development happens on the develop
branch, which is occasionally rebased + merged into master
when it's not incredibly broken. When this happens, the develop
branch is usually pruned until I feel like making 'unsafe' changes again.
I may also name the branch develop+feature
if I'm developing multiple, or particularly unstable, features.
The intent is to keep master
relatively stable.
The vendor/
directory holds our dependencies. When we import new repos, we need to update this folder to contain these new deps. This is something that I'll mostly be handling.
To update this folder:
- Install https://github.com/golang/dep
cd
to GoshuBNC folderdep ensure -update
cd vendor
- Commit the changes with the message
"Updated packages"
git push origin master
cd ..
- Commit the result with the message
"vendor: Updated submodules"
- Push the commit to the repo.
This will make sure things stay nice and up-to-date for users.
To debug a hang, the best thing to do is to get a stack trace. Go's nice, and you can do so by running this:
$ kill -ABRT <procid>
This will kill GoshuBNC and print out a stack trace for you to take a look at.