Skip to content

Commit

Permalink
Resolve before instantiating the environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 25, 2023
1 parent 4a33335 commit 2a01737
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ if [ -n "$custom_manifest" ]; then
cp "$custom_manifest" Manifest.toml
fi

# when packages ship a manifest, we may need to resolve it before we can instantiate.
# we need to do this _outside_ of that environment, because Pkg may not be usable within.
if [ -f "Manifest.toml" ]; then
echo "Resolving manifest..."
julia -e "
using Pkg
Pkg.activate(\".\")
Pkg.resolve()
"
fi

JULIA_PKG_PRECOMPILE_AUTO=0 \
julia --project=${project} -e "
using Pkg
Expand Down

0 comments on commit 2a01737

Please sign in to comment.