Skip to content

set JULIA_DEPOT_PATH#3711

Merged
asottile merged 1 commit into
pre-commit:mainfrom
damonbayer:dmb_JULIA_DEPOT_PATH
Jul 15, 2026
Merged

set JULIA_DEPOT_PATH#3711
asottile merged 1 commit into
pre-commit:mainfrom
damonbayer:dmb_JULIA_DEPOT_PATH

Conversation

@damonbayer

@damonbayer damonbayer commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

This PR pins Julia's package depot to the per-hook environment directory by setting
JULIA_DEPOT_PATH in get_env_patch, instead of leaving it at its default (~/.julia).

I believe this is required for julia to fully qualify as a second-class language:

- 2nd class - pre-commit requires the user to install the language globally but
will install tools in an isolated fashion (current examples: python, swift,
docker).

This surfaced in a review from @asottile of pre-commit-ci/runner-image#335.

Details about JULIA_DEPOT_PATH are available here.

@damonbayer damonbayer changed the title set JULIA_DEPOT_PATH set JULIA_DEPOT_PATH Jun 16, 2026
@damonbayer

Copy link
Copy Markdown
Contributor Author

@asottile are you able to review?

@asottile
asottile force-pushed the dmb_JULIA_DEPOT_PATH branch 2 times, most recently from 1577634 to b4ec27a Compare July 15, 2026 20:53

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile
asottile enabled auto-merge July 15, 2026 20:54
@asottile
asottile force-pushed the dmb_JULIA_DEPOT_PATH branch from b4ec27a to 1e7994f Compare July 15, 2026 20:58
@asottile
asottile merged commit 374d354 into pre-commit:main Jul 15, 2026
30 checks passed
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.

2 participants