-
Notifications
You must be signed in to change notification settings - Fork 229
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 being able to ignore some pub publish --dry-run warnings #3807
Comments
Related to #2535 . |
@sigurdm just a concern i'm currently having... is it expected to treat common |
@devoncarew we now have Do we still need being able to ignore specific validations? |
Hmm, I opened this issue mostly in the context of
Which things pub publish reports about are infos? |
We used to have the validation run But we ended up undoing that. (The thinking now being that pub by default should follow the default of the analyzer, and not take any further opinion.) Besides that
I think we want to go towards a world where more of the validations are handled by the analyzer. That provides faster feedback, and leverages mechanics like |
I highly support this demand , right now we are using some tight constrains in versions of deps since all our packages are internal built . It will be so good if we can ignore some warnings , its giving me a failure in pipeline because of warnings :( |
Bumping. We have a project that is blocked by #3789 . Having something like this would allow us to ignore the |
As we roll out more automation around publishing packages we've hit a few hiccups wrt automated package validation. Specifically, we generally run
dart pub publish --dry-run
as part of PR validation, and fail the PR if the dry run reports any issues.Problems arise when the validation failures are intentional; for instance, a tight constraint on another package, or, publishing using a pre-release SDK. We still want to do general publishing validation - we'd like to run most of the consistently checks. But we'd like to ignore specific ones (a blanket 'ignore-all-issues' - or not running the validation at all - could hide problems we would want to know about).
A potential option here is to support 'ignore' comment syntax in pubspec files. So something like:
Additional context:
And some sample validation failures:
The text was updated successfully, but these errors were encountered: