Skip to content

Proper JULIA_DEPOT_PATH#335

Open
damonbayer wants to merge 1 commit into
pre-commit-ci:mainfrom
damonbayer:dmb_julia_depot
Open

Proper JULIA_DEPOT_PATH#335
damonbayer wants to merge 1 commit into
pre-commit-ci:mainfrom
damonbayer:dmb_julia_depot

Conversation

@damonbayer

@damonbayer damonbayer commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This should fix the speed issues mentioned in #332 (comment).

The explanation is in the julia docs:

This allows easy overriding of the user depot, while still retaining access to resources that are bundled with Julia, like cache files, artifacts, etc. For example, to switch the user depot to /foo/bar use a trailing :

export JULIA_DEPOT_PATH="/foo/bar:"

All package operations, like cloning registries or installing packages, will now write to /foo/bar, but since the empty entry is expanded to the default system depot, any bundled resources will still be available. If you really only want to use the depot at /foo/bar, and not load any bundled resources, simply set the environment variable to /foo/bar without the trailing colon.

We had inadvertently been "not load[ing] any bundled resources", requiring us to instantiate Pkg at hook install time, which took > 1.5 min. Now it is already instantiated and can be used instantaneously.

@damonbayer damonbayer changed the title idiomatic JULIA_DEPOT_PATH Proper JULIA_DEPOT_PATH Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant