File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed
subfolder/deeper_gleam_dep Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,9 @@ defmodule Mix.Tasks.Compile.App do
270
270
271
271
defp merge_project_application ( best_guess , _project , application ) do
272
272
if not Keyword . keyword? ( application ) do
273
- Mix . raise ( "Application configuration passed as :application should be a keyword list" )
273
+ Mix . raise (
274
+ "Application configuration passed as :application should be a keyword list, , got: #{ inspect ( application ) } "
275
+ )
274
276
end
275
277
276
278
Keyword . merge ( best_guess , validate_properties! ( application ) )
Original file line number Diff line number Diff line change @@ -332,6 +332,13 @@ defmodule Mix.Tasks.Deps.Compile do
332
332
src = Path . join ( build , "_gleam_artefacts" )
333
333
File . mkdir ( Path . join ( build , "ebin" ) )
334
334
335
+ # Remove per-environment segment from the path since ProjectStack.push below will append it
336
+ build_path =
337
+ Mix.Project . build_path ( )
338
+ |> Path . split ( )
339
+ |> Enum . drop ( - 1 )
340
+ |> Path . join ( )
341
+
335
342
config =
336
343
Mix.Project . deps_config ( )
337
344
|> Keyword . merge (
@@ -340,8 +347,7 @@ defmodule Mix.Tasks.Deps.Compile do
340
347
deps: toml . deps ,
341
348
build_per_environment: true ,
342
349
lockfile: "mix.lock" ,
343
- # Remove per-environment segment from the path since ProjectStack.push below will append it
344
- build_path: Mix.Project . build_path ( ) |> Path . split ( ) |> Enum . drop ( - 1 ) |> Path . join ( ) ,
350
+ build_path: build_path ,
345
351
build_scm: dep . scm ,
346
352
deps_path: deps_path ,
347
353
deps_app_path: build ,
@@ -350,10 +356,10 @@ defmodule Mix.Tasks.Deps.Compile do
350
356
erlc_include_path: Path . join ( build , "include" )
351
357
)
352
358
353
- env = dep . opts [ :env ] || :prod
354
359
old_env = Mix . env ( )
355
360
356
361
try do
362
+ env = dep . opts [ :env ] || :prod
357
363
Mix . env ( env )
358
364
Mix.ProjectStack . push ( dep . app , config , "nofile" )
359
365
Original file line number Diff line number Diff line change 1
1
# The directory Mix will write compiled artifacts to.
2
2
/_build /
3
3
4
- # The directory gleam will write compiled artifacts to.
4
+ # The directory Gleam will write compiled artifacts to.
5
5
/build /
6
6
7
7
# If the VM crashes, it generates a dump, let's ignore it too.
Original file line number Diff line number Diff line change 1
1
# The directory Mix will write compiled artifacts to.
2
2
/_build /
3
3
4
- # The directory gleam will write compiled artifacts to.
4
+ # The directory Gleam will write compiled artifacts to.
5
5
/build /
6
6
7
7
# If the VM crashes, it generates a dump, let's ignore it too.
You can’t perform that action at this time.
0 commit comments