implementation function when you create a module extension.
Members
- download
- download_and_extract
- execute
- extension_metadata
- extract
- file
- getenv
- is_dev_dependency
- modules
- os
- path
- read
- report_progress
- root_module_has_non_dev_dependency
- watch
- which
download
success, a flag which is true if the download completed successfully, and if successful, a hash of the file with the fields sha256 and integrity. When sha256 or integrity is user specified, setting an explicit canonical_id is highly recommended. e.g. get_default_canonical_id
Parameters
download_and_extract
success, a flag which is true if the download completed successfully, and if successful, a hash of the file with the fields sha256 and integrity. When sha256 or integrity is user specified, setting an explicit canonical_id is highly recommended. e.g. get_default_canonical_id
Parameters
execute
timeout (in seconds, default 600 seconds). This method returns an exec_result structure containing the output of the command. The environment map can be used to override some environment variables to be passed to the process.
Parameters
extension_metadata
Parameters
extract
Parameters
file
Parameters
getenv
name as a string if exists, or default if it doesn’t.
When building incrementally, any change to the value of the variable named by name will cause this repository to be re-fetched.
Parameters
May return
None.
is_dev_dependency
devDependency = True.
Parameters
modules
os
path
Parameters
read
Parameters
report_progress
Parameters
root_module_has_non_dev_dependency
watch
path.readdir() instead.
Note that attempting to watch paths inside the repo currently being fetched, or inside the working directory of the current module extension, will result in an error. A module extension attempting to watch a path outside the current Bazel workspace will also result in an error.
Parameters
which
path of the corresponding program or None if there is no such program in the path.
Parameters
May return
None.