You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
First, thank you KCL developers for creating this rules_kcl repo!
We have encountered several issues while using the rules_kcl repository in our environment, specifically when attempting to execute example commands. These issues need to be addressed to improve the integration between Bazel and KCL, particularly concerning environment variable management, package handling, and support for kcl mod add.
Issues Identified
1. Example Command Inaccuracy
The example command provided in the repository does not work as intended.
The actual working command requires specifying environment variables:
bazel run //:hello.yaml.update --action_env=KCL_PKG_PATH=~/.kcl/kpm/.kpm/,KCL_CACHE_PATH=/tmp/kclcache/ --sandbox_debug --verbose_failures
In general, we use Bazel without specifying action_env. It would be great if the command don't require specifying them.
Request:
Integrate a mechanism within Bazel to manage these environment variables automatically.
2. Lack of Support for kcl mod add
This is already in the roadmap, and we will benefit from them significantly.
3. Execute kcl_run in parallel
I am not an expert here, but it is not clear if kcl_run could run in parallel on one machine.
If KCL_PKG_PATH are the same across multiple running kcl processes, they don't run in parallel because of package_cache file in KCL_PKG_PATH
One benefit of Bazel is executing targets in parallel.
Request:
Make it clear if the kcl_run could be executed in parallel.
Thank you very much! This will benefit us significantly.
The text was updated successfully, but these errors were encountered:
Feature Request
Summary:
First, thank you KCL developers for creating this
rules_kcl
repo!We have encountered several issues while using the
rules_kcl
repository in our environment, specifically when attempting to execute example commands. These issues need to be addressed to improve the integration between Bazel and KCL, particularly concerning environment variable management, package handling, and support forkcl mod add
.Issues Identified
1. Example Command Inaccuracy
bazel run //:hello.yaml.update --action_env=KCL_PKG_PATH=~/.kcl/kpm/.kpm/,KCL_CACHE_PATH=/tmp/kclcache/ --sandbox_debug --verbose_failures
action_env
. It would be great if the command don't require specifying them.Request:
2. Lack of Support for
kcl mod add
3. Execute
kcl_run
in parallelkcl_run
could run in parallel on one machine.KCL_PKG_PATH
are the same across multiple runningkcl
processes, they don't run in parallel because ofpackage_cache
file inKCL_PKG_PATH
Request:
kcl_run
could be executed in parallel.Thank you very much! This will benefit us significantly.
The text was updated successfully, but these errors were encountered: