Skip to content

Commit

Permalink
api: update generator for Tarantool v3
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DerekBum committed Oct 19, 2023
1 parent 7a98042 commit 7d2dd7e
Show file tree
Hide file tree
Showing 21 changed files with 243 additions and 90 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

- run: make deps

- run: TT_TAG=2.11.0 make
- run: TT_TAG=3.0.0-alpha1 make

golangci-lint:
if: (github.event_name == 'push') ||
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
### Changed

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

## [0.1.0] - 2023-06-01

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You can generate the code with commands:

```bash
TT_TAG=master make
TT_TAG=2.11.0 make
TT_TAG=3.0.0-alpha1 make
TT_TAG=master TT_REPO=https://github.com/my/tarantool.git make
```

Expand Down
4 changes: 2 additions & 2 deletions doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 25 additions & 5 deletions error.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions error_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion error_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Example() {
// Output:
// ER_READONLY=7
// IPROTO_FEATURE_WATCHERS=3
// IPROTO_FLAG_COMMIT=1
// IPROTO_FLAG_COMMIT=0
// IPROTO_SYNC=1
// IPROTO_SELECT=1
}
Loading

0 comments on commit 7d2dd7e

Please sign in to comment.