We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10d44c8 commit 63248d6Copy full SHA for 63248d6
legend_julia_setup.jl
@@ -1,6 +1,9 @@
1
import Pkg
2
3
-Pkg.activate() # Activate default environment
+# Activate default environment
4
+# Can't use `Pkg.activate()` with stacked depots if first(DEPOT_PATH) doesn't exist:
5
+Pkg.activate(joinpath(first(DEPOT_PATH), "environments", "v$(VERSION.major).$(VERSION.minor)"))
6
+# Will also create he environment if it doesn't exist:
7
Pkg.instantiate()
8
9
if !ispath(joinpath(first(DEPOT_PATH), "registries", "LegendJuliaRegistry"))
0 commit comments