Skip to content

Commit

Permalink
fix mix.exs assemble steps for windows (#573)
Browse files Browse the repository at this point in the history
Signed-off-by: pgray <[email protected]>
  • Loading branch information
Patrick Gray authored Mar 15, 2023
1 parent 5f90435 commit c7106c0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion host_core/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@ defmodule HostCore.MixProject do
],
releases: [
host_core: [
steps: [:assemble, &Bakeware.assemble/1]
steps: conditional_steps()
]
],
dialyzer: [plt_add_deps: :apps_direct]
]
end

# TODO https://github.com/wasmCloud/wasmcloud-otp/issues/570
defp conditional_steps do
case :os.type() do
{:unix, _} -> [:assemble, &Bakeware.assemble/1]
_ -> [:assemble]
end
end

# In order to ensure that TLS cert check starts before the otel applications,
# we disable auto-start from dependencies and start them in explicit order in the
# application function
Expand Down
10 changes: 9 additions & 1 deletion wasmcloud_host/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ defmodule WasmcloudHost.MixProject do
aliases: aliases(),
releases: [
wasmcloud_host: [
steps: [:assemble, &Bakeware.assemble/1]
steps: conditional_steps()
]
],
deps: deps()
]
end

# TODO https://github.com/wasmCloud/wasmcloud-otp/issues/570
defp conditional_steps do
case :os.type() do
{:unix, _} -> [:assemble, &Bakeware.assemble/1]
_ -> [:assemble]
end
end

# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
Expand Down

0 comments on commit c7106c0

Please sign in to comment.