Skip to content

Commit 65e9053

Browse files
committed
Fix bug in packbeam create
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]>
1 parent d4346b9 commit 65e9053

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/packbeam.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ do_create(Opts, Args) ->
184184
OutputFile, InputFiles,
185185
#{
186186
prune => maps:get(prune, Opts, false),
187-
start => maps:get(start, Opts, undefined),
187+
start_module => maps:get(start_module, Opts, undefined),
188188
include_lines => not maps:get(remove_lines, Opts, false)
189189
}
190190
),

src/packbeam_api.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ create(OutputPath, InputPaths, Options) ->
120120
start_module := StartModule,
121121
application_module := ApplicationModule,
122122
include_lines := IncludeLines
123-
} = Options,
123+
} = maps:merge(?DEFAULT_OPTIONS, Options),
124124
ParsedFiles = parse_files(InputPaths, StartModule, IncludeLines),
125125
write_packbeam(
126126
OutputPath,

0 commit comments

Comments
 (0)