diff --git a/.github/workflows/run_test_case.yaml b/.github/workflows/run_test_case.yaml index 5cdc408..6ef293f 100644 --- a/.github/workflows/run_test_case.yaml +++ b/.github/workflows/run_test_case.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - erlang-vsn: ['26', '27'] + erlang-vsn: ['27', '28'] container: image: erlang:${{ matrix.erlang-vsn }} diff --git a/rebar.config b/rebar.config index 06c0fb9..fdd42c4 100644 --- a/rebar.config +++ b/rebar.config @@ -2,7 +2,7 @@ {deps, [ {getopt, "1.0.3"}, - {typerefl, {git, "https://github.com/ieQu1/typerefl.git", {tag, "0.9.6"}}} + {typerefl, {git, "https://github.com/ieQu1/typerefl.git", {tag, "0.9.7"}}} ]}. {edoc_opts, [{preprocess, true}]}. diff --git a/src/hocon_schema_example.erl b/src/hocon_schema_example.erl index 73e943e..b2f5854 100644 --- a/src/hocon_schema_example.erl +++ b/src/hocon_schema_example.erl @@ -15,6 +15,7 @@ %%-------------------------------------------------------------------- -module(hocon_schema_example). +-compile({no_auto_import, [link/2]}). -include_lib("hocon/include/hoconsc.hrl"). -elvis([{elvis_style, dont_repeat_yourself, disable}]). diff --git a/src/hocon_tconf.erl b/src/hocon_tconf.erl index 27c3791..bb2dc63 100644 --- a/src/hocon_tconf.erl +++ b/src/hocon_tconf.erl @@ -983,7 +983,7 @@ apply_env(Ns, [{VarName, V} | More], RootNames, Conf, Opts) -> %% match [_ | _] here because the name is already validated [_ | _] = Path0 = env_name_to_path(Ns, VarName), NewConf = - case Path0 =/= [] andalso lists:member(bin(hd(Path0)), RootNames) of + case lists:member(bin(hd(Path0)), RootNames) of true -> Path = lists:flatten(string:join(Path0, ".")), do_apply_env(VarName, V, Path, Conf, Opts);