This makes changes to test.bzl to remove the default internal_test_deps being added to all snapshot tests. This is causing duplicate symbol issues in Bazel 7 as framework search path logic has changed. In Bazel 7, the snapshot test target can't depend on the runfiles lib without introducing duplicate symbols at link time, this is because the BazelRunfiles target it depends on already links the runefiles lib. This updates the rule / usage of it to pass this dependency explicitly so it can be removed in the bazel 7 branch but maintained here for others who need it.
Changes:
Dont set interal_test_deps to have a default value for snapshot tests
Explicitly set each key word argument in each test factory, this stops issues like this from coming up again in the future
This makes changes to
test.bzl
to remove the defaultinternal_test_deps
being added to all snapshot tests. This is causing duplicate symbol issues in Bazel 7 as framework search path logic has changed. In Bazel 7, the snapshot test target can't depend on the runfiles lib without introducing duplicate symbols at link time, this is because theBazelRunfiles
target it depends on already links the runefiles lib. This updates the rule / usage of it to pass this dependency explicitly so it can be removed in the bazel 7 branch but maintained here for others who need it.Changes:
interal_test_deps
to have a default value for snapshot tests