dart-lang / pub

The pub command line tool
https://dart.dev/tools/pub/cmd
BSD 3-Clause "New" or "Revised" License
1.04k stars 226 forks source link

Validator for publishing rate #4392

Open jonasfj opened 6 days ago

jonasfj commented 6 days ago

Proposal:

If you've published more than 5 versions over the past 30 days, then publishing validations throw an error.

This can be ignored with --skio-validation.

We can fetch versions from the API, which has a published date-time.

It's a simple way to limit publishing without making a hard limit. Also we can put in a message pointing to dart.dev/go/publishing-frequency. Then we can document guidelines for publishing rate, and document out limits.

sigurdm commented 14 hours ago

Let's start by writing dart.dev/go/publishing-frequency. It will add value on its own

sigurdm commented 14 hours ago

We should probably make this a warning only...