Skip to content

Commit 833d988

Browse files
committed
Improve script update_default_manifest
1 parent 0e5b726 commit 833d988

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

bin/update_default_manifest

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ if [[ $(basename "$(pwd)") == "bin" ]]; then
44
cd ..
55
fi
66

7-
repo_root=$(pwd)
8-
97
julia_major=$(julia --startup-file=no -e 'print("$(VERSION.major).$(VERSION.minor)")')
108
manifest_name="Manifest-v${julia_major}.toml"
119
default_manifest="${manifest_name}.default"
@@ -42,24 +40,27 @@ for project_dir in "${projects[@]}"; do
4240
delete_manifests "$project_dir"
4341
done
4442

45-
cd bin
46-
./create_sys_image --update
47-
cd "$repo_root"
48-
4943
if [[ $julia_major == "1.12" ]]; then
5044
julia --startup-file=no --project -e 'using Pkg; Pkg.update()'
5145
julia --startup-file=no --project=examples -e 'using Pkg; Pkg.update()'
5246
julia --startup-file=no --project=test -e 'using Pkg; Pkg.update()'
47+
else
48+
julia --startup-file=no --project -e 'using Pkg; Pkg.instantiate()'
49+
julia --startup-file=no --project=examples -e 'using Pkg; Pkg.instantiate()'
50+
julia --startup-file=no --project=test -e 'using Pkg; Pkg.instantiate()'
5351
fi
5452

5553
for project_dir in "${projects[@]}"; do
5654
rename_manifest "$project_dir"
5755
require_manifest "$project_dir"
58-
copy_default_manifest "$project_dir"
56+
if [[ "$project_dir" == "." ]]; then
57+
copy_default_manifest "$project_dir"
58+
fi
5959
done
6060

6161
# TODO run tests
6262

6363
rm -rf ~/.julia/compiled/v${julia_major}/KiteControllers/
64-
echo "Updated ${default_manifest} files for Julia ${julia_major} in root, examples, and test!"
64+
echo "Updated ${manifest_name} files for Julia ${julia_major} in root, examples, and test!"
65+
echo "Updated ${default_manifest} in root only."
6566
echo "Make sure to run the tests before committing the new version!"

0 commit comments

Comments
 (0)