Native Version Go Scripting for Prepare API

To ensure all version files in the repository is consistent with Monteur's app metadata, Monteur provides a recipe to script the Go version source code so that user only has to change version number at one location. This recipe allows Monteur to script version source code in a highly customizable manner easily and seamlessly.

The objective of distributing the recipe is simple: to script version into Go source code so that they are aligned with Monteur’s app metadata’s Version field, allowing user to only update Version via Monteur’s app metadata painlessly, in a consistent manner with minimal to no further instructions.

All recipes are arranged based on its own semantic versioning and is not directly related to Monteur’s actual release version. Hence, feel free to explore each versions to suit your CI needs.

Recipe Versions

Here are the available Prepare API recipe for natively scripting version into Go source code. Please read through your selected version’s details on what has changed, what is required, and how to customize and used them.

The arrangement are the latest at the top or first.

Version 1.0.0

Version 1.0.0 version Go scripting Prepare API is available for download here: version-go-v1p0p0.toml

Min Requirements Values
Monteur Version v0.0.2
Supported Platforms native to Monteur

Installation Instructions

  1. You should download and place the recipe into your <config>/prepare/jobs/ directory with the name version-go.toml.
  2. Once done, edit the configuration file for:
    1. CodeFilepath - the filepath of the version source codes.
    2. License - the license notice inside a Go Source Code (without contact).
    3. EditFilepath - the location to edit version data if you altered the pathing.

For detailed information about each fields, visit: Prepare Specification Data Structure for more info.


  1. Backward Compatible - Created the base TOML configuration recipe.
  2. Backward Compatible - Integrated with GitLab CI.
  3. Backward Compatible - Defaults to Apache-2.0 license.


That’s all for Monteur operating directory Go app version source code scripting with its native functions. If you found a bug or have any questions about the recipe, please feel free to raise your question at our Issue Section.