-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
110: Add up_deps script r=charleskawczynski a=charleskawczynski Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |