Skip to content

Commit 482c439

Browse files
committed
Use the Config module instead of Mix.Config is deprecated
Gets rid of: warning: use Mix.Config is deprecated. Use the Config module instead config/config.exs:3
1 parent cbd2fb6 commit 482c439

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

config/config.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is responsible for configuring your application
2-
# and its dependencies with the aid of the Mix.Config module.
3-
use Mix.Config
2+
# and its dependencies with the aid of the Config module.
3+
import Config
44

55
# This configuration is loaded before any dependency and is restricted
66
# to this project. If another project depends on this project, this
@@ -27,4 +27,4 @@ use Mix.Config
2727
# Configuration from the imported file will override the ones defined
2828
# here (which is why it is important to import them last).
2929
#
30-
# import_config "#{Mix.env()}.exs"
30+
# import_config "#{config_env()}.exs"

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule ExAtomVM.MixProject do
55
[
66
app: :exatomvm,
77
version: "0.1.0",
8-
elixir: "~> 1.8",
8+
elixir: "~> 1.9",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps()
1111
]
@@ -21,7 +21,7 @@ defmodule ExAtomVM.MixProject do
2121
# Run "mix help deps" to learn about dependencies.
2222
defp deps do
2323
[
24-
{:uf2tool, "1.1.0"}
24+
{:uf2tool, "1.1.0"}
2525
# {:dep_from_hexpm, "~> 0.3.0"},
2626
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
2727
]

mix.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
%{
2+
"uf2tool": {:hex, :uf2tool, "1.1.0", "7091931234ca5a256b66ea691983867d51229798622d083f85c1ad779798a734", [:rebar3], [], "hexpm", "1a7e5ca7ef3d19c7a0b0acf3db804b3188e0980884acffa13fd57d733507b73d"},
3+
}

0 commit comments

Comments
 (0)