Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
meson.build: Bump boulder version to 1.0.2
Browse files Browse the repository at this point in the history
Add documentation in README for this (because I'll 100% forget >_>) and
ensure that the build itself will spit out a compile-time message with
the parsed version + git ref info for completeness.

As a reminder, boulder 1.0.2 supports the new %cargo_* macro actions.

Signed-off-by: Rune Morling <ermo@serpentos.com>
  • Loading branch information
ermo committed Feb 20, 2024
1 parent f5ec7c9 commit 1907b42
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and development headers, including (in fedora package names format):
- `libzstd` and `libzstd-devel`
- `xxhash-libs` and `xxhash-devel`
- `moss` (build prior to building `boulder`)
- `moss-container` (build after `moss` and prior to boulding `boulder`)

### Cloning

Expand All @@ -27,3 +28,18 @@ Remember to add the `--recurse-submodule` argument (for serpent-style commit hoo
### Running

sudo boulder build stone.yml

### Bumping the version showed in `boulder version`

Edit the `meson.build` project `version` property:

project(
'boulder',
['d'],
version: '1.0.1', # <- this
license: [
'Zlib',
]
)

This will in turn get picked up by `source/boulder/environment.d`
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'boulder',
['d'],
version: '1.0.1',
version: '1.0.2',
license: [
'Zlib',
]
Expand Down
2 changes: 2 additions & 0 deletions source/boulder/environment.d
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ string fullVersion()
{
immutable git = GIT_HASH == "" ? "" : format!" (%s)"(GIT_HASH);

pragma(msg, format!"--\n-- found (VERSION, GIT_HASH): (%s, %s)\n--"(VERSION, GIT_HASH));

return format!"%s%s"(VERSION, git);
}

Expand Down

0 comments on commit 1907b42

Please sign in to comment.