Skip to content

Commit 8f9b667

Browse files
New version module info & Release 0.16.0 (#426)
* api: set version in code Before this patch, it was assumed that version would be set automatically with CI. Yet, current approach don't work. This patch replaces this approach with simple manual solution. The rules are as follows: - bump version to X.Y.Z in release commit, - bump version to X.Y.Z-scm in the following commit. luarocks.core.vers comparison treats scm version as we expect them to: - X.Y.Z-scm > X.Y.Z - X.Y.Z+1 > X.Y.Z-scm - X.Y+1.0 > X.Y.Z-scm - X+1.0.0 > X.Y.Z-scm The version approach may be reworked later, but since we need a valid version info for tarantool/tarantool#8192, we implement this one at least for now. Closes #330, part of tarantool/tarantool#8192 * api: provide _VERSION module info As a part of new module policy, each module must have version info stored in module._VERSION. For now, metrics._VERSION a duplicate of metrics.VERSION, but the latter is likely to be deprecated later. * release: 0.16.0
1 parent 61acda0 commit 8f9b667

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/push_rockspec.yml

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
-e "s/branch = '.\+'/tag = '${GIT_TAG}'/g" \
4242
-e "s/version = '.\+'/version = '${GIT_TAG}-1'/g" \
4343
${{ env.ROCK_NAME }}-scm-1.rockspec > ${{ env.ROCK_NAME }}-${GIT_TAG}-1.rockspec
44-
sed -i "s/local VERSION = 'scm-1'/local VERSION = '"${GIT_TAG}"-1'/g" metrics/init.lua
4544
4645
- uses: tarantool/rocks.tarantool.org/github-action@master
4746
with:

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.16.0] - 2023-01-27
910
### Added
1011

1112
- Handle to clear psutils metrics

metrics/init.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local Gauge = require('metrics.collectors.gauge')
1010
local Histogram = require('metrics.collectors.histogram')
1111
local Summary = require('metrics.collectors.summary')
1212

13-
local VERSION = 'scm-1'
13+
local VERSION = '0.16.0'
1414

1515
local registry = rawget(_G, '__metrics_registry')
1616
if not registry then
@@ -156,4 +156,5 @@ return {
156156
http_middleware = require('metrics.http_middleware'),
157157
collect = collect,
158158
VERSION = VERSION,
159+
_VERSION = VERSION,
159160
}

0 commit comments

Comments
 (0)