-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Bazel): Recreate the test data for the test with local registry
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
Showing
6 changed files
with
1,209 additions
and
1,333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
2,521 changes: 1,189 additions & 1,332 deletions
2,521
...nagers/bazel/src/funTest/assets/projects/synthetic/bazel-local-registry/MODULE.bazel.lock
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...l/src/funTest/assets/projects/synthetic/bazel-local-registry/registry/bazel_registry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"module_base_path": "../modules/" | ||
"module_base_path": "../modulesSrc/" | ||
} |
4 changes: 4 additions & 0 deletions
4
...s/projects/synthetic/bazel-local-registry/registry/modules/test_module/0.0.1/MODULE.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module( | ||
name = "test_module", | ||
version = "0.0.1", | ||
) |
4 changes: 4 additions & 0 deletions
4
...ts/projects/synthetic/bazel-local-registry/registry/modules/test_module/0.0.1/source.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
9 changes: 9 additions & 0 deletions
9
...assets/projects/synthetic/bazel-local-registry/registry/modules/test_module/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"homepage": "", | ||
"maintainers": [], | ||
"repository": [], | ||
"versions": [ | ||
"0.0.1" | ||
], | ||
"yanked_versions": {} | ||
} |