File rebar3-3.26.0-doc.patch of Package rebar3
diff -Ndurp rebar3-3.26.0/apps/rebar/src/rebar_agent.erl rebar3-3.26.0-doc/apps/rebar/src/rebar_agent.erl
--- rebar3-3.26.0/apps/rebar/src/rebar_agent.erl 2026-01-08 02:29:00.000000000 +0200
+++ rebar3-3.26.0-doc/apps/rebar/src/rebar_agent.erl 2026-01-16 01:15:35.819633084 +0200
@@ -290,9 +290,9 @@ reload_modules(Modules0) ->
Modules = [M || M <- Modules0, is_changed(M)],
reload_modules(Modules, erlang:function_exported(code, prepare_loading, 1)).
-%% @spec is_changed(atom()) -> boolean()
%% @doc true if the loaded module is a beam with a vsn attribute
%% and does not match the on-disk beam file, returns false otherwise.
+-spec is_changed(atom()) -> boolean().
is_changed(M) ->
try
module_vsn(M:module_info(attributes)) =/= module_vsn(code:get_object_code(M))
diff -Ndurp rebar3-3.26.0/apps/rebar/src/rebar_file_utils.erl rebar3-3.26.0-doc/apps/rebar/src/rebar_file_utils.erl
--- rebar3-3.26.0/apps/rebar/src/rebar_file_utils.erl 2026-01-08 02:29:00.000000000 +0200
+++ rebar3-3.26.0-doc/apps/rebar/src/rebar_file_utils.erl 2026-01-16 01:17:45.112665009 +0200
@@ -86,7 +86,7 @@ consult_config(State, Filename) ->
consult_config_terms(State, Config).
%% @doc Reads a config file via consult_env_config/2 if the file name has
-%% the suffix `.src`, and with consult_config/2 otherwise
+%% the suffix `.src', and with consult_config/2 otherwise
-spec consult_any_config(rebar_state:t(), file:filename()) -> [[tuple()]].
consult_any_config(State, Filename) ->
case is_src_config(Filename) of