modrinth / minotaur

Gradle plugin for deploying build artifacts to Modrinth.
GNU Lesser General Public License v2.1
84 stars 15 forks source link

Reject duplicate versions by default #31

Open dexman545 opened 2 years ago

dexman545 commented 2 years ago

Is your feature request related to a problem? Please describe.
Previously, when using automated uploads Modrinth would reject identical versions. This is no longer the case, causing automated uploads relying on this feature to upload multiple of the same version.

Describe the solution you'd like
Fail or skip the upload task when the version is already present on Modrinth

Describe alternatives you've considered
This is fairly easy to work around with Outlet, as it already has a way to query Modrinth for an existing version for a given set of loaders/mc versions, making skipping the task an onlyIf call.

Additional context
Add any other context or screenshots about the feature request here.

Deftu commented 2 years ago

Identical version numbers are intended. I guess an API input disabling them could be implemented? But aside from that the current functionality is how things should stay imo.

Siphalor commented 1 year ago

I'd suggest rejecting by default, but allowing behavior through a config option, either: