diff options
author | László Csomor <laszlocsomor@users.noreply.github.com> | 2019-03-04 11:04:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 11:04:01 +0100 |
commit | 1b28145983091cbe8639d2816fb03ccb3950bbc9 (patch) | |
tree | 69d7c0a5dfbf5a95a83f922235bcec6f78b6b65b /tests | |
parent | 9630853eebaee22d8799f97ab58f648a1b82d02d (diff) | |
download | bazel-skylib-1b28145983091cbe8639d2816fb03ccb3950bbc9.tar.gz |
maprule: use ctx.resolve_tools (#117)
In this PR:
- In the _resolve_locations function: use the
Bash-less ctx.resolve_tools function to resolve
the runfiles manifests and inputs of tools,
instead of using ctx.resolve_command for
the same purpose.
- In the _custom_envmap function: no longer
resolve $(location) references when
creating the envvars from custom_env, because
those references were already resolved in
_resolve_locations.
The ctx.resolve_tools() method was added in this
PR: https://github.com/bazelbuild/bazel/pull/7139
See design doc there.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/maprule_tests.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/maprule_tests.bzl b/tests/maprule_tests.bzl index 5261d9a..ddb4418 100644 --- a/tests/maprule_tests.bzl +++ b/tests/maprule_tests.bzl @@ -283,7 +283,7 @@ def _custom_envmap_test(ctx): "out1": _mock_file(ctx, language + "/Foo/Out1"), "out2": _mock_file(ctx, language + "/Foo/Out2"), }, - add_env = {"ENV1": "Env1"}, + resolved_add_env = {"ENV1": "Env1"}, ) _assert_dict_keys( env, |