Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mix.exs assemble steps for windows #573

Merged
merged 1 commit into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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