Skip to content
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

Support pending targets in linting #25

Merged
merged 2 commits into from
Jan 8, 2021
Merged

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Jan 7, 2021

A target is said to be pending if its BUILD file has a sibling named
PENDING. When linting, pending targets that have conflicting
dependencies will report a warning instead of an error. Linting will
succeed if only pending targets report dependency conflicts.

The YAML report format is changed to:

"//my/target:name" {"failure": <true or false>, "conflicts": {"org:name": ["1.0", "2.0"], ...}}

The failure field is always false for pending targets.

A target is said to be pending if its BUILD file has a sibling named
`PENDING`. When linting, pending targets that have conflicting
dependencies will report a warning instead of an error. Linting will
succeed if only pending targets report dependency conflicts.

The YAML report format is changed to:

```
"//my/target:name" {"failure": <true or false>, "conflicts": {"org:name": ["1.0", "2.0"], ...}}
```

The `failure` field is always false for pending targets.
@Duhemm Duhemm requested a review from eed3si9n January 7, 2021 16:02
@Duhemm Duhemm merged commit 598e7fb into twitter:main Jan 8, 2021
@Duhemm Duhemm deleted the linting-pending branch January 8, 2021 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants