Skip to content

Commit

Permalink
Add up_deps script
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed May 27, 2022
1 parent 28092ee commit ed12b86
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .dev/up_deps.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#=
A simple script for updating the manifest
files in all of our environments.
=#

root = dirname(@__DIR__)
dirs = (
root,
joinpath(root, ".dev"),
joinpath(root, "test"),
joinpath(root, "perf"),
joinpath(root, "docs"),
joinpath(root, "gpuenv"),
)

cd(root) do
for dir in dirs
@info "Pkg.up for environment $dir"
cmd = `$(Base.julia_cmd()) --project=$dir -e 'import Pkg; Pkg.update()'`
run(cmd)
end
end

# https://github.com/JuliaLang/Pkg.jl/issues/3014
for dir in dirs
cd(dir) do
rm("LocalPreferences.toml"; force = true)
end
end

0 comments on commit ed12b86

Please sign in to comment.