Using flatbuffer rules from baselibs#173
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
70c9b2a to
8fb86d5
Compare
8097b6e to
0c1f669
Compare
| srcs = [ | ||
| "launch_manager.schema.json", | ||
| ], | ||
| visibility = ["//visibility:public"], |
There was a problem hiding this comment.
Do we need both filegroup with public visibility and export_files?
| @@ -0,0 +1,90 @@ | |||
| namespace LMFlatBuffer; | |||
There was a problem hiding this comment.
Is this file only moved? It appears as new file and no other file removed.
| **kwargs | ||
| ) | ||
|
|
||
| native.filegroup( |
There was a problem hiding this comment.
This now requires the user to know exactly the generated files which was not required before.
Snippet from the reference integration, to make the changes work:
launch_manager_config(
name = "lifecycle_configs",
config = "//showcases/simple_lifecycle/configs:launch_manager_config.json",
)
score_pkg_bundle(
name = "simple_lifecycle",
bins = [
"@score_lifecycle_health//score/launch_manager:launch_manager",
"@score_lifecycle_health//examples/cpp_supervised_app",
"@score_lifecycle_health//examples/rust_supervised_app",
"@score_lifecycle_health//examples/control_application:control_daemon",
":lifecycle_signal.sh",
],
config_data = [
"//showcases/simple_lifecycle:simple_lifecycle.score.json",
],
custom_layout = {
# Old
#":lifecycle_configs": "etc/",
# New
":lifecycle_configs_lm_bin": "etc/lm_demo.bin",
":lifecycle_configs_hm_bin": "etc/hm_demo.bin",
":lifecycle_configs_hmcore_bin": "etc/hmcore.bin",
},
)I wonder if we can avoid this, as the config files and number of config files are undergoing changes and this would break the user every time.
There was a problem hiding this comment.
Not sure what you mean, previously the bazel rule returned the file group pointing to the etc directory with all the configs. The change makes it so that the bazel macro returns the file group with all the generated files so for the end use the only difference is that we don't hard code the etc directory for them. You can see what needs to be adapted in the integration tests.
I guess we can probably group them again with the etc dir if we don't want to break backwards compat?
There was a problem hiding this comment.
oh wait I read the definition of that macro and I see what you mean. I'll change it so that it bundles as I guess in the end we will have one config file
Fixes #154