diff --git a/.dev/up_deps.jl b/.dev/up_deps.jl new file mode 100644 index 00000000..6fae711e --- /dev/null +++ b/.dev/up_deps.jl @@ -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