GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Julia: support `language_version` by ericphanson · Pull Request #3498 · pre-commit/pre-commit

Conversation

@ericphanson

@ericphanson ericphanson commented Jul 21, 2025

Copy link
Copy Markdown
Contributor

Adds basic support for customizing the Julia version by setting the JULIAUP_CHANNEL environmental variable. This support is limited in a couple ways:

  • We don't check that the user is using juliaup. They could have installed julia some other way in which case the JULIAUP_CHANNEL does not do anything and setting the language_version will not have any effect. That however is the status quo (currently setting the language_version does not have any effect) and many users use juliaup, so I think we could just document that language_version support requires your julia to be from juliaup.
  • If the user passes a channel which is not installed, they will get a juliaup error that the channel can not be found. If we were confident they were using juliaup we could install it on their behalf instead, but I'm not sure this is necessary.

split out from #3494

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gdalle and abelsiqueira reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@ericphanson
Julia: support language_version
e750927
@ericphanson ericphanson mentioned this pull request Jul 21, 2025
improve julia language support #3494
Closed
@asottile

asottile commented Aug 9, 2025

Copy link
Copy Markdown
Member

so while this seems to work it sort of doesn't fit nicely with pre-commit. normally language_version support means that pre-commit will install the particular programming language version into the pre-commit environment such that there's no "external" dependencies on the host itself (in the docs this is referred to as first class language support). I believe this patch doesn't do that -- it instead relies on an external version manager to keep that in sync and so it doesn't fit the same properties as pre-commit does today.

basically for actual language_version support one should be able to pick up the pre-commit cache and drop it on a relatively-similar empty operating system and still have it work (for first class language support)

if I understand correctly language: rust does a similar approach (rustup vs juliaup) and maybe the approach there can be copied here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ericphanson

ericphanson commented Aug 16, 2025

Copy link
Copy Markdown
Contributor Author

I did see (and was surprised) that rust installs an entire tool chain. It seems entirely unnecessary to me, as one Julia installation can be used conflict-free by many users (it is different than python where it avoids a lot of issues to make many installs). I think that would be possible here too, but I’m not very interested in it personally, it seems like a lot of disk space for no gain.

Can something like this be acceptable as non-first class support?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ericphanson and others added 2 commits August 18, 2025 19:14
@ericphanson
Merge branch 'main' into eph/jl-version
623af3b
@pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hooks
3957ac8
for more information, see https://pre-commit.ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ericphanson @asottile
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.