Adds cwd target from rules_multitool for linters #620
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


When devs use linting tools outside of bazel they get used to the pattern that the linting bin is aware of it's current working dir. However, bazel run isn't designed for this. To circumvent this rules_multitool exposes a target that is cwd aware. Given that rules_aspect_lint exposes the bin it would be helpful to also expose the cwd endpoint; so that devs that use this for linting can also use the exact same setup to run the linter outside aspects. I.e. by invoking the lint using
bazel run //linterbin -- linter flagsI suspect this PR is incomplete, but I wanted to submit it to see if the addition is welcome at all. If yes; I can possible expand this to other targets that use rules_multitool.
Changes are visible to end-users: yes