Skip to content

Commit 3148bab

Browse files
authored
Merge pull request #128 from codecrafters-io/uprade-gleam-to-1.91
Upgrade Gleam to 1.91
2 parents cedf956 + 0ac7a51 commit 3148bab

File tree

11 files changed

+29
-12
lines changed

11 files changed

+29
-12
lines changed

compiled_starters/gleam/.codecrafters/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
exec gleam run --module main -- "$@"
11+
exec gleam run --no-print-progress --module main -- "$@"

compiled_starters/gleam/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Time to move on to the next stage!
3131

3232
Note: This section is for stages 2 and beyond.
3333

34-
1. Ensure you have `gleam (1.9.1)` installed locally
34+
1. Ensure you have `gleam (1.11.1)` installed locally
3535
1. Run `./your_program.sh` to run your program, which is implemented in
3636
`src/main.gleam`.
3737
1. Commit your changes and run `git push origin master` to submit your solution

compiled_starters/gleam/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Gleam version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: gleam-1.9
11-
language_pack: gleam-1.9
10+
# Available versions: gleam-1.11
11+
language_pack: gleam-1.11

compiled_starters/gleam/your_program.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ set -e # Exit early if any commands fail
2121
#
2222
# - Edit this to change how your program runs locally
2323
# - Edit .codecrafters/run.sh to change how your program runs remotely
24-
exec gleam run --module main -- "$@"
24+
exec gleam run --no-print-progress --module main -- "$@"

dockerfiles/gleam-1.11.Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# syntax=docker/dockerfile:1.7-labs
2+
FROM ghcr.io/gleam-lang/gleam:v1.11.1-erlang-alpine
3+
4+
# Rebuild if gleam.toml or manifest.toml change
5+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="gleam.toml,manifest.toml"
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+
# Force deps to be downloaded
13+
RUN gleam build
14+
15+
# Cache build directory
16+
RUN mkdir -p /app-cached
17+
RUN mv build /app-cached/build

solutions/gleam/01-at4/code/.codecrafters/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
exec gleam run --module main -- "$@"
11+
exec gleam run --no-print-progress --module main -- "$@"

solutions/gleam/01-at4/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Time to move on to the next stage!
3131

3232
Note: This section is for stages 2 and beyond.
3333

34-
1. Ensure you have `gleam (1.9.1)` installed locally
34+
1. Ensure you have `gleam (1.11.1)` installed locally
3535
1. Run `./your_program.sh` to run your program, which is implemented in
3636
`src/main.gleam`.
3737
1. Commit your changes and run `git push origin master` to submit your solution

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Gleam version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: gleam-1.9
11-
language_pack: gleam-1.9
10+
# Available versions: gleam-1.11
11+
language_pack: gleam-1.11

solutions/gleam/01-at4/code/your_program.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ set -e # Exit early if any commands fail
2121
#
2222
# - Edit this to change how your program runs locally
2323
# - Edit .codecrafters/run.sh to change how your program runs remotely
24-
exec gleam run --module main -- "$@"
24+
exec gleam run --no-print-progress --module main -- "$@"

starter_templates/gleam/code/.codecrafters/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
exec gleam run --module main -- "$@"
11+
exec gleam run --no-print-progress --module main -- "$@"

starter_templates/gleam/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
attributes:
2-
required_executable: gleam (1.9.1)
2+
required_executable: gleam (1.11.1)
33
user_editable_file: src/main.gleam

0 commit comments

Comments
 (0)