# bro-pkg 1.0 available

**URL:** <https://community.zeek.org/t/bro-pkg-1-0-available/4618>\
**Category:** Development\
**Tags:** development\
**Created:** [January 25, 2017, 2:23am UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618 "2017-01-25T02:23:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siwek\_Jon](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Siwek\_Jon](https://community.zeek.org/u/Siwek_Jon)\
**Post date:** [January 25, 2017, 2:23am UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618/1 "2017-01-25T02:23:57Z")

</div>

bro-pkg 1.0 is now out and supports

\* package unit testing [1]  
\* package dependencies [2]

I have no remaining major features planned, hence the 1.0. Hope it works well for everyone.

- Jon

[1] [http://bro-package-manager.readthedocs.io/en/stable/package.html#test-command](http://bro-package-manager.readthedocs.io/en/stable/package.html#test-command)  
[2] [http://bro-package-manager.readthedocs.io/en/stable/package.html#depends](http://bro-package-manager.readthedocs.io/en/stable/package.html#depends)

---

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [January 25, 2017, 4:29pm UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618/2 "2017-01-25T16:29:18Z")

</div>

Great job, Jon!

One of the next steps now is moving our bro-plugins into packages,  
I'll talk to the maintainers to get that started.

Robin

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [January 27, 2017, 7:10pm UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618/3 "2017-01-27T19:10:46Z")

</div>

Hi Jon,

> bro-pkg 1.0 is now out and supports
> 
> \* package unit testing [1]

thanks for this. Are there any extra steps that one has to do for this to  
work? I tried to activate it for my repository at  
[GitHub - 0xxon/zeek-sumstats-counttable: COUNTTABLE type for Zeek (Bro) sumstats that sums independently for string buckets](https://github.com/0xxon/bro-sumstats-counttable), where the bro-pkg.meta  
specifies

test\_command = cd testing && btest -d

However, bro-pkg (version 1.0) seems to just ignore this:

$ bro-pkg install bro-sumstats-counttable  
The following packages will be INSTALLED:  
&nbsp;&nbsp;bro/0xxon/bro-sumstats-counttable (0.0.2)

&nbsp;&nbsp;Proceed? [Y/n] y  
&nbsp;&nbsp;Running unit tests for "bro/0xxon/bro-sumstats-counttable"  
&nbsp;&nbsp;error: failed to run tests for bro/0xxon/bro-sumstats-counttable:  
&nbsp;&nbsp;Package does not specify a test\_command  
&nbsp;&nbsp;Proceed to install anyway? [Y/n] n

Am I doing something wrong here? Or is there a problem with the way that I  
specify test\_command? (The error message seems to indicate that it is just  
not being identified though).

Johanna

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [January 27, 2017, 7:14pm UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618/4 "2017-01-27T19:14:18Z")

</div>

Ah, and if you remember to specify --version master, things suddenly look  
much better - ignore this 🙂

Johanna

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [January 27, 2017, 7:34pm UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618/5 "2017-01-27T19:34:16Z")

</div>

And - second followup - this time I think I am doing things right this  
time.

On os-x, when trying to install using bro-pkg, I get the following output:

$ bro-pkg install bro-sumstats-counttable --version master  
The following packages will be INSTALLED:  
&nbsp;&nbsp;bro/0xxon/bro-sumstats-counttable (master)

Proceed? [Y/n] y  
Running unit tests for "bro/0xxon/bro-sumstats-counttable"  
Traceback (most recent call last):  
&nbsp;&nbsp;File "/Users/johanna/venv/bin/bro-pkg", line 1635, in \<module\>  
&nbsp;&nbsp;&nbsp;&nbsp;main()  
&nbsp;&nbsp;File "/Users/johanna/venv/bin/bro-pkg", line 1631, in main  
&nbsp;&nbsp;&nbsp;&nbsp;args.run\_cmd(manager, args, config)  
&nbsp;&nbsp;File "/Users/johanna/venv/bin/bro-pkg", line 314, in cmd\_install  
&nbsp;&nbsp;&nbsp;&nbsp;error, passed, test\_dir = manager.test(name, version)  
&nbsp;&nbsp;File "/Users/johanna/venv/lib/python2.7/site-packages/bropkg/manager.py", line 1622, in test  
&nbsp;&nbsp;&nbsp;&nbsp;bropath = os.path.dirname(stage\_script\_dir) + ':' + bropath  
TypeError: coercing to Unicode: need string or buffer, NoneType found

The same happens with your bro-test-package.

Is there anything obvious that I am doing wrong?

Johanna

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [January 27, 2017, 7:47pm UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618/6 "2017-01-27T19:47:03Z")

</div>

And as a followup - this happens because Bro was not in the path.

This really should give a nicer error message though (or abort before even trying to install).

Johanna

---

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://community.zeek.org/u/Jan)\
**Post date:** [January 29, 2017, 10:07pm UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618/7 "2017-01-29T22:07:48Z")

</div>

And another small thing: As build\_command and test\_command may contain  
anything, another warning would be good in case the package metadata  
specifies a command.

Jan

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:44pm UTC](https://community.zeek.org/t/bro-pkg-1-0-available/4618/8 "2022-05-06T15:44:32Z")

</div>


