Skip to content

Commit

Permalink
Fix bug in packbeam create
Browse files Browse the repository at this point in the history
Fixes bug in `packbeam create` command that casues the creation to fail if
the `application_module` is not defined, due to not utilizing the default
options.

Signed-off-by: Winford <[email protected]>
  • Loading branch information
UncleGrumpy committed Jun 2, 2024
1 parent d4346b9 commit 65e9053
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packbeam.erl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ do_create(Opts, Args) ->
OutputFile, InputFiles,
#{
prune => maps:get(prune, Opts, false),
start => maps:get(start, Opts, undefined),
start_module => maps:get(start_module, Opts, undefined),
include_lines => not maps:get(remove_lines, Opts, false)
}
),
Expand Down
2 changes: 1 addition & 1 deletion src/packbeam_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ create(OutputPath, InputPaths, Options) ->
start_module := StartModule,
application_module := ApplicationModule,
include_lines := IncludeLines
} = Options,
} = maps:merge(?DEFAULT_OPTIONS, Options),
ParsedFiles = parse_files(InputPaths, StartModule, IncludeLines),
write_packbeam(
OutputPath,
Expand Down

0 comments on commit 65e9053

Please sign in to comment.