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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for source roots in V2
./pants test
#7696Add support for source roots in V2
./pants test
#7696Changes from 20 commits
3cff08f
d6e8514
2c6fc06
1cf60b4
7225ad8
5c09f7f
dbeb559
2172cbc
300e7f1
f25c5b9
2b1816f
ce34286
6a5e9cd
c86e6ca
f22ea0f
6de654a
9459047
21c638b
a60cb54
cc92bac
dba4a57
f8a7d71
cebcb32
3c1462f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would really, really like this to be taken out either into its own v2 rule with e.g. a
@rule(FallibleExecuteProcessResult, [LocalPATHExecuteProcessRequest])
which wraps a normalExecuteProcessRequest
, does some transformation (settingenv={"PATH": os.environ["PATH"]}
), then does ayield Get(FallIbleExecuteProcessResult, ExecuteProcessRequest, modified_exe_request)
. I would like this to be done in this PR if possible, as I would prefer to avoid having references to the local PATH start sprouting unchecked (and I would love to be able to modify just a single@rule
in order to modify the behavior of all rules which use anything from the host PATH!).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to do this in a followup, but request not blocking on this here. 3 V2 Pytest PRs are blocked by this one landing, which block any progress on the remoting project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally prefer keeping parentheses joined here instead of spreading them over a new line, but I think the style is inconsistent all over the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair. For now, this is using the file convention which I'm going to stick with.
This is precisely why I want to add Black to our codebase - either style works just fine, but the issue is that this statement is unfortunately true :/