Skip to content

Commit 333b210

Browse files
authored
When installing the BrokenRecord test dep, install the exact version
1 parent 029b562 commit 333b210

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/runtests.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ ENV["JULIA_PKG_SERVER"] = ""
1919
@static if v"1.6-" <= Base.VERSION < v"1.11"
2020
# BrokenRecord fails to precompile on Julia 1.11
2121
let
22-
brokenrecord = Pkg.PackageSpec(name = "BrokenRecord", uuid = "bdd55f5b-6e67-4da1-a080-6086e55655a0", version = "0.1.9")
23-
jld2 = Pkg.PackageSpec(name = "JLD2", uuid = "033835bb-8acc-5ee8-8aae-3f567f8a3819", version = "0.4.33")
22+
# The use of `VersionNumber`s here (e.g. `version = v"foo.bar.baz"`) tells Pkg to install the exact version.
23+
brokenrecord = Pkg.PackageSpec(name = "BrokenRecord", uuid = "bdd55f5b-6e67-4da1-a080-6086e55655a0", version = v"0.1.9")
24+
jld2 = Pkg.PackageSpec(name = "JLD2", uuid = "033835bb-8acc-5ee8-8aae-3f567f8a3819", version = v"0.4.33")
2425
pkgs = [brokenrecord, jld2]
2526
Pkg.add(pkgs)
2627
end

0 commit comments

Comments
 (0)