Bladeren bron

Re-vendor hex_core to 0.7.1

pull/2412/head
Paulo F. Oliveira 4 jaren geleden
bovenliggende
commit
cff6bbdff8
22 gewijzigde bestanden met toevoegingen van 1025 en 292 verwijderingen
  1. +1
    -1
      src/vendored/r3_hex_api.erl
  2. +1
    -1
      src/vendored/r3_hex_api_key.erl
  3. +1
    -1
      src/vendored/r3_hex_api_package.erl
  4. +1
    -1
      src/vendored/r3_hex_api_package_owner.erl
  5. +2
    -2
      src/vendored/r3_hex_api_release.erl
  6. +1
    -1
      src/vendored/r3_hex_api_user.erl
  7. +5
    -8
      src/vendored/r3_hex_core.erl
  8. +2
    -2
      src/vendored/r3_hex_core.hrl
  9. +1
    -1
      src/vendored/r3_hex_erl_tar.erl
  10. +1
    -1
      src/vendored/r3_hex_erl_tar.hrl
  11. +1
    -1
      src/vendored/r3_hex_filename.erl
  12. +13
    -3
      src/vendored/r3_hex_http.erl
  13. +1
    -1
      src/vendored/r3_hex_http_httpc.erl
  14. +175
    -31
      src/vendored/r3_hex_pb_names.erl
  15. +474
    -173
      src/vendored/r3_hex_pb_package.erl
  16. +160
    -23
      src/vendored/r3_hex_pb_signed.erl
  17. +176
    -32
      src/vendored/r3_hex_pb_versions.erl
  18. +3
    -3
      src/vendored/r3_hex_registry.erl
  19. +2
    -2
      src/vendored/r3_hex_repo.erl
  20. +2
    -2
      src/vendored/r3_hex_tarball.erl
  21. +1
    -1
      src/vendored/r3_safe_erl_term.xrl
  22. +1
    -1
      vendor_hex_core.sh

+ 1
- 1
src/vendored/r3_hex_api.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
%% @hidden

+ 1
- 1
src/vendored/r3_hex_api_key.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_api_key).
-export([

+ 1
- 1
src/vendored/r3_hex_api_package.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_api_package).
-export([get/2, search/3]).

+ 1
- 1
src/vendored/r3_hex_api_package_owner.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_api_package_owner).
-export([

+ 2
- 2
src/vendored/r3_hex_api_release.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_api_release).
-export([
@ -108,7 +108,7 @@ publish(Config, Tarball) -> publish(Config, Tarball, []).
%% }}}
%% '''
%% @end
-spec publish(hexcore:config(), binary(), publish_params()) -> r3_hex_api:response().
-spec publish(r3_hex_core:config(), binary(), publish_params()) -> r3_hex_api:response().
publish(Config, Tarball, Params) when is_map(Config) andalso is_binary(Tarball) andalso is_list(Params)->
QueryString = r3_hex_api:encode_query_string([{replace, proplists:get_value(replace, Params, false)}]),
Path = r3_hex_api:join_path_segments(r3_hex_api:build_repository_path(Config, ["publish"])),

+ 1
- 1
src/vendored/r3_hex_api_user.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_api_user).
-export([

+ 5
- 8
src/vendored/r3_hex_core.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
%% @doc
%% hex_core entrypoint module.
@ -18,11 +18,10 @@
%% * `api_repository' - Name of the repository endpoint in the API, this should
%% for example be set when accessing packages from a specific repository.
%% * `api_url' - URL to the HTTP API (default: `https://hex.pm/api').
%% * `http_adapter' - Callback module used for HTTP requests, see [`r3_hex_http'](r3_hex_http.html)
%% (default: `r3_hex_http_httpc').
%% * `http_adapter' - A tuple of a callback module used for HTTP requests, see [`r3_hex_http'](r3_hex_http.html)
%% (default: `r3_hex_http_httpc') and the configuration to pass to the HTTP adapter.
%% * `http_etag' - Sets the `if-none-match' HTTP header with the given value to do a
%% conditional HTTP request.
%% * `http_adapter_config' - Configuration to pass to the HTTP adapter.
%% * `http_user_agent_fragment' - Will be appended to the `user-agent` HTTP header (default: `(httpc)').
%% * `repo_key' - Authentication key used when accessing the repository.
%% * `repo_name' - Name of the repository, used for verifying the repository signature
@ -58,9 +57,8 @@ J1i2xWFndWa6nfFnRxZmCStCOZWYYPlaxr+FZceFbpMwzTNs4g3d4tLNUcbKAIH4
api_organization => binary() | undefined,
api_repository => binary() | undefined,
api_url => binary(),
http_adapter => module(),
http_adapter => {module(), map()},
http_etag => binary() | undefined,
http_adapter_config => map(),
http_headers => map(),
http_user_agent_fragment => binary(),
repo_key => binary() | undefined,
@ -81,8 +79,7 @@ default_config() ->
api_organization => undefined,
api_repository => undefined,
api_url => <<"https://hex.pm/api">>,
http_adapter => r3_hex_http_httpc,
http_adapter_config => #{profile => default},
http_adapter => {r3_hex_http_httpc, #{profile => default}},
http_etag => undefined,
http_headers => #{},
http_user_agent_fragment => <<"(httpc)">>,

+ 2
- 2
src/vendored/r3_hex_core.hrl Bestand weergeven

@ -1,3 +1,3 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-define(HEX_CORE_VERSION, "0.7.0").
-define(HEX_CORE_VERSION, "0.7.1").

+ 1
- 1
src/vendored/r3_hex_erl_tar.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
%% @private
%% Copied from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/erl_tar.erl

+ 1
- 1
src/vendored/r3_hex_erl_tar.hrl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
% Copied from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/erl_tar.hrl

+ 1
- 1
src/vendored/r3_hex_filename.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
% @private
% Excerpt from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/filename.erl#L761-L788

+ 13
- 3
src/vendored/r3_hex_http.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_http).
-export([request/5]).
@ -9,7 +9,9 @@
-type method() :: get | post | put | patch | delete.
-type status() :: non_neg_integer().
-export_type([status/0]).
-type headers() :: #{binary() => binary()}.
-export_type([headers/0]).
-type body() :: {ContentType :: binary(), Body :: binary()} | undefined.
-type adapter_config() :: map().
@ -20,10 +22,18 @@
-spec request(r3_hex_core:config(), method(), URI :: binary(), headers(), body()) ->
{ok, {status(), headers(), binary()}} | {error, term()}.
request(Config, Method, URI, Headers, Body) when is_binary(URI) and is_map(Headers) ->
Adapter = maps:get(http_adapter, Config),
{Adapter, AdapterConfig} = case maps:get(http_adapter, Config, {r3_hex_http_httpc, #{}}) of
{Adapter0, AdapterConfig0} ->
{Adapter0, AdapterConfig0};
%% TODO: remove in v0.9
Adapter0 when is_atom(Adapter0) ->
AdapterConfig0 = maps:get(http_adapter_config, Config, #{}),
io:format("[r3_hex_http] setting #{http_adapter => Module, http_adapter_config => Map} "
"is deprecated in favour of #{http_adapter => {Module, Map}}~n"),
{Adapter0, AdapterConfig0}
end,
UserAgentFragment = maps:get(http_user_agent_fragment, Config),
Headers2 = put_new(<<"user-agent">>, user_agent(UserAgentFragment), Headers),
AdapterConfig = maps:get(http_adapter_config, Config, #{}),
Adapter:request(Method, URI, Headers2, Body, AdapterConfig).
user_agent(UserAgentFragment) ->

+ 1
- 1
src/vendored/r3_hex_http_httpc.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
%% @hidden

+ 175
- 31
src/vendored/r3_hex_pb_names.erl Bestand weergeven

@ -1,8 +1,9 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
%% -*- coding: utf-8 -*-
%% @private
%% Automatically generated, do not edit
%% Generated by gpb_compile version 4.3.1
%% Generated by gpb_compile version 4.10.0
-module(r3_hex_pb_names).
-export([encode_msg/2, encode_msg/3]).
@ -21,7 +22,28 @@
-export([get_service_def/1]).
-export([get_rpc_names/1]).
-export([find_rpc_def/2, fetch_rpc_def/2]).
-export([fqbin_to_service_name/1]).
-export([service_name_to_fqbin/1]).
-export([fqbins_to_service_and_rpc_name/2]).
-export([service_and_rpc_name_to_fqbins/2]).
-export([fqbin_to_msg_name/1]).
-export([msg_name_to_fqbin/1]).
-export([fqbin_to_enum_name/1]).
-export([enum_name_to_fqbin/1]).
-export([get_package_name/0]).
-export([uses_packages/0]).
-export([source_basename/0]).
-export([get_all_source_basenames/0]).
-export([get_all_proto_names/0]).
-export([get_msg_containment/1]).
-export([get_pkg_containment/1]).
-export([get_service_containment/1]).
-export([get_rpc_containment/1]).
-export([get_enum_containment/1]).
-export([get_proto_by_msg_name_as_fqbin/1]).
-export([get_proto_by_service_name_as_fqbin/1]).
-export([get_proto_by_enum_name_as_fqbin/1]).
-export([get_protos_by_pkg_name_as_fqbin/1]).
-export([gpb_version_as_string/0, gpb_version_as_list/0]).
@ -32,11 +54,11 @@
%% message types
-type 'Names'() ::
#{packages => ['Package'()], % = 1
repository => iodata() % = 2
repository := iodata() % = 2
}.
-type 'Package'() ::
#{name => iodata() % = 1
#{name := iodata() % = 1
}.
-export_type(['Names'/0, 'Package'/0]).
@ -50,17 +72,19 @@ encode_msg(Msg, MsgName, Opts) ->
verify_msg(Msg, MsgName, Opts),
TrUserData = proplists:get_value(user_data, Opts),
case MsgName of
'Names' -> e_msg_Names(id(Msg, TrUserData), TrUserData);
'Names' ->
encode_msg_Names(id(Msg, TrUserData), TrUserData);
'Package' ->
e_msg_Package(id(Msg, TrUserData), TrUserData)
encode_msg_Package(id(Msg, TrUserData), TrUserData)
end.
e_msg_Names(Msg, TrUserData) ->
e_msg_Names(Msg, <<>>, TrUserData).
encode_msg_Names(Msg, TrUserData) ->
encode_msg_Names(Msg, <<>>, TrUserData).
e_msg_Names(#{repository := F2} = M, Bin, TrUserData) ->
encode_msg_Names(#{repository := F2} = M, Bin,
TrUserData) ->
B1 = case M of
#{packages := F1} ->
TrF1 = id(F1, TrUserData),
@ -74,18 +98,18 @@ e_msg_Names(#{repository := F2} = M, Bin, TrUserData) ->
e_type_string(TrF2, <<B1/binary, 18>>, TrUserData)
end.
e_msg_Package(Msg, TrUserData) ->
e_msg_Package(Msg, <<>>, TrUserData).
encode_msg_Package(Msg, TrUserData) ->
encode_msg_Package(Msg, <<>>, TrUserData).
e_msg_Package(#{name := F1}, Bin, TrUserData) ->
encode_msg_Package(#{name := F1}, Bin, TrUserData) ->
begin
TrF1 = id(F1, TrUserData),
e_type_string(TrF1, <<Bin/binary, 10>>, TrUserData)
end.
e_mfield_Names_packages(Msg, Bin, TrUserData) ->
SubBin = e_msg_Package(Msg, <<>>, TrUserData),
SubBin = encode_msg_Package(Msg, <<>>, TrUserData),
Bin2 = e_varint(byte_size(SubBin), Bin),
<<Bin2/binary, SubBin/binary>>.
@ -203,12 +227,6 @@ decode_msg_1_catch(Bin, MsgName, TrUserData) ->
catch Class:Reason:StackTrace -> error({gpb_error,{decoding_failure, {Bin, MsgName, {Class, Reason, StackTrace}}}})
end.
-else.
-ifdef('GPB_PATTERN_STACK').
decode_msg_1_catch(Bin, MsgName, TrUserData) ->
try decode_msg_2_doit(MsgName, Bin, TrUserData)
catch Class:Reason:StackTrace -> error({gpb_error,{decoding_failure, {Bin, MsgName, {Class, Reason, StackTrace}}}})
end.
-else.
decode_msg_1_catch(Bin, MsgName, TrUserData) ->
try decode_msg_2_doit(MsgName, Bin, TrUserData)
catch Class:Reason ->
@ -217,16 +235,14 @@ decode_msg_1_catch(Bin, MsgName, TrUserData) ->
end.
-endif.
-endif.
decode_msg_2_doit('Names', Bin, TrUserData) ->
id(d_msg_Names(Bin, TrUserData), TrUserData);
id(decode_msg_Names(Bin, TrUserData), TrUserData);
decode_msg_2_doit('Package', Bin, TrUserData) ->
id(d_msg_Package(Bin, TrUserData), TrUserData).
id(decode_msg_Package(Bin, TrUserData), TrUserData).
d_msg_Names(Bin, TrUserData) ->
decode_msg_Names(Bin, TrUserData) ->
dfp_read_field_def_Names(Bin, 0, 0, id([], TrUserData),
id('$undef', TrUserData), TrUserData).
@ -295,7 +311,7 @@ d_field_Names_packages(<<0:1, X:7, Rest/binary>>, N,
{NewFValue, RestF} = begin
Len = X bsl N + Acc,
<<Bs:Len/binary, Rest2/binary>> = Rest,
{id(d_msg_Package(Bs, TrUserData), TrUserData),
{id(decode_msg_Package(Bs, TrUserData), TrUserData),
Rest2}
end,
dfp_read_field_def_Names(RestF, 0, 0,
@ -353,7 +369,7 @@ skip_64_Names(<<_:64, Rest/binary>>, Z1, Z2, F@_1, F@_2,
dfp_read_field_def_Names(Rest, Z1, Z2, F@_1, F@_2,
TrUserData).
d_msg_Package(Bin, TrUserData) ->
decode_msg_Package(Bin, TrUserData) ->
dfp_read_field_def_Package(Bin, 0, 0,
id('$undef', TrUserData), TrUserData).
@ -546,6 +562,7 @@ verify_msg(Msg, MsgName, Opts) ->
-compile({nowarn_unused_function,v_msg_Names/3}).
-dialyzer({nowarn_function,v_msg_Names/3}).
v_msg_Names(#{repository := F2} = M, Path,
TrUserData) ->
case M of
@ -576,6 +593,7 @@ v_msg_Names(X, Path, _TrUserData) ->
mk_type_error({expected_msg, 'Names'}, X, Path).
-compile({nowarn_unused_function,v_msg_Package/3}).
-dialyzer({nowarn_function,v_msg_Package/3}).
v_msg_Package(#{name := F1} = M, Path, TrUserData) ->
v_type_string(F1, [name | Path], TrUserData),
lists:foreach(fun (name) -> ok;
@ -592,6 +610,7 @@ v_msg_Package(X, Path, _TrUserData) ->
mk_type_error({expected_msg, 'Package'}, X, Path).
-compile({nowarn_unused_function,v_type_string/3}).
-dialyzer({nowarn_function,v_type_string/3}).
v_type_string(S, Path, _TrUserData)
when is_list(S); is_binary(S) ->
try unicode:characters_to_binary(S) of
@ -614,11 +633,12 @@ mk_type_error(Error, ValueSeen, Path) ->
-compile({nowarn_unused_function,prettify_path/1}).
-dialyzer({nowarn_function,prettify_path/1}).
prettify_path([]) -> top_level;
prettify_path(PathR) ->
list_to_atom(string:join(lists:map(fun atom_to_list/1,
lists:reverse(PathR)),
".")).
list_to_atom(lists:append(lists:join(".",
lists:map(fun atom_to_list/1,
lists:reverse(PathR))))).
-compile({nowarn_unused_function,id/2}).
@ -644,6 +664,7 @@ cons(Elem, Acc, _TrUserData) -> [Elem | Acc].
-compile({inline,'erlang_++'/3}).
'erlang_++'(A, B, _TrUserData) -> A ++ B.
get_msg_defs() ->
[{{msg, 'Names'},
[#{name => packages, fnum => 1, rnum => 2,
@ -724,12 +745,135 @@ fetch_rpc_def(ServiceName, RpcName) ->
erlang:error({no_such_rpc, ServiceName, RpcName}).
%% Convert a a fully qualified (ie with package name) service name
%% as a binary to a service name as an atom.
-spec fqbin_to_service_name(_) -> no_return().
fqbin_to_service_name(X) ->
error({gpb_error, {badservice, X}}).
%% Convert a service name as an atom to a fully qualified
%% (ie with package name) name as a binary.
-spec service_name_to_fqbin(_) -> no_return().
service_name_to_fqbin(X) ->
error({gpb_error, {badservice, X}}).
%% Convert a a fully qualified (ie with package name) service name
%% and an rpc name, both as binaries to a service name and an rpc
%% name, as atoms.
-spec fqbins_to_service_and_rpc_name(_, _) -> no_return().
fqbins_to_service_and_rpc_name(S, R) ->
error({gpb_error, {badservice_or_rpc, {S, R}}}).
%% Convert a service name and an rpc name, both as atoms,
%% to a fully qualified (ie with package name) service name and
%% an rpc name as binaries.
-spec service_and_rpc_name_to_fqbins(_, _) -> no_return().
service_and_rpc_name_to_fqbins(S, R) ->
error({gpb_error, {badservice_or_rpc, {S, R}}}).
fqbin_to_msg_name(<<"Names">>) -> 'Names';
fqbin_to_msg_name(<<"Package">>) -> 'Package';
fqbin_to_msg_name(E) -> error({gpb_error, {badmsg, E}}).
msg_name_to_fqbin('Names') -> <<"Names">>;
msg_name_to_fqbin('Package') -> <<"Package">>;
msg_name_to_fqbin(E) -> error({gpb_error, {badmsg, E}}).
-spec fqbin_to_enum_name(_) -> no_return().
fqbin_to_enum_name(E) ->
error({gpb_error, {badenum, E}}).
-spec enum_name_to_fqbin(_) -> no_return().
enum_name_to_fqbin(E) ->
error({gpb_error, {badenum, E}}).
get_package_name() -> undefined.
%% Whether or not the message names
%% are prepended with package name or not.
uses_packages() -> false.
source_basename() -> "r3_hex_pb_names.proto".
%% Retrieve all proto file names, also imported ones.
%% The order is top-down. The first element is always the main
%% source file. The files are returned with extension,
%% see get_all_proto_names/0 for a version that returns
%% the basenames sans extension
get_all_source_basenames() -> ["r3_hex_pb_names.proto"].
%% Retrieve all proto file names, also imported ones.
%% The order is top-down. The first element is always the main
%% source file. The files are returned sans .proto extension,
%% to make it easier to use them with the various get_xyz_containment
%% functions.
get_all_proto_names() -> ["r3_hex_pb_names"].
get_msg_containment("r3_hex_pb_names") ->
['Names', 'Package'];
get_msg_containment(P) ->
error({gpb_error, {badproto, P}}).
get_pkg_containment("r3_hex_pb_names") -> undefined;
get_pkg_containment(P) ->
error({gpb_error, {badproto, P}}).
get_service_containment("r3_hex_pb_names") -> [];
get_service_containment(P) ->
error({gpb_error, {badproto, P}}).
get_rpc_containment("r3_hex_pb_names") -> [];
get_rpc_containment(P) ->
error({gpb_error, {badproto, P}}).
get_enum_containment("r3_hex_pb_names") -> [];
get_enum_containment(P) ->
error({gpb_error, {badproto, P}}).
get_proto_by_msg_name_as_fqbin(<<"Names">>) ->
"r3_hex_pb_names";
get_proto_by_msg_name_as_fqbin(<<"Package">>) ->
"r3_hex_pb_names";
get_proto_by_msg_name_as_fqbin(E) ->
error({gpb_error, {badmsg, E}}).
-spec get_proto_by_service_name_as_fqbin(_) -> no_return().
get_proto_by_service_name_as_fqbin(E) ->
error({gpb_error, {badservice, E}}).
-spec get_proto_by_enum_name_as_fqbin(_) -> no_return().
get_proto_by_enum_name_as_fqbin(E) ->
error({gpb_error, {badenum, E}}).
-spec get_protos_by_pkg_name_as_fqbin(_) -> no_return().
get_protos_by_pkg_name_as_fqbin(E) ->
error({gpb_error, {badpkg, E}}).
gpb_version_as_string() ->
"4.3.1".
"4.10.0".
gpb_version_as_list() ->
[4,3,1].
[4,10,0].

+ 474
- 173
src/vendored/r3_hex_pb_package.erl
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 160
- 23
src/vendored/r3_hex_pb_signed.erl Bestand weergeven

@ -1,8 +1,9 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
%% -*- coding: utf-8 -*-
%% @private
%% Automatically generated, do not edit
%% Generated by gpb_compile version 4.3.1
%% Generated by gpb_compile version 4.10.0
-module(r3_hex_pb_signed).
-export([encode_msg/2, encode_msg/3]).
@ -21,7 +22,28 @@
-export([get_service_def/1]).
-export([get_rpc_names/1]).
-export([find_rpc_def/2, fetch_rpc_def/2]).
-export([fqbin_to_service_name/1]).
-export([service_name_to_fqbin/1]).
-export([fqbins_to_service_and_rpc_name/2]).
-export([service_and_rpc_name_to_fqbins/2]).
-export([fqbin_to_msg_name/1]).
-export([msg_name_to_fqbin/1]).
-export([fqbin_to_enum_name/1]).
-export([enum_name_to_fqbin/1]).
-export([get_package_name/0]).
-export([uses_packages/0]).
-export([source_basename/0]).
-export([get_all_source_basenames/0]).
-export([get_all_proto_names/0]).
-export([get_msg_containment/1]).
-export([get_pkg_containment/1]).
-export([get_service_containment/1]).
-export([get_rpc_containment/1]).
-export([get_enum_containment/1]).
-export([get_proto_by_msg_name_as_fqbin/1]).
-export([get_proto_by_service_name_as_fqbin/1]).
-export([get_proto_by_enum_name_as_fqbin/1]).
-export([get_protos_by_pkg_name_as_fqbin/1]).
-export([gpb_version_as_string/0, gpb_version_as_list/0]).
@ -31,8 +53,8 @@
%% message types
-type 'Signed'() ::
#{payload => iodata() % = 1
%% signature => iodata() % = 2
#{payload := iodata() class="p">, % = 1
signature => iodata() % = 2
}.
-export_type(['Signed'/0]).
@ -47,15 +69,16 @@ encode_msg(Msg, MsgName, Opts) ->
TrUserData = proplists:get_value(user_data, Opts),
case MsgName of
'Signed' ->
e_msg_Signed(id(Msg, TrUserData), TrUserData)
encode_msg_Signed(id(Msg, TrUserData), TrUserData)
end.
e_msg_Signed(Msg, TrUserData) ->
e_msg_Signed(Msg, <<>>, TrUserData).
encode_msg_Signed(Msg, TrUserData) ->
encode_msg_Signed(Msg, <<>>, TrUserData).
e_msg_Signed(#{payload := F1} = M, Bin, TrUserData) ->
encode_msg_Signed(#{payload := F1} = M, Bin,
TrUserData) ->
B1 = begin
TrF1 = id(F1, TrUserData),
e_type_bytes(TrF1, <<Bin/binary, 10>>, TrUserData)
@ -175,12 +198,6 @@ decode_msg_1_catch(Bin, MsgName, TrUserData) ->
catch Class:Reason:StackTrace -> error({gpb_error,{decoding_failure, {Bin, MsgName, {Class, Reason, StackTrace}}}})
end.
-else.
-ifdef('GPB_PATTERN_STACK').
decode_msg_1_catch(Bin, MsgName, TrUserData) ->
try decode_msg_2_doit(MsgName, Bin, TrUserData)
catch Class:Reason:StackTrace -> error({gpb_error,{decoding_failure, {Bin, MsgName, {Class, Reason, StackTrace}}}})
end.
-else.
decode_msg_1_catch(Bin, MsgName, TrUserData) ->
try decode_msg_2_doit(MsgName, Bin, TrUserData)
catch Class:Reason ->
@ -189,14 +206,12 @@ decode_msg_1_catch(Bin, MsgName, TrUserData) ->
end.
-endif.
-endif.
decode_msg_2_doit('Signed', Bin, TrUserData) ->
id(d_msg_Signed(Bin, TrUserData), TrUserData).
id(decode_msg_Signed(Bin, TrUserData), TrUserData).
d_msg_Signed(Bin, TrUserData) ->
decode_msg_Signed(Bin, TrUserData) ->
dfp_read_field_def_Signed(Bin, 0, 0,
id('$undef', TrUserData),
id('$undef', TrUserData), TrUserData).
@ -413,6 +428,7 @@ verify_msg(Msg, MsgName, Opts) ->
-compile({nowarn_unused_function,v_msg_Signed/3}).
-dialyzer({nowarn_function,v_msg_Signed/3}).
v_msg_Signed(#{payload := F1} = M, Path, TrUserData) ->
v_type_bytes(F1, [payload | Path], TrUserData),
case M of
@ -435,6 +451,7 @@ v_msg_Signed(X, Path, _TrUserData) ->
mk_type_error({expected_msg, 'Signed'}, X, Path).
-compile({nowarn_unused_function,v_type_bytes/3}).
-dialyzer({nowarn_function,v_type_bytes/3}).
v_type_bytes(B, _Path, _TrUserData) when is_binary(B) ->
ok;
v_type_bytes(B, _Path, _TrUserData) when is_list(B) ->
@ -451,11 +468,12 @@ mk_type_error(Error, ValueSeen, Path) ->
-compile({nowarn_unused_function,prettify_path/1}).
-dialyzer({nowarn_function,prettify_path/1}).
prettify_path([]) -> top_level;
prettify_path(PathR) ->
list_to_atom(string:join(lists:map(fun atom_to_list/1,
lists:reverse(PathR)),
".")).
list_to_atom(lists:append(lists:join(".",
lists:map(fun atom_to_list/1,
lists:reverse(PathR))))).
-compile({nowarn_unused_function,id/2}).
@ -481,6 +499,7 @@ cons(Elem, Acc, _TrUserData) -> [Elem | Acc].
-compile({inline,'erlang_++'/3}).
'erlang_++'(A, B, _TrUserData) -> A ++ B.
get_msg_defs() ->
[{{msg, 'Signed'},
[#{name => payload, fnum => 1, rnum => 2, type => bytes,
@ -553,12 +572,130 @@ fetch_rpc_def(ServiceName, RpcName) ->
erlang:error({no_such_rpc, ServiceName, RpcName}).
%% Convert a a fully qualified (ie with package name) service name
%% as a binary to a service name as an atom.
-spec fqbin_to_service_name(_) -> no_return().
fqbin_to_service_name(X) ->
error({gpb_error, {badservice, X}}).
%% Convert a service name as an atom to a fully qualified
%% (ie with package name) name as a binary.
-spec service_name_to_fqbin(_) -> no_return().
service_name_to_fqbin(X) ->
error({gpb_error, {badservice, X}}).
%% Convert a a fully qualified (ie with package name) service name
%% and an rpc name, both as binaries to a service name and an rpc
%% name, as atoms.
-spec fqbins_to_service_and_rpc_name(_, _) -> no_return().
fqbins_to_service_and_rpc_name(S, R) ->
error({gpb_error, {badservice_or_rpc, {S, R}}}).
%% Convert a service name and an rpc name, both as atoms,
%% to a fully qualified (ie with package name) service name and
%% an rpc name as binaries.
-spec service_and_rpc_name_to_fqbins(_, _) -> no_return().
service_and_rpc_name_to_fqbins(S, R) ->
error({gpb_error, {badservice_or_rpc, {S, R}}}).
fqbin_to_msg_name(<<"Signed">>) -> 'Signed';
fqbin_to_msg_name(E) -> error({gpb_error, {badmsg, E}}).
msg_name_to_fqbin('Signed') -> <<"Signed">>;
msg_name_to_fqbin(E) -> error({gpb_error, {badmsg, E}}).
-spec fqbin_to_enum_name(_) -> no_return().
fqbin_to_enum_name(E) ->
error({gpb_error, {badenum, E}}).
-spec enum_name_to_fqbin(_) -> no_return().
enum_name_to_fqbin(E) ->
error({gpb_error, {badenum, E}}).
get_package_name() -> undefined.
%% Whether or not the message names
%% are prepended with package name or not.
uses_packages() -> false.
source_basename() -> "r3_hex_pb_signed.proto".
%% Retrieve all proto file names, also imported ones.
%% The order is top-down. The first element is always the main
%% source file. The files are returned with extension,
%% see get_all_proto_names/0 for a version that returns
%% the basenames sans extension
get_all_source_basenames() -> ["r3_hex_pb_signed.proto"].
%% Retrieve all proto file names, also imported ones.
%% The order is top-down. The first element is always the main
%% source file. The files are returned sans .proto extension,
%% to make it easier to use them with the various get_xyz_containment
%% functions.
get_all_proto_names() -> ["r3_hex_pb_signed"].
get_msg_containment("r3_hex_pb_signed") -> ['Signed'];
get_msg_containment(P) ->
error({gpb_error, {badproto, P}}).
get_pkg_containment("r3_hex_pb_signed") -> undefined;
get_pkg_containment(P) ->
error({gpb_error, {badproto, P}}).
get_service_containment("r3_hex_pb_signed") -> [];
get_service_containment(P) ->
error({gpb_error, {badproto, P}}).
get_rpc_containment("r3_hex_pb_signed") -> [];
get_rpc_containment(P) ->
error({gpb_error, {badproto, P}}).
get_enum_containment("r3_hex_pb_signed") -> [];
get_enum_containment(P) ->
error({gpb_error, {badproto, P}}).
get_proto_by_msg_name_as_fqbin(<<"Signed">>) ->
"r3_hex_pb_signed";
get_proto_by_msg_name_as_fqbin(E) ->
error({gpb_error, {badmsg, E}}).
-spec get_proto_by_service_name_as_fqbin(_) -> no_return().
get_proto_by_service_name_as_fqbin(E) ->
error({gpb_error, {badservice, E}}).
-spec get_proto_by_enum_name_as_fqbin(_) -> no_return().
get_proto_by_enum_name_as_fqbin(E) ->
error({gpb_error, {badenum, E}}).
-spec get_protos_by_pkg_name_as_fqbin(_) -> no_return().
get_protos_by_pkg_name_as_fqbin(E) ->
error({gpb_error, {badpkg, E}}).
gpb_version_as_string() ->
"4.3.1".
"4.10.0".
gpb_version_as_list() ->
[4,3,1].
[4,10,0].

+ 176
- 32
src/vendored/r3_hex_pb_versions.erl Bestand weergeven

@ -1,8 +1,9 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
%% -*- coding: utf-8 -*-
%% @private
%% Automatically generated, do not edit
%% Generated by gpb_compile version 4.3.1
%% Generated by gpb_compile version 4.10.0
-module(r3_hex_pb_versions).
-export([encode_msg/2, encode_msg/3]).
@ -21,7 +22,28 @@
-export([get_service_def/1]).
-export([get_rpc_names/1]).
-export([find_rpc_def/2, fetch_rpc_def/2]).
-export([fqbin_to_service_name/1]).
-export([service_name_to_fqbin/1]).
-export([fqbins_to_service_and_rpc_name/2]).
-export([service_and_rpc_name_to_fqbins/2]).
-export([fqbin_to_msg_name/1]).
-export([msg_name_to_fqbin/1]).
-export([fqbin_to_enum_name/1]).
-export([enum_name_to_fqbin/1]).
-export([get_package_name/0]).
-export([uses_packages/0]).
-export([source_basename/0]).
-export([get_all_source_basenames/0]).
-export([get_all_proto_names/0]).
-export([get_msg_containment/1]).
-export([get_pkg_containment/1]).
-export([get_service_containment/1]).
-export([get_rpc_containment/1]).
-export([get_enum_containment/1]).
-export([get_proto_by_msg_name_as_fqbin/1]).
-export([get_proto_by_service_name_as_fqbin/1]).
-export([get_proto_by_enum_name_as_fqbin/1]).
-export([get_protos_by_pkg_name_as_fqbin/1]).
-export([gpb_version_as_string/0, gpb_version_as_list/0]).
@ -32,11 +54,11 @@
%% message types
-type 'Versions'() ::
#{packages => ['Package'()], % = 1
repository => iodata() % = 2
repository := iodata() % = 2
}.
-type 'Package'() ::
#{name => iodata(), % = 1
#{name := iodata(), % = 1
versions => [iodata()], % = 2
retired => [integer()] % = 3, 32 bits
}.
@ -53,18 +75,18 @@ encode_msg(Msg, MsgName, Opts) ->
TrUserData = proplists:get_value(user_data, Opts),
case MsgName of
'Versions' ->
e_msg_Versions(id(Msg, TrUserData), TrUserData);
encode_msg_Versions(id(Msg, TrUserData), TrUserData);
'Package' ->
e_msg_Package(id(Msg, TrUserData), TrUserData)
encode_msg_Package(id(Msg, TrUserData), TrUserData)
end.
e_msg_Versions(Msg, TrUserData) ->
e_msg_Versions(Msg, <<>>, TrUserData).
encode_msg_Versions(Msg, TrUserData) ->
encode_msg_Versions(Msg, <<>>, TrUserData).
e_msg_Versions(#{repository := F2} = M, Bin,
TrUserData) ->
encode_msg_Versions(#{repository := F2} = M, Bin,
TrUserData) ->
B1 = case M of
#{packages := F1} ->
TrF1 = id(F1, TrUserData),
@ -78,11 +100,12 @@ e_msg_Versions(#{repository := F2} = M, Bin,
e_type_string(TrF2, <<B1/binary, 18>>, TrUserData)
end.
e_msg_Package(Msg, TrUserData) ->
e_msg_Package(Msg, <<>>, TrUserData).
encode_msg_Package(Msg, TrUserData) ->
encode_msg_Package(Msg, <<>>, TrUserData).
e_msg_Package(#{name := F1} = M, Bin, TrUserData) ->
encode_msg_Package(#{name := F1} = M, Bin,
TrUserData) ->
B1 = begin
TrF1 = id(F1, TrUserData),
e_type_string(TrF1, <<Bin/binary, 10>>, TrUserData)
@ -105,7 +128,7 @@ e_msg_Package(#{name := F1} = M, Bin, TrUserData) ->
end.
e_mfield_Versions_packages(Msg, Bin, TrUserData) ->
SubBin = e_msg_Package(Msg, <<>>, TrUserData),
SubBin = encode_msg_Package(Msg, <<>>, TrUserData),
Bin2 = e_varint(byte_size(SubBin), Bin),
<<Bin2/binary, SubBin/binary>>.
@ -247,12 +270,6 @@ decode_msg_1_catch(Bin, MsgName, TrUserData) ->
catch Class:Reason:StackTrace -> error({gpb_error,{decoding_failure, {Bin, MsgName, {Class, Reason, StackTrace}}}})
end.
-else.
-ifdef('GPB_PATTERN_STACK').
decode_msg_1_catch(Bin, MsgName, TrUserData) ->
try decode_msg_2_doit(MsgName, Bin, TrUserData)
catch Class:Reason:StackTrace -> error({gpb_error,{decoding_failure, {Bin, MsgName, {Class, Reason, StackTrace}}}})
end.
-else.
decode_msg_1_catch(Bin, MsgName, TrUserData) ->
try decode_msg_2_doit(MsgName, Bin, TrUserData)
catch Class:Reason ->
@ -261,16 +278,14 @@ decode_msg_1_catch(Bin, MsgName, TrUserData) ->
end.
-endif.
-endif.
decode_msg_2_doit('Versions', Bin, TrUserData) ->
id(d_msg_Versions(Bin, TrUserData), TrUserData);
id(decode_msg_Versions(Bin, TrUserData), TrUserData);
decode_msg_2_doit('Package', Bin, TrUserData) ->
id(d_msg_Package(Bin, TrUserData), TrUserData).
id(decode_msg_Package(Bin, TrUserData), TrUserData).
d_msg_Versions(Bin, TrUserData) ->
decode_msg_Versions(Bin, TrUserData) ->
dfp_read_field_def_Versions(Bin, 0, 0,
id([], TrUserData), id('$undef', TrUserData),
TrUserData).
@ -343,7 +358,7 @@ d_field_Versions_packages(<<0:1, X:7, Rest/binary>>, N,
{NewFValue, RestF} = begin
Len = X bsl N + Acc,
<<Bs:Len/binary, Rest2/binary>> = Rest,
{id(d_msg_Package(Bs, TrUserData), TrUserData),
{id(decode_msg_Package(Bs, TrUserData), TrUserData),
Rest2}
end,
dfp_read_field_def_Versions(RestF, 0, 0,
@ -404,7 +419,7 @@ skip_64_Versions(<<_:64, Rest/binary>>, Z1, Z2, F@_1,
dfp_read_field_def_Versions(Rest, Z1, Z2, F@_1, F@_2,
TrUserData).
d_msg_Package(Bin, TrUserData) ->
decode_msg_Package(Bin, TrUserData) ->
dfp_read_field_def_Package(Bin, 0, 0,
id('$undef', TrUserData), id([], TrUserData),
id([], TrUserData), TrUserData).
@ -724,6 +739,7 @@ verify_msg(Msg, MsgName, Opts) ->
-compile({nowarn_unused_function,v_msg_Versions/3}).
-dialyzer({nowarn_function,v_msg_Versions/3}).
v_msg_Versions(#{repository := F2} = M, Path,
TrUserData) ->
case M of
@ -754,6 +770,7 @@ v_msg_Versions(X, Path, _TrUserData) ->
mk_type_error({expected_msg, 'Versions'}, X, Path).
-compile({nowarn_unused_function,v_msg_Package/3}).
-dialyzer({nowarn_function,v_msg_Package/3}).
v_msg_Package(#{name := F1} = M, Path, TrUserData) ->
v_type_string(F1, [name | Path], TrUserData),
case M of
@ -796,6 +813,7 @@ v_msg_Package(X, Path, _TrUserData) ->
mk_type_error({expected_msg, 'Package'}, X, Path).
-compile({nowarn_unused_function,v_type_int32/3}).
-dialyzer({nowarn_function,v_type_int32/3}).
v_type_int32(N, _Path, _TrUserData)
when -2147483648 =< N, N =< 2147483647 ->
ok;
@ -807,6 +825,7 @@ v_type_int32(X, Path, _TrUserData) ->
Path).
-compile({nowarn_unused_function,v_type_string/3}).
-dialyzer({nowarn_function,v_type_string/3}).
v_type_string(S, Path, _TrUserData)
when is_list(S); is_binary(S) ->
try unicode:characters_to_binary(S) of
@ -829,11 +848,12 @@ mk_type_error(Error, ValueSeen, Path) ->
-compile({nowarn_unused_function,prettify_path/1}).
-dialyzer({nowarn_function,prettify_path/1}).
prettify_path([]) -> top_level;
prettify_path(PathR) ->
list_to_atom(string:join(lists:map(fun atom_to_list/1,
lists:reverse(PathR)),
".")).
list_to_atom(lists:append(lists:join(".",
lists:map(fun atom_to_list/1,
lists:reverse(PathR))))).
-compile({nowarn_unused_function,id/2}).
@ -859,6 +879,7 @@ cons(Elem, Acc, _TrUserData) -> [Elem | Acc].
-compile({inline,'erlang_++'/3}).
'erlang_++'(A, B, _TrUserData) -> A ++ B.
get_msg_defs() ->
[{{msg, 'Versions'},
[#{name => packages, fnum => 1, rnum => 2,
@ -947,12 +968,135 @@ fetch_rpc_def(ServiceName, RpcName) ->
erlang:error({no_such_rpc, ServiceName, RpcName}).
%% Convert a a fully qualified (ie with package name) service name
%% as a binary to a service name as an atom.
-spec fqbin_to_service_name(_) -> no_return().
fqbin_to_service_name(X) ->
error({gpb_error, {badservice, X}}).
%% Convert a service name as an atom to a fully qualified
%% (ie with package name) name as a binary.
-spec service_name_to_fqbin(_) -> no_return().
service_name_to_fqbin(X) ->
error({gpb_error, {badservice, X}}).
%% Convert a a fully qualified (ie with package name) service name
%% and an rpc name, both as binaries to a service name and an rpc
%% name, as atoms.
-spec fqbins_to_service_and_rpc_name(_, _) -> no_return().
fqbins_to_service_and_rpc_name(S, R) ->
error({gpb_error, {badservice_or_rpc, {S, R}}}).
%% Convert a service name and an rpc name, both as atoms,
%% to a fully qualified (ie with package name) service name and
%% an rpc name as binaries.
-spec service_and_rpc_name_to_fqbins(_, _) -> no_return().
service_and_rpc_name_to_fqbins(S, R) ->
error({gpb_error, {badservice_or_rpc, {S, R}}}).
fqbin_to_msg_name(<<"Versions">>) -> 'Versions';
fqbin_to_msg_name(<<"Package">>) -> 'Package';
fqbin_to_msg_name(E) -> error({gpb_error, {badmsg, E}}).
msg_name_to_fqbin('Versions') -> <<"Versions">>;
msg_name_to_fqbin('Package') -> <<"Package">>;
msg_name_to_fqbin(E) -> error({gpb_error, {badmsg, E}}).
-spec fqbin_to_enum_name(_) -> no_return().
fqbin_to_enum_name(E) ->
error({gpb_error, {badenum, E}}).
-spec enum_name_to_fqbin(_) -> no_return().
enum_name_to_fqbin(E) ->
error({gpb_error, {badenum, E}}).
get_package_name() -> undefined.
%% Whether or not the message names
%% are prepended with package name or not.
uses_packages() -> false.
source_basename() -> "r3_hex_pb_versions.proto".
%% Retrieve all proto file names, also imported ones.
%% The order is top-down. The first element is always the main
%% source file. The files are returned with extension,
%% see get_all_proto_names/0 for a version that returns
%% the basenames sans extension
get_all_source_basenames() -> ["r3_hex_pb_versions.proto"].
%% Retrieve all proto file names, also imported ones.
%% The order is top-down. The first element is always the main
%% source file. The files are returned sans .proto extension,
%% to make it easier to use them with the various get_xyz_containment
%% functions.
get_all_proto_names() -> ["r3_hex_pb_versions"].
get_msg_containment("r3_hex_pb_versions") ->
['Package', 'Versions'];
get_msg_containment(P) ->
error({gpb_error, {badproto, P}}).
get_pkg_containment("r3_hex_pb_versions") -> undefined;
get_pkg_containment(P) ->
error({gpb_error, {badproto, P}}).
get_service_containment("r3_hex_pb_versions") -> [];
get_service_containment(P) ->
error({gpb_error, {badproto, P}}).
get_rpc_containment("r3_hex_pb_versions") -> [];
get_rpc_containment(P) ->
error({gpb_error, {badproto, P}}).
get_enum_containment("r3_hex_pb_versions") -> [];
get_enum_containment(P) ->
error({gpb_error, {badproto, P}}).
get_proto_by_msg_name_as_fqbin(<<"Versions">>) ->
"r3_hex_pb_versions";
get_proto_by_msg_name_as_fqbin(<<"Package">>) ->
"r3_hex_pb_versions";
get_proto_by_msg_name_as_fqbin(E) ->
error({gpb_error, {badmsg, E}}).
-spec get_proto_by_service_name_as_fqbin(_) -> no_return().
get_proto_by_service_name_as_fqbin(E) ->
error({gpb_error, {badservice, E}}).
-spec get_proto_by_enum_name_as_fqbin(_) -> no_return().
get_proto_by_enum_name_as_fqbin(E) ->
error({gpb_error, {badenum, E}}).
-spec get_protos_by_pkg_name_as_fqbin(_) -> no_return().
get_protos_by_pkg_name_as_fqbin(E) ->
error({gpb_error, {badpkg, E}}).
gpb_version_as_string() ->
"4.3.1".
"4.10.0".
gpb_version_as_list() ->
[4,3,1].
[4,10,0].

+ 3
- 3
src/vendored/r3_hex_registry.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_registry).
-export([
@ -16,8 +16,8 @@
]).
-include_lib("public_key/include/public_key.hrl").
-type private_key() :: public_key:rsa_private_key() | binary().
-type public_key() :: public_key:rsa_public_key() | binary().
-type private_key() :: #'RSAPrivateKey'{} | binary().
-type public_key() :: #'RSAPublicKey'{} | binary().
%%====================================================================
%% API functions

+ 2
- 2
src/vendored/r3_hex_repo.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_repo).
-export([
@ -94,7 +94,7 @@ get_package(Config, Name) when is_binary(Name) and is_map(Config) ->
%% Examples:
%%
%% ```
%% > {ok, {200, _, Tarball}} = r3_hex_repo:get_tarball(<<"package1">>, <<"1.0.0">>, r3_hex_core:default_config()),
%% > {ok, {200, _, Tarball}} = r3_hex_repo:get_tarball(r3_hex_core:default_config(), <<"package1">>, <<"1.0.0">>),
%% > {ok, #{metadata := Metadata}} = r3_hex_tarball:unpack(Tarball, memory).
%% '''
%% @end

+ 2
- 2
src/vendored/r3_hex_tarball.erl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_tarball).
-export([create/2, create/3, create_docs/1, create_docs/2, unpack/2, unpack/3,
@ -31,7 +31,7 @@
%% Creates a package tarball.
%%
%% Returns the binary of the tarball the "inner checksum" and "outer checksum".
%% The inner checksum is deprecated in favor of the inner checksum.
%% The inner checksum is deprecated in favor of the outer checksum.
%%
%% Examples:
%%

+ 1
- 1
src/vendored/r3_safe_erl_term.xrl Bestand weergeven

@ -1,4 +1,4 @@
%% Vendored from hex_core v0.7.0, do not edit manually
%% Vendored from hex_core v0.7.1, do not edit manually
%%% Author : Robert Virding
%%% Purpose : Token definitions for Erlang.

+ 1
- 1
vendor_hex_core.sh Bestand weergeven

@ -14,5 +14,5 @@ TARGET_ERLANG_VERSION=19
export TARGET_ERLANG_VERSION
rebar3 as dev compile
./vendor.sh src r3_
find src -regex '.*r3_.*' -exec mv -f {} "$REBAR3_TOP/src" \;
find src -regex '.*r3_.*' -exec mv -f {} "$REBAR3_TOP/src/vendored" \;
popd

Laden…
Annuleren
Opslaan