Skip to content

Commit

Permalink
Update Elixir version and update from Mix.Config to Config
Browse files Browse the repository at this point in the history
This updates the elixir version in the Dockerfile, and also
adopts the new `Config` module in order to avoid
deprecation warnings

Note:  We should seriously consider removing `config` entirely from the
project as config is global state and is not the preferred way to do
things for libraries now.
See: elixir-lang/elixir#8815
  • Loading branch information
FreedomBen committed Apr 14, 2022
1 parent e4584e5 commit 8b796cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,4 +1,4 @@
FROM elixir:1.7.4-alpine
FROM elixir:1.13.2-alpine

RUN mix local.hex --force && \
mix local.rebar --force
Expand Down
4 changes: 2 additions & 2 deletions config/config.exs
@@ -1,6 +1,6 @@
import Config

if Mix.env() == :test do
if config_env() == :test do
config :logger, level: :error

config :k8s,
Expand All @@ -15,7 +15,7 @@ if Mix.env() == :test do
api_version: "apiextensions.k8s.io/v1beta1"
end

if Mix.env() == :dev do
if config_env() == :dev do
config :logger, level: :debug

config :mix_test_watch,
Expand Down

0 comments on commit 8b796cb

Please sign in to comment.