* Use valitydev/thrift compiler v0.14.2.3 + valitydev/rebar3-thrift-compiler v0.4
This commit is contained in:
Andrew Mayorov 2022-06-20 11:18:23 +03:00 committed by GitHub
parent 512e0f68ab
commit 1f7261cf43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 10 deletions

View File

@ -13,6 +13,8 @@ jobs:
- uses: actions/checkout@v2
- uses: valitydev/action-setup-thrift@v1
with:
thrift-version: "0.14.2.3"
- uses: erlef/setup-beam@v1
id: beam

View File

@ -2,7 +2,7 @@ include "proto/base.thrift"
include "proto/domain.thrift"
namespace java dev.vality.magista
namespace erlang magista
namespace erlang magista.magista
// See https://github.com/valitydev/payout-manager-proto/blob/063163dc/proto/payout_manager.thrift#L7
typedef base.ID PayoutID

View File

@ -1,6 +1,5 @@
%% Common project erlang options.
{erl_opts, [
% mandatory
debug_info,
warnings_as_errors,
@ -26,10 +25,7 @@
]}.
{deps, [
{damsel,
{git, "https://github.com/valitydev/damsel.git",
{branch, "master"}}
}
{damsel, {git, "https://github.com/valitydev/damsel.git", {branch, "master"}}}
]}.
%% XRef checks
@ -57,7 +53,7 @@
{plugins, [
{rebar3_thrift_compiler,
{git, "https://github.com/valitydev/rebar3_thrift_compiler.git", {branch, "master"}}}
{git, "https://github.com/valitydev/rebar3-thrift-compiler.git", {tag, "0.4"}}}
]}.
{provider_hooks, [
@ -70,5 +66,5 @@
{thrift_compiler_opts, [
{in_dir, "proto"},
{in_files, all},
{gen, "erlang:scoped_typenames,app_prefix=magista"}
{gen, "erlang:app_namespaces"}
]}.

View File

@ -1,4 +1,4 @@
[{<<"damsel">>,
{git,"https://github.com/valitydev/damsel.git",
{ref,"df1c52f2ebe175fabe1da4aec8ac889b2dd03a0b"}},
{ref,"dac2cb599499cc0701e60856f4092c9ab283eedf"}},
0}].

View File

@ -3,6 +3,7 @@
{vsn, "0.1.0"},
{applications, [
kernel,
stdlib
stdlib,
damsel
]}
]}.