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 authored and oleg-jukovec committed Oct 25, 2023
1 parent 7a98042 commit cb78944
Show file tree
Hide file tree
Showing 19 changed files with 235 additions and 73 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=master make

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

### Added
- Constants from Tarantool `v3` (#6).

### Changed
- `ER_UNUSED` with error code 248 renamed to `ER_DEFAULT_VALUE_TYPE` (#6).

### Fixed

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.

Loading

0 comments on commit cb78944

Please sign in to comment.