From 59f4a7a4d27a76395844d279fe9b2d38ab4bd6b5 Mon Sep 17 00:00:00 2001 From: zmstone Date: Wed, 3 Dec 2025 13:03:52 +0100 Subject: [PATCH 1/3] fix: make it compile on otp 28 --- rebar.config | 2 +- src/hocon_schema_example.erl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index 06c0fb99..fdd42c46 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 73e943ef..b2f58549 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}]). From 01a82c6f2597800acb294f52c83a6fbeb8bc1094 Mon Sep 17 00:00:00 2001 From: zmstone Date: Wed, 3 Dec 2025 13:04:47 +0100 Subject: [PATCH 2/3] ci: add OTP 28 in ci --- .github/workflows/run_test_case.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_test_case.yaml b/.github/workflows/run_test_case.yaml index 5cdc4083..6ef293f9 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 }} From 8ebe07202818f0a440fbaf0c0d87d555c07d8f3b Mon Sep 17 00:00:00 2001 From: zmstone Date: Wed, 3 Dec 2025 13:10:12 +0100 Subject: [PATCH 3/3] fix: dialyzer found a always true bool expression --- src/hocon_tconf.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hocon_tconf.erl b/src/hocon_tconf.erl index 27c37914..bb2dc638 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);