@@ -286,7 +286,7 @@ get_module_info(Module) ->
286
286
exports_md5_info (Struct , Def , Defmacro ) ->
287
287
% % Deprecations do not need to be part of exports_md5 because it is always
288
288
% % checked by the runtime pass, so it is not really part of compilation.
289
- Md5 = erlang :md5 (erlang : term_to_binary ({Def , Defmacro , Struct })),
289
+ Md5 = erlang :md5 (term_to_binary ({Def , Defmacro , Struct }, [ deterministic ] )),
290
290
{clause , 0 , [{atom , 0 , exports_md5 }], [], [elixir_to_erl (Md5 )]}.
291
291
292
292
functions_info (Def ) ->
@@ -481,7 +481,7 @@ docs_chunk(Set, Module, Line, Def, Defmacro, Types, Callbacks) ->
481
481
ModuleDoc ,
482
482
ModuleDocMeta ,
483
483
FunctionDocs ++ MacroDocs ++ CallbackDocs ++ TypeDocs
484
- }, [compressed ]),
484
+ }, [deterministic , compressed ]),
485
485
486
486
[{<<" Docs" >>, DocsChunkData }];
487
487
@@ -585,7 +585,7 @@ checker_chunk(#{definitions := Definitions, deprecated := Deprecated, defines_be
585
585
exports => lists :sort (behaviour_info_exports (DefinesBehaviour ) ++ Exports )
586
586
},
587
587
588
- [{<<" ExCk" >>, erlang : term_to_binary ({elixir_checker_v1 , Contents })}].
588
+ [{<<" ExCk" >>, term_to_binary ({elixir_checker_v1 , Contents }, [ deterministic ] )}].
589
589
590
590
behaviour_info_exports (true ) -> [{{behaviour_info , 1 }, #{kind => def , deprecated_reason => nil }}];
591
591
behaviour_info_exports (false ) -> [].
0 commit comments