serpent-os / moss

The safe, fast and sane package manager for Linux
https://serpentos.com
71 stars 9 forks source link

boulder: Add `bump` subcommand that parses the current manifest buildrelease and bumps it by one #208

Closed ermo closed 2 months ago

ermo commented 2 months ago

Motivation:

Sometimes, it's nice to be able to bump a recipe for a rebuild. However, if that recipe is unchanged, it makes more sense for this behaviour to be done by the (already existing) boulder build -b<existing buildrelease>+1 functionality.

Benefit:

This saves us a heap of YAML-related trouble in figuring out a way to keep "nice" formatting, because this is a purely read-only operation that just reads the existing manifest for the existing buildrelease and then adds one to that.

This in turns makes it simple to automate rebuilds and commit them via a convenient and repeatable autobuild-driven script solution.

ermo commented 2 months ago

Probably better left to some more infra-y logic -- either via crate/function or via just as a user-facing action.