File tree Expand file tree Collapse file tree 11 files changed +29
-12
lines changed
solutions/gleam/01-at4/code Expand file tree Collapse file tree 11 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 8
8
9
9
set -e # Exit on failure
10
10
11
- exec gleam run --module main -- " $@ "
11
+ exec gleam run --no-print-progress -- module main -- " $@ "
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Time to move on to the next stage!
31
31
32
32
Note: This section is for stages 2 and beyond.
33
33
34
- 1 . Ensure you have ` gleam (1.9 .1) ` installed locally
34
+ 1 . Ensure you have ` gleam (1.11 .1) ` installed locally
35
35
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
36
36
` src/main.gleam ` .
37
37
1 . Commit your changes and run ` git push origin master ` to submit your solution
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Gleam version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: gleam-1.9
11
- language_pack : gleam-1.9
10
+ # Available versions: gleam-1.11
11
+ language_pack : gleam-1.11
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ set -e # Exit early if any commands fail
21
21
#
22
22
# - Edit this to change how your program runs locally
23
23
# - 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 -- " $@ "
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 8
8
9
9
set -e # Exit on failure
10
10
11
- exec gleam run --module main -- " $@ "
11
+ exec gleam run --no-print-progress -- module main -- " $@ "
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Time to move on to the next stage!
31
31
32
32
Note: This section is for stages 2 and beyond.
33
33
34
- 1 . Ensure you have ` gleam (1.9 .1) ` installed locally
34
+ 1 . Ensure you have ` gleam (1.11 .1) ` installed locally
35
35
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
36
36
` src/main.gleam ` .
37
37
1 . Commit your changes and run ` git push origin master ` to submit your solution
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Gleam version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: gleam-1.9
11
- language_pack : gleam-1.9
10
+ # Available versions: gleam-1.11
11
+ language_pack : gleam-1.11
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ set -e # Exit early if any commands fail
21
21
#
22
22
# - Edit this to change how your program runs locally
23
23
# - 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 -- " $@ "
Original file line number Diff line number Diff line change 8
8
9
9
set -e # Exit on failure
10
10
11
- exec gleam run --module main -- " $@ "
11
+ exec gleam run --no-print-progress -- module main -- " $@ "
Original file line number Diff line number Diff line change 1
1
attributes :
2
- required_executable : gleam (1.9 .1)
2
+ required_executable : gleam (1.11 .1)
3
3
user_editable_file : src/main.gleam
You can’t perform that action at this time.
0 commit comments