Skip to content

Commit 032ce25

Browse files
committed
api: update generator for Tarantool v3
Updated generation of constants (and tests) for Tarantool `v3`. Unfortunately, new generator does not support Tarantool version < `v3`, due to some naming differences for enums. Part of tarantool/go-tarantool#337
1 parent 7a98042 commit 032ce25

21 files changed

+248
-90
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- run: make deps
6060

61-
- run: TT_TAG=2.11.0 make
61+
- run: TT_TAG=3.0.0-alpha1 make
6262

6363
golangci-lint:
6464
if: (github.event_name == 'push') ||

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
1313
### Changed
1414

1515
### Fixed
16+
- Generation of constants (and tests) now works correctly for Tarantool `v3` (#6).
17+
Unfortunately, new generator does not support Tarantool version < `v3`,
18+
due to some naming differences for enums.
1619

1720
## [0.1.0] - 2023-06-01
1821

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You can generate the code with commands:
5252

5353
```bash
5454
TT_TAG=master make
55-
TT_TAG=2.11.0 make
55+
TT_TAG=3.0.0-alpha1 make
5656
TT_TAG=master TT_REPO=https://github.com/my/tarantool.git make
5757
```
5858

doc.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

error.go

+25-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

error_string.go

+13-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

error_test.go

+11-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func Example() {
1515
// Output:
1616
// ER_READONLY=7
1717
// IPROTO_FEATURE_WATCHERS=3
18-
// IPROTO_FLAG_COMMIT=1
18+
// IPROTO_FLAG_COMMIT=0
1919
// IPROTO_SYNC=1
2020
// IPROTO_SELECT=1
2121
}

0 commit comments

Comments
 (0)