Hi,

I'm afraid you've stumbled across a known wart in our dev process, see https://github.com/mozilla-services/heka/issues/393. We've known about this issue for a while (I opened that bug 4 months ago) but we've been working more on the core than on externals so we haven't tackled it yet. You're not the only one to ask about this in recent days, however (see https://github.com/mozilla-services/heka/issues/582) so clearly it's time to push it closer to the top of the priority list.

The workflow you described works but, as you've discovered, it's painfully slow. Another approach would be to run the build, then cd down into the source that's inside the build directory (e.g. `cd build/heka/src/github.com/mozilla-services/heka-mozsvc-plugins`) and explicitly check out, edit, commit, and push the code from there. You can still run `make` over the top of your changes, as long as the directory is still in place the build won't overwrite it. The big drawback is that you have to take care to not run `make clean` nor remove the `build` folder before you've copied or pushed your changes or you'll lose your work. Still, if you're careful, I find this to be a better solution than pushing and rebuilding from scratch for every single minor edit.

And we'll work on getting #393 resolved over the next weeks so you don't have to resort to such a workaround. :)

-r


On Tue 17 Dec 2013 03:00:02 AM PST, briche arnaud wrote:
Hi,

I'm trying to write a Kafka output plugin for Hekad, and I wonder if I
have the right workflow. Currently, I created a git repository for my
plugin, and added a line in plugin_loader.cmake.

The thing is, each time a make a modification to my plugin, I need to
commit, push, remove the build directory of the Heka tree, and source
build.sh. This is really slow workflow.

Am I doing something wrong, or is this the prescribe workflow for
golang plugin development ?

--
-- Arnaud Briche
   Développeur web / Préstataire de service informatique


_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to