ort
ort copied to clipboard
Bazel: Support `archive_override`
The user can specify that a dependency should come from an archive file (zip, gzip, etc) at a certain location, instead of from a registry. See https://bazel.build/rules/lib/globals/module#archive_override.
Example in MODULE.bazel
:
archive_override(
module_name = "rules_cuda",
integrity = "sha256-3B9PcEylbj1e3Zc/mKRfBIfQ8oxonQpXuiNhEhSLGDM=",
patches = ["//tools/bazelbuild/patches:nvcc.bzl.patch"],
strip_prefix = "rules_cuda-v0.1.2",
urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.1.2/rules_cuda-v0.1.2.tar.gz"],
)
ORT should support this alternate locations for downloading the source code.
@haikoschol FYI