Introduced by #1929. See https://github.com/bazelbuild/bazel/pull/22718 Created #1953 to fix this and this ticket should be closed once we have tests for this behaviour.