bazel-diff icon indicating copy to clipboard operation
bazel-diff copied to clipboard

Provide the final shell script as part of distribution

Open alexeagle opened this issue 4 years ago • 1 comments

Right now users copy-paste the bazel-diff-example.sh to stitch together the bazel-diff commands. This means users end up modifying and having diverging copies, not able to upstream their improvements to share with other users.

Ideally some "shrink-wrapped" distribution would include the top-level entry point (maybe still using Bash).

alexeagle avatar Dec 14 '20 15:12 alexeagle

This means users end up modifying and having diverging copies, not able to upstream their improvements to share with other users.

I agree that ideally we could share one shell script to rule them all, the blocker here is that I do not know the exact steps required to build any Bazel project. For example, if we have revision A and revision B there may be a core tooling change that happens in B, that may require the developer to run some kind of setup script before we can run bazel-diff on revision B (think installing some command line tool).

I worry that if we prescribe one approach then users who have some tooling that is not fully specified by Bazel will be left behind

tinder-maxwellelliott avatar Dec 14 '20 18:12 tinder-maxwellelliott