File tree Expand file tree Collapse file tree
src/python/pants/backend/docker/goals Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3107,13 +3107,18 @@ def check_build_process(result: DockerImageBuildProcess):
31073107def test_global_build_no_cache_options_exits (
31083108 rule_runner : RuleRunner ,
31093109) -> None :
3110+ rule_runner .set_options (
3111+ [],
3112+ env = {
3113+ "PANTS_DOCKER_BUILD_EXTRA_OPTIONS" : '["--no-cache"]' ,
3114+ },
3115+ )
31103116 rule_runner .write_files (
31113117 {
31123118 "docker/test/BUILD" : dedent (
31133119 """\
31143120 docker_image(
31153121 name="img1",
3116- no_cache=True,
31173122 )
31183123 """
31193124 ),
@@ -3139,8 +3144,7 @@ def test_global_build_no_cache_options_overridden_by_target_extra_options(
31393144 """\
31403145 docker_image(
31413146 name="img1",
3142- no_cache=False,
3143- extra_build_options=["--no_cache"],
3147+ extra_build_options=["--no-cache"],
31443148 )
31453149 """
31463150 ),
You can’t perform that action at this time.
0 commit comments