Skip to content

Commit 54b7da1

Browse files
committed
Make version check script more explicit
Instead of calling ]up, it calls ]add Turing@<desired_version>, which more closely matches our intentions
1 parent 8911dac commit 54b7da1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/version_check.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ if ENV["TARGET_IS_MASTER"] == "true"
107107
println("$(MANIFEST_TOML_PATH) is out of date; updating")
108108
old_env = Pkg.project().path
109109
Pkg.activate(".")
110-
Pkg.update()
110+
try
111+
Pkg.add(name="Turing", version=latest_version)
112+
catch e
113+
# If the Manifest couldn't be updated, the error will be shown later
114+
println(e)
115+
end
111116
# Check if versions match now, error if not
112117
Pkg.activate(old_env)
113118
manifest_toml = TOML.parsefile(MANIFEST_TOML_PATH)

0 commit comments

Comments
 (0)