I faced a problem on building Go project with Bazel and found that the root cause of it was the order of load to import @io_bazel_rules_go.
After receiving the answer, I referred to Bazel's official docs if it is defined in the spec or just implicit dependency to the implementation. I couldn't have checked all official documentations yet, but it sounds the following docs are relevant to this question and still it's vague how the order of load affects builds; in the case I experieced, it seems the earlier declaration wins over the later.
- https://docs.bazel.build/versions/2.2.0/build-ref.html#load
- https://docs.bazel.build/versions/2.2.0/external.html#shadowing-dependencies
Can anyone clarify if this is spec or not?