bazel-contrib / target-determinator

Determines which Bazel targets were affected between two git commits.
Apache License 2.0
144 stars 22 forks source link

Flags: discourage the use of absolute in-repo paths for bazel options #75

Closed sitaktif closed 1 year ago

sitaktif commented 1 year ago

Document that the user should use the relative form for paths passed to bazel options via --bazel-opts and --bazel-startup-opts.

Target-determinator may query target information in git worktrees, which live in different directories. When this is the case, passing an absolute path in a bazel option, like --bazel-startup-opts=--bazelrc=/my/repo.git/mybazelrc, results in unexpected behaviors if the mybazelrc changed between the "before" and "after" commit.