Skip to content

Commit

Permalink
fix(Bazel): Recreate the test data for the test with local registry
Browse files Browse the repository at this point in the history
The local registry was empty and was not used by the workspace's module.
Therefore, add a module "test_module" in the local registry and reference
it in the MODULE.bazel.

The source code of the "test_module" could be added to the directory
`modulesSrc` in the future. However, in this case, the source.json file in
the registry should contain:
```
{
  "type": "local_path",
  "path": "test_module/" <- modulesSrc/test_module
}
```
that ORT does not support yet.

While at it, regenerate the lock file: The previous lock file was created
by hand and was containing both `cmdRegistries` and `registryFileHashes`
which is impossible. The new lock file has been regenerated with Bazel
7.0.1.

Signed-off-by: Nicolas Nobelis <[email protected]>
  • Loading branch information
nnobelis committed Jul 24, 2024
1 parent 21d2115 commit b33b19a
Show file tree
Hide file tree
Showing 6 changed files with 1,209 additions and 1,333 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bazel_dep(name = "test_module", version = "0.0.1")
bazel_dep(name = "glog", version = "0.5.0", repo_name = "com_github_google_glog")

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"module_base_path": "../modules/"
"module_base_path": "../modulesSrc/"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module(
name = "test_module",
version = "0.0.1",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"integrity": "sha256-VixL51B9xvtJl+zWSL+TXYTv4XtUcV+lz73awFJ59mg=",
"url": "https://example.com/test_module-0.0.1.zip"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"homepage": "",
"maintainers": [],
"repository": [],
"versions": [
"0.0.1"
],
"yanked_versions": {}
}

0 comments on commit b33b19a

Please sign in to comment.