Skip to content

Commit

Permalink
Make version check script more explicit
Browse files Browse the repository at this point in the history
Instead of calling ]up, it calls ]add Turing@<desired_version>, which
more closely matches our intentions
  • Loading branch information
penelopeysm committed Nov 26, 2024
1 parent 8911dac commit 54b7da1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/version_check.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ if ENV["TARGET_IS_MASTER"] == "true"
println("$(MANIFEST_TOML_PATH) is out of date; updating")
old_env = Pkg.project().path
Pkg.activate(".")
Pkg.update()
try
Pkg.add(name="Turing", version=latest_version)
catch e
# If the Manifest couldn't be updated, the error will be shown later
println(e)
end
# Check if versions match now, error if not
Pkg.activate(old_env)
manifest_toml = TOML.parsefile(MANIFEST_TOML_PATH)
Expand Down

0 comments on commit 54b7da1

Please sign in to comment.