Current section

Files

Jump to
nerves lib mix tasks nerves.deps.get.ex
Raw

lib/mix/tasks/nerves.deps.get.ex

# SPDX-FileCopyrightText: 2022 Jon Carstens
#
# SPDX-License-Identifier: Apache-2.0
#
defmodule Mix.Tasks.Nerves.Deps.Get do
@moduledoc false
use Mix.Task
import Mix.Nerves.IO
@impl Mix.Task
def run(_argv) do
debug_info("Nerves.Deps.Get Start")
nerves_env_info()
# We want to start Nerves.Env so it compiles `nerves`
# but pass --disable to prevent it from compiling
# the system and toolchain during this time.
Mix.Tasks.Nerves.Env.run(["--disable"])
Mix.Task.run("nerves.artifact.get", [])
debug_info("Nerves.Deps.Get End")
end
end