diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2024-06-24 18:12:44 +0200 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2024-06-25 11:22:48 +0200 |
commit | d1401e45d2bc5033a14366d272971a2973e85762 (patch) | |
tree | 6e20cbd7c3bb07c19e1779f44548a3ea291d8fcb /etc | |
parent | a2521a83bc055e315b2ce0f6cc876a4a5ac80908 (diff) | |
download | rules-rust-d1401e45d2bc5033a14366d272971a2973e85762.tar.gz |
repos.json: split main and testing repositories...
...such that user can just-import-git only the strictly required
repository.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/imports/rules.TARGETS | 2 | ||||
-rw-r--r-- | etc/repos.json | 16 | ||||
-rw-r--r-- | etc/repos.template.json | 16 |
3 files changed, 23 insertions, 11 deletions
diff --git a/etc/imports/rules.TARGETS b/etc/imports/rules.TARGETS index 5b41441..d898f5d 100644 --- a/etc/imports/rules.TARGETS +++ b/etc/imports/rules.TARGETS @@ -1,6 +1,6 @@ { "tree": { "type": "install" - , "dirs": [[["TREE", null, "rules"], "rules"]] + , "dirs": [[["@", "rules-rust", "", "tree"], "rules"]] , "tainted": ["test"] } } diff --git a/etc/repos.json b/etc/repos.json index 936a90b..90e92d4 100644 --- a/etc/repos.json +++ b/etc/repos.json @@ -1,14 +1,20 @@ -{ "main": "rust-rules" +{ "main": "rules-rust" , "repositories": - { "rust-rules": - { "repository": {"type": "file", "path": "."} - , "bindings": {"test-rules": "rules-test", "rules-cc": "rules-cc"} + { "rules-rust": {"repository": {"type": "file", "path": "rules"}} + , "testing": + { "repository": {"type": "file", "path": "test"} + , "bindings": + { "rules-rust": "rules-rust" + , "test-rules": "rules-test" + , "rules-cc": "rules-cc" + } } , "imports": {"repository": {"type": "file", "path": "etc/imports"}} , "test-rules": - { "repository": "rust-rules" + { "repository": "testing" , "target_root": "imports" , "target_file_name": "rules.TARGETS" + , "bindings": {"rules-rust": "rules-rust"} } , "rules-cc": { "repository": diff --git a/etc/repos.template.json b/etc/repos.template.json index 2bf98e9..d6a5e7f 100644 --- a/etc/repos.template.json +++ b/etc/repos.template.json @@ -1,14 +1,20 @@ -{ "main": "rust-rules" +{ "main": "rules-rust" , "repositories": - { "rust-rules": - { "repository": {"type": "file", "path": "."} - , "bindings": {"test-rules": "rules-test", "rules-cc": "rules-cc"} + { "rules-rust": {"repository": {"type": "file", "path": "rules"}} + , "testing": + { "repository": {"type": "file", "path": "test"} + , "bindings": + { "rules-rust": "rules-rust" + , "test-rules": "rules-test" + , "rules-cc": "rules-cc" + } } , "imports": {"repository": {"type": "file", "path": "etc/imports"}} , "test-rules": - { "repository": "rust-rules" + { "repository": "testing" , "target_root": "imports" , "target_file_name": "rules.TARGETS" + , "bindings": {"rules-rust": "rules-rust"} } } } |