Skip to content

Commit 21e949c

Browse files
committed
Pinpoint gleam deps to avoid brittle tests
1 parent da217a1 commit 21e949c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/mix/test/fixtures/gleam_dep/gleam.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ version = "1.0.0"
1313
# https://gleam.run/writing-gleam/gleam-toml/.
1414

1515
[dependencies]
16-
gleam_stdlib = ">= 0.44.0 and < 2.0.0"
17-
gleam_otp = ">= 0.16.1 and < 1.0.0"
16+
gleam_stdlib = "0.59.0"
17+
gleam_otp = "0.16.1"
1818

1919
[dev-dependencies]
2020
gleeunit = ">= 1.0.0 and < 2.0.0"

lib/mix/test/fixtures/subfolder/deeper_gleam_dep/gleam.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ version = "1.0.0"
1414

1515
[dependencies]
1616
gleam_dep = { path = "../../gleam_dep" }
17-
gleam_stdlib = ">= 0.59.0 and < 1.0.0"
17+
gleam_stdlib = "0.59.0"

lib/mix/test/mix/gleam_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ defmodule Mix.GleamTest do
2828
config = Mix.Gleam.load_config(path)
2929

3030
expected = [
31-
{:gleam_stdlib, ">= 0.44.0 and < 2.0.0"},
32-
{:gleam_otp, ">= 0.16.1 and < 1.0.0"},
31+
{:gleam_stdlib, "0.59.0"},
32+
{:gleam_otp, "0.16.1"},
3333
{:gleeunit, ">= 1.0.0 and < 2.0.0", only: [:dev, :test]}
3434
]
3535

0 commit comments

Comments
 (0)