Open bbannier opened 2 years ago
Good catch, yep! This is a simple logic bug in zkg
's setup. Fix forthcoming.
This does not just affect ZKG_DEFAULT_TEMPLATE
... a related problem applies to ZKG_DEFAULT_SOURCE
: it just gets ignored:
$ export ZKG_DEFAULT_SOURCE=nonsense
$ zkg refresh
Refresh package source: zeek
No membership changes
Refresh installed packages
No new outdated packages
So here it doesn't even matter whether you explicitly provide a config. I'm not sure when this happened, but these are clearly holes in the testsuite. I'll take a look.
One should be able to override a configured
templates
by settingZKG_DEFAULT_TEMPLATE
. This seems not to work when also using--configfile
.Reproducer in
zeekurity/zeek:5.0.2
image:create a config file
when not using
--configfile
the value ofZKG_DEFAULT_TEMPLATE
is successfully picked up; demonstrated here by passing a path to a non-existing templatewhen using
--configfile
the value ofZKG_DEFAULT_TEMPLATE
is not picked up; execution continues with default configured template