From 8cf2311b7f8b8ac8f3b9d02aa55f1027f2f49c1e Mon Sep 17 00:00:00 2001 From: Isaac Van Doren <69181572+isaacvando@users.noreply.github.com> Date: Sat, 25 Jan 2025 18:32:28 -0600 Subject: [PATCH 1/4] upgrade dependencies and syntax --- bin/download-dependencies.roc | 17 ++++++++--------- tests/all-fail/all-fail-test.roc | 6 +++--- tests/partial-fail/partial-fail-test.roc | 6 +++--- tests/success/success-test.roc | 6 +++--- tests/syntax-error/syntax-error-test.roc | 6 +++--- 5 files changed, 20 insertions(+), 21 deletions(-) diff --git a/bin/download-dependencies.roc b/bin/download-dependencies.roc index 5f46488..54fae8e 100644 --- a/bin/download-dependencies.roc +++ b/bin/download-dependencies.roc @@ -1,13 +1,12 @@ -app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", - isodate: "https://github.com/Anton-4/roc-isodate/releases/download/0.6.0/_n7UX8f5aFVVIXNa2AtOCvd-dcU-n-fp-0o8d22fyuQ.tar.br", - json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.11.0/z45Wzc-J39TLNweQUoLw3IGZtkQiEN3lTBv3BXErRjQ.tar.br", - parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.9.0/w8YKp2YAgQt5REYk912HfKAHBjcXsrnvtjI0CBzoAT4.tar.br", - rand: "https://github.com/lukewilliamboswell/roc-random/releases/download/0.3.0/hPlOciYUhWMU7BefqNzL89g84-30fTE6l2_6Y3cxIcE.tar.br", - unicode: "https://github.com/roc-lang/unicode/releases/download/0.2.0/odvSckHK9LxWLbsrPmo2s6aQ3bn7C3PALyv0ZI1gAu0.tar.br", +app [main!] { + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br", + isodate: "https://github.com/imclerran/roc-isodate/releases/download/v0.6.0/79DATSmwkFXMsS0dF7w1RTHeQCGwFNzh9zylic4Fw9w.tar.br", + json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.12.0/1trwx8sltQ-e9Y2rOB4LWUWLS_sFVyETK8Twl0i9qpw.tar.gz", + parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.10.0/6eZYaXkrakq9fJ4oUc0VfdxU1Fap2iTuAN18q9OgQss.tar.br", + unicode: "https://github.com/roc-lang/unicode/releases/download/0.3.0/9KKFsA4CdOz0JIOL7iBSI_2jGIXQ6TsFBXgd086idpY.tar.br", } expect Bool.true -main = - Task.ok {} +main! = |_args| + Ok({}) diff --git a/tests/all-fail/all-fail-test.roc b/tests/all-fail/all-fail-test.roc index b54015d..1f6479a 100644 --- a/tests/all-fail/all-fail-test.roc +++ b/tests/all-fail/all-fail-test.roc @@ -1,7 +1,7 @@ -app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br" } expect 2 + 2 == 5 expect "four" == "five" -main = - Task.ok {} +main! = |_args| + Ok({}) diff --git a/tests/partial-fail/partial-fail-test.roc b/tests/partial-fail/partial-fail-test.roc index 18abe9c..71ef45b 100644 --- a/tests/partial-fail/partial-fail-test.roc +++ b/tests/partial-fail/partial-fail-test.roc @@ -1,7 +1,7 @@ -app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br" } expect 2 + 2 == 4 expect "hello" == "good bye" -main = - Task.ok {} +main! = |_args| + Ok({}) diff --git a/tests/success/success-test.roc b/tests/success/success-test.roc index 5efa950..24bed06 100644 --- a/tests/success/success-test.roc +++ b/tests/success/success-test.roc @@ -1,7 +1,7 @@ -app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br" } expect 2 + 2 == 4 expect "four" == "four" -main = - Task.ok {} +main! = |_args| + Ok({}) diff --git a/tests/syntax-error/syntax-error-test.roc b/tests/syntax-error/syntax-error-test.roc index fafe639..3661a48 100644 --- a/tests/syntax-error/syntax-error-test.roc +++ b/tests/syntax-error/syntax-error-test.roc @@ -1,9 +1,9 @@ -app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br" } import ( expect 2 + 2 == 5 expect "four" == "five" -main = - Task.ok {} +main! = |_args| + Ok({}) From 38c99eca9f18fc3ae190f9b3c63f7543ed1a1dfb Mon Sep 17 00:00:00 2001 From: Isaac Van Doren <69181572+isaacvando@users.noreply.github.com> Date: Tue, 28 Jan 2025 09:28:41 -0600 Subject: [PATCH 2/4] upgrade basic-cli --- bin/download-dependencies.roc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/download-dependencies.roc b/bin/download-dependencies.roc index 54fae8e..2a79e40 100644 --- a/bin/download-dependencies.roc +++ b/bin/download-dependencies.roc @@ -1,5 +1,5 @@ app [main!] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br", isodate: "https://github.com/imclerran/roc-isodate/releases/download/v0.6.0/79DATSmwkFXMsS0dF7w1RTHeQCGwFNzh9zylic4Fw9w.tar.br", json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.12.0/1trwx8sltQ-e9Y2rOB4LWUWLS_sFVyETK8Twl0i9qpw.tar.gz", parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.10.0/6eZYaXkrakq9fJ4oUc0VfdxU1Fap2iTuAN18q9OgQss.tar.br", From 5efb5f93930132c7747599c3d7c3c6897b2b9da4 Mon Sep 17 00:00:00 2001 From: Isaac Van Doren <69181572+isaacvando@users.noreply.github.com> Date: Tue, 28 Jan 2025 09:30:00 -0600 Subject: [PATCH 3/4] update the rest --- tests/all-fail/all-fail-test.roc | 2 +- tests/partial-fail/partial-fail-test.roc | 2 +- tests/success/success-test.roc | 2 +- tests/syntax-error/syntax-error-test.roc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/all-fail/all-fail-test.roc b/tests/all-fail/all-fail-test.roc index 1f6479a..5a51587 100644 --- a/tests/all-fail/all-fail-test.roc +++ b/tests/all-fail/all-fail-test.roc @@ -1,4 +1,4 @@ -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" } expect 2 + 2 == 5 expect "four" == "five" diff --git a/tests/partial-fail/partial-fail-test.roc b/tests/partial-fail/partial-fail-test.roc index 71ef45b..b7ee500 100644 --- a/tests/partial-fail/partial-fail-test.roc +++ b/tests/partial-fail/partial-fail-test.roc @@ -1,4 +1,4 @@ -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" } expect 2 + 2 == 4 expect "hello" == "good bye" diff --git a/tests/success/success-test.roc b/tests/success/success-test.roc index 24bed06..bbc590d 100644 --- a/tests/success/success-test.roc +++ b/tests/success/success-test.roc @@ -1,4 +1,4 @@ -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" } expect 2 + 2 == 4 expect "four" == "four" diff --git a/tests/syntax-error/syntax-error-test.roc b/tests/syntax-error/syntax-error-test.roc index 3661a48..fd214da 100644 --- a/tests/syntax-error/syntax-error-test.roc +++ b/tests/syntax-error/syntax-error-test.roc @@ -1,4 +1,4 @@ -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/bi5zubJ-_Hva9vxxPq4kNx4WHX6oFs8OP6Ad0tCYlrY.tar.br" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" } import ( From 9a469270dfe078c78cd852e167f06e19cf91a293 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Wed, 29 Jan 2025 20:11:26 +0100 Subject: [PATCH 4/4] use alpha2 release --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 94eb16a..3122710 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /opt/test-runner COPY bin/download-dependencies.roc bin/download-dependencies.roc # download & install roc and the basic-cli platform -RUN wget -q -O roc.tar.gz https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz \ +RUN wget -q -O roc.tar.gz https://github.com/roc-lang/roc/releases/download/0.0.0-alpha2-rolling/roc-linux_x86_64-0-alpha2-rolling.tar.gz \ && mkdir /usr/lib/roc \ && tar -xzf roc.tar.gz --directory /usr/lib/roc --strip-components=1 \ && rm roc.tar.gz \