-
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
pub publish -n
is treating common infos as fatal
#3870
Comments
You still only end up with a warning from You can also add I think it makes sense that |
@sigurdm Wasn't it an option to expose the |
Where would you expose it? |
As a flag to the
Just like I can't see a clear reason why "blocking" a package to be published just because some internal code isn't formatted according to some lint rules. |
That would become a configuration nightmare. I would rather just drop
We are not blocking, the package from being published, merely giving a warning. There are ways of configuring the analyzer, either through ignore lines or [ |
I've got your point and agree that a clean Not sure if we've searched on the right places, but we took a look on dart and flutter's release notes. And thanks for the quick replies and explanations! |
I can empathize with that. Sorry for breaking your flow. This has been announced on the sdk changelog: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#pub-1 (12th bullet-point). But it was not highlighted as a breaking change. I don't think we usually think of new publish-validations as breaking changes, but maybe we really should. @jonasfj do you have an opinion here? Using |
Understood! But yeah, in case of possible breaking changes for publish-validation flows I think it would be really time-saving for many people to have the changes pointed out as breaking changes so it's easier to figure out why things broke when the Currently we are already working on fixing the |
We have agreed to remove the |
hello!
i have a concern regarding validating publishes. when using
flutter pub publish -n
the command runs an analyzer that has the--fatal-infos
flag.for scenarios where i have many infos that could not be treated at the moment (such as deprecation infos) i would end up stuck, because my validation fails. for infos, warnings and errors, the command returns an exit code
65
.is this expected? shouldn't there be a way to enable infos to be accepted? or to at least return a different type of response if there is different types of errors?
thanks!
The text was updated successfully, but these errors were encountered: