dart-lang / pub

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

Validator for publishing rate #4392

Open jonasfj opened 2 months ago

jonasfj commented 2 months 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 2 months ago

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

sigurdm commented 2 months ago

We should probably make this a warning only...

jonasfj commented 1 month ago

We should probably make this a warning only...

I'd be down for having two rate-limits:

Credits to istvans proposed rates in https://github.com/dart-lang/pub-dev/pull/8063