-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for env_inherit #942
base: master
Are you sure you want to change the base?
Conversation
@@ -303,7 +303,7 @@ def kt_jvm_junit_test_impl(ctx): | |||
direct = ctx.files._java_runtime, | |||
), | |||
# adds common test variables, including TEST_WORKSPACE. | |||
testing.TestEnvironment(environment = ctx.attr.env), | |||
testing.TestEnvironment(environment = ctx.attr.env, inherited_environment = ctx.attr.env_inherit), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inherited_environment
wasn't added until Bazel 5.2.0 and will likely cause issues for anyone using Bazel 5.0.0 to 5.1.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually thinking about this more - this should be safe to merge as people should be using the latest LTS release anyways or have a clear upgrade path by doing a minor 5.x
version bump. What do you think @restingbull @nkoroste?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little bit on: 7 was just pushed, supporting for is reaching.
Folks who need to keep Bazel at for are most likely not updating rules_kotlin
Commits (oldest to newest)
6302065 Add support for env_inherit