Files
codeql/misc/bazel/source_dir.bzl.tpl
2022-04-12 12:40:59 +02:00

12 lines
382 B
Smarty

def root_source_dir():
""" get absolute path to the root source directory
This can break hermeticity if used in a build step"""
return '{root}'
def current_source_dir():
""" get absolute path to the source directory of this bazel package
This can break hermeticity if used in a build step"""
return root_source_dir() + '/' + native.package_name()