From a6792a273fe55c28f327268a9806f3a69b2f8ff4 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Wed, 6 Mar 2024 18:04:47 -0500 Subject: [PATCH] fix(gleam) `test` is a reserved word in v1. closes #5436 --- projects/gleam.run/package.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/projects/gleam.run/package.yml b/projects/gleam.run/package.yml index 57520938..d9927cb1 100644 --- a/projects/gleam.run/package.yml +++ b/projects/gleam.run/package.yml @@ -13,21 +13,20 @@ build: dependencies: rust-lang.org: '>=1.60' rust-lang.org/cargo: '*' - script: - cargo install --path compiler-cli --force --locked --root {{prefix}} + script: cargo install --path compiler-cli --force --locked --root {{prefix}} test: dependencies: erlang.org: '*' - script: | - gleam --version - gleam new test - cp $FIXTURE test/src/test.gleam - cd test - gleam run | grep "Hello, world!" - fixture: | - import gleam/io + script: + - gleam --version + - gleam new pkgx_test_project + - run: cp $FIXTURE pkgx_test_project/src/pkgx_test_project.gleam + fixture: | + import gleam/io - pub fn main() { - io.print("Hello, world!") - } \ No newline at end of file + pub fn main() { + io.print("Hello, world!") + } + - run: gleam run | grep "Hello, world!" + working-directory: pkgx_test_project