Merge remote-tracking branch 'origin/topic/awelzel/find-in-zeekpath'

* origin/topic/awelzel/find-in-zeekpath:
  NEWS: Mention can_load() and find_in_zeekpath()
  utils: Introduce packages.zeek with can_load() helper
  zeek.bif: Add find_in_zeekpath() helper
This commit is contained in:
Arne Welzel 2024-02-26 21:14:59 +01:00
commit 77d57fccfd
12 changed files with 171 additions and 0 deletions

9
NEWS
View file

@ -18,6 +18,15 @@ New Functionality
delete v;
assert |v| == 0;
- A new helper function ``can_load()`` backed by a new bif ``find_in_zeekpath()``
was added to determine if a non-relative ``@load`` directive might work. This
can be used to guard ``@load`` directives when script packages may or may not
be installed.
@if ( can_load("my-package") )
@load my-package
@endif
Changed Functionality
---------------------