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 @@ -358,6 +358,13 @@ defmodule Mix.Tasks.Deps.Compile do
358
358
src = Path . join ( build , "_gleam_artefacts" )
359
359
File . mkdir ( Path . join ( build , "ebin" ) )
360
360
361
+ # Remove per-environment segment from the path since ProjectStack.push below will append it
362
+ build_path =
363
+ Mix.Project . build_path ( )
364
+ |> Path . split ( )
365
+ |> Enum . drop ( - 1 )
366
+ |> Path . join ( )
367
+
361
368
config =
362
369
Mix.Project . deps_config ( )
363
370
|> Keyword . merge (
@@ -366,8 +373,7 @@ defmodule Mix.Tasks.Deps.Compile do
366
373
deps: toml . deps ,
367
374
build_per_environment: true ,
368
375
lockfile: "mix.lock" ,
369
- # Remove per-environment segment from the path since ProjectStack.push below will append it
370
- build_path: Mix.Project . build_path ( ) |> Path . split ( ) |> Enum . drop ( - 1 ) |> Path . join ( ) ,
376
+ build_path: build_path ,
371
377
build_scm: dep . scm ,
372
378
deps_path: deps_path ,
373
379
deps_app_path: build ,
@@ -376,10 +382,10 @@ defmodule Mix.Tasks.Deps.Compile do
376
382
erlc_include_path: Path . join ( build , "include" )
377
383
)
378
384
379
- env = dep . opts [ :env ] || :prod
380
385
old_env = Mix . env ( )
381
386
382
387
try do
388
+ env = dep . opts [ :env ] || :prod
383
389
Mix . env ( env )
384
390
Mix.ProjectStack . push ( dep . app , config , "nofile" )
385
391
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