Documentation Index
Fetch the complete documentation index at: https://mintlify.com/chainguard-dev/melange/llms.txt
Use this file to discover all available pages before exploring further.
melange bump automates the mechanical parts of updating a melange YAML file to a new upstream release. Given a config file and a target version string, it rewrites the package.version field, resets package.epoch to 0, and can optionally update the expected-commit field of a git-checkout pipeline step. It is designed to be called by automated tooling such as Renovate or custom release scripts, so the updated file can go straight into a pull request without manual editing.
Usage
Examples
What bump changes
melange bump modifies the following fields in the YAML file:
package.version— set to the new version string you providepackage.epoch— reset to0(a version bump implies a fresh build epoch)expected-commitin agit-checkoutpipeline step — updated only when--expected-commitis passed
Before and after example
Before (crane.yaml):
melange bump crane.yaml 0.20.0 --expected-commit 9f23e1d4a8b7c0512f6e83d1a9b4f72c3e8d1059:
Flags
| Flag | Default | Description |
|---|---|---|
--expected-commit | (empty) | Update the expected-commit field in a git-checkout pipeline step to this commit hash |
Inherited
| Flag | Default | Description |
|---|---|---|
--log-level | INFO | Log verbosity: debug, info, warn, or error |
melange bump resets epoch to 0 unconditionally. If you need to preserve a non-zero epoch (for example, when publishing a patch to the melange config without changing the upstream version), edit the epoch field manually after running bump.