diff --git a/compiled_starters/gleam/.codecrafters/run.sh b/compiled_starters/gleam/.codecrafters/run.sh index 8d39ab0..76f277c 100755 --- a/compiled_starters/gleam/.codecrafters/run.sh +++ b/compiled_starters/gleam/.codecrafters/run.sh @@ -8,4 +8,4 @@ set -e # Exit on failure -exec gleam run --module main -- "$@" +exec gleam run --no-print-progress --module main -- "$@" diff --git a/compiled_starters/gleam/README.md b/compiled_starters/gleam/README.md index e18627c..112932f 100644 --- a/compiled_starters/gleam/README.md +++ b/compiled_starters/gleam/README.md @@ -31,7 +31,7 @@ Time to move on to the next stage! Note: This section is for stages 2 and beyond. -1. Ensure you have `gleam (1.9.1)` installed locally +1. Ensure you have `gleam (1.11.1)` installed locally 1. Run `./your_program.sh` to run your program, which is implemented in `src/main.gleam`. 1. Commit your changes and run `git push origin master` to submit your solution diff --git a/compiled_starters/gleam/codecrafters.yml b/compiled_starters/gleam/codecrafters.yml index 54d51c3..fa92959 100644 --- a/compiled_starters/gleam/codecrafters.yml +++ b/compiled_starters/gleam/codecrafters.yml @@ -7,5 +7,5 @@ debug: false # Use this to change the Gleam version used to run your code # on Codecrafters. # -# Available versions: gleam-1.9 -language_pack: gleam-1.9 +# Available versions: gleam-1.11 +language_pack: gleam-1.11 diff --git a/compiled_starters/gleam/your_program.sh b/compiled_starters/gleam/your_program.sh index 3dea0f5..2ce7e12 100755 --- a/compiled_starters/gleam/your_program.sh +++ b/compiled_starters/gleam/your_program.sh @@ -21,4 +21,4 @@ set -e # Exit early if any commands fail # # - Edit this to change how your program runs locally # - Edit .codecrafters/run.sh to change how your program runs remotely -exec gleam run --module main -- "$@" +exec gleam run --no-print-progress --module main -- "$@" diff --git a/dockerfiles/gleam-1.11.Dockerfile b/dockerfiles/gleam-1.11.Dockerfile new file mode 100644 index 0000000..024f46d --- /dev/null +++ b/dockerfiles/gleam-1.11.Dockerfile @@ -0,0 +1,17 @@ +# syntax=docker/dockerfile:1.7-labs +FROM ghcr.io/gleam-lang/gleam:v1.11.1-erlang-alpine + +# Rebuild if gleam.toml or manifest.toml change +ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="gleam.toml,manifest.toml" + +WORKDIR /app + +# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses +COPY --exclude=.git --exclude=README.md . /app + +# Force deps to be downloaded +RUN gleam build + +# Cache build directory +RUN mkdir -p /app-cached +RUN mv build /app-cached/build diff --git a/solutions/gleam/01-at4/code/.codecrafters/run.sh b/solutions/gleam/01-at4/code/.codecrafters/run.sh index 8d39ab0..76f277c 100755 --- a/solutions/gleam/01-at4/code/.codecrafters/run.sh +++ b/solutions/gleam/01-at4/code/.codecrafters/run.sh @@ -8,4 +8,4 @@ set -e # Exit on failure -exec gleam run --module main -- "$@" +exec gleam run --no-print-progress --module main -- "$@" diff --git a/solutions/gleam/01-at4/code/README.md b/solutions/gleam/01-at4/code/README.md index e18627c..112932f 100644 --- a/solutions/gleam/01-at4/code/README.md +++ b/solutions/gleam/01-at4/code/README.md @@ -31,7 +31,7 @@ Time to move on to the next stage! Note: This section is for stages 2 and beyond. -1. Ensure you have `gleam (1.9.1)` installed locally +1. Ensure you have `gleam (1.11.1)` installed locally 1. Run `./your_program.sh` to run your program, which is implemented in `src/main.gleam`. 1. Commit your changes and run `git push origin master` to submit your solution diff --git a/solutions/gleam/01-at4/code/codecrafters.yml b/solutions/gleam/01-at4/code/codecrafters.yml index 54d51c3..fa92959 100644 --- a/solutions/gleam/01-at4/code/codecrafters.yml +++ b/solutions/gleam/01-at4/code/codecrafters.yml @@ -7,5 +7,5 @@ debug: false # Use this to change the Gleam version used to run your code # on Codecrafters. # -# Available versions: gleam-1.9 -language_pack: gleam-1.9 +# Available versions: gleam-1.11 +language_pack: gleam-1.11 diff --git a/solutions/gleam/01-at4/code/your_program.sh b/solutions/gleam/01-at4/code/your_program.sh index 3dea0f5..2ce7e12 100755 --- a/solutions/gleam/01-at4/code/your_program.sh +++ b/solutions/gleam/01-at4/code/your_program.sh @@ -21,4 +21,4 @@ set -e # Exit early if any commands fail # # - Edit this to change how your program runs locally # - Edit .codecrafters/run.sh to change how your program runs remotely -exec gleam run --module main -- "$@" +exec gleam run --no-print-progress --module main -- "$@" diff --git a/starter_templates/gleam/code/.codecrafters/run.sh b/starter_templates/gleam/code/.codecrafters/run.sh index 8d39ab0..76f277c 100755 --- a/starter_templates/gleam/code/.codecrafters/run.sh +++ b/starter_templates/gleam/code/.codecrafters/run.sh @@ -8,4 +8,4 @@ set -e # Exit on failure -exec gleam run --module main -- "$@" +exec gleam run --no-print-progress --module main -- "$@" diff --git a/starter_templates/gleam/config.yml b/starter_templates/gleam/config.yml index d08e9ee..40ffaff 100644 --- a/starter_templates/gleam/config.yml +++ b/starter_templates/gleam/config.yml @@ -1,3 +1,3 @@ attributes: - required_executable: gleam (1.9.1) + required_executable: gleam (1.11.1) user_editable_file: src/main.gleam