Skip to content

Commit 8b2f977

Browse files
committed
chore: upgrade Elixir version to 1.18 in configuration files
- Updated the Elixir version from 1.17 to 1.18 in codecrafters.yml and mix.exs files across multiple directories to ensure compatibility with the latest features and improvements.
1 parent b682baa commit 8b2f977

File tree

6 files changed

+32
-7
lines changed

6 files changed

+32
-7
lines changed

compiled_starters/elixir/codecrafters.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Elixir version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: elixir-1.17
11-
language_pack: elixir-1.17
10+
# Available versions: elixir-1.18
11+
language_pack: elixir-1.18

compiled_starters/elixir/mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule App.MixProject do
66
[
77
app: :codecrafters_http_server,
88
version: "1.0.0",
9-
elixir: "~> 1.17",
9+
elixir: "~> 1.18",
1010
start_permanent: Mix.env() == :prod,
1111
deps: deps(),
1212
escript: [main_module: CLI]

dockerfiles/elixir-1.18.Dockerfile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# syntax=docker/dockerfile:1.7-labs
2+
FROM elixir:1.18.3-alpine
3+
4+
# Ensures the container is re-built if dependency files change
5+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="mix.exs"
6+
7+
WORKDIR /app
8+
9+
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10+
COPY --exclude=.git --exclude=README.md . /app
11+
12+
# install hex + rebar
13+
RUN mix local.hex --force && \
14+
mix local.rebar --force
15+
16+
# install and compile mix dependencies
17+
RUN mix deps.get && \
18+
mix deps.compile
19+
20+
# Install & cache deps
21+
RUN .codecrafters/compile.sh
22+
23+
RUN mkdir -p /app-cached
24+
RUN if [ -d "/app/_build" ]; then mv /app/_build /app-cached; fi
25+
RUN if [ -d "/app/deps" ]; then mv /app/deps /app-cached; fi

solutions/elixir/01-at4/code/codecrafters.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Elixir version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: elixir-1.17
11-
language_pack: elixir-1.17
10+
# Available versions: elixir-1.18
11+
language_pack: elixir-1.18

solutions/elixir/01-at4/code/mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule App.MixProject do
66
[
77
app: :codecrafters_http_server,
88
version: "1.0.0",
9-
elixir: "~> 1.17",
9+
elixir: "~> 1.18",
1010
start_permanent: Mix.env() == :prod,
1111
deps: deps(),
1212
escript: [main_module: CLI]

starter_templates/elixir/code/mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule App.MixProject do
66
[
77
app: :codecrafters_http_server,
88
version: "1.0.0",
9-
elixir: "~> 1.17",
9+
elixir: "~> 1.18",
1010
start_permanent: Mix.env() == :prod,
1111
deps: deps(),
1212
escript: [main_module: CLI]

0 commit comments

Comments
 (0)