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 — Move default JSA path to $HOME/.cache by headius · Pull Request #9692 · jruby/jruby

Conversation

@headius

@headius headius commented Sep 15, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

In order to avoid writing into the installed JRuby directory, we
move the default location to the .cache directory in the user's
$HOME, where most programs store such caches these days.

Relates to the new JSA home config from #9698

Sorry, something went wrong.

Uh oh!

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

All reactions
@headius

headius commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

See #9667 which this is intended to fix.

All reactions

Sorry, something went wrong.

Uh oh!

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

@headius
headius force-pushed the config_jsa_home branch from 337bbe3 to b6aa75c Compare September 15, 2026 16:12
@headius headius added this to the JRuby 10.1.2.0 milestone Sep 16, 2026
@headius

headius commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

I'm going to hold off on the default location change for now and merge the config for both 10.0 and 10.1.

I like the new default but it's a pretty visible change that should probably bake in jruby-head for a while (and I don't think it should be backported to 10.0).

All reactions

Sorry, something went wrong.

Uh oh!

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

@headius
Move default JSA path to $HOME/.cache
abab4e4
In order to avoid writing into the installed JRuby directory, we
move the default location to the .cache directory in the user's
$HOME, where most programs store such caches these days.

Relates to the new JSA home config from jruby#9698
@headius
headius force-pushed the config_jsa_home branch from b6aa75c to abab4e4 Compare September 16, 2026 12:52
@headius headius changed the title Allow configuring the home location for JSA files Move default JSA path to $HOME/.cache Sep 16, 2026
@headius headius modified the milestones: JRuby 10.1.2.0, JRuby 10.1.3.0 Sep 16, 2026
@headius

headius commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

This now contains just the default location change (to $HOME/.cache), with the configurable JSA home merged from #9698. Will merge after 10.1.2.0 and let it bake in jruby-head for a bit.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jcharaoui

jcharaoui commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

I wonder if it's best to assume $HOME/.cache exists here. Other platforms like Mac have a different path for such data, and depending on the host, the operator might have defined it otherwise using the XDG_CACHE_HOME environment variable.

All reactions

Sorry, something went wrong.

Uh oh!

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

@headius

headius commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

Well, that is a fair point, but is it worse than assuming the JRuby install location is writable? I'm trying to find a better option that allows users to get the benefit of the JSA file without requiring that.

Presumably this is also why the Debian package defaults to .cache. I want to reduce the amount of third-party patching required to maintain JRuby packages.

All reactions

Sorry, something went wrong.

Uh oh!

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

@headius

headius commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

FWIW on my MacOS machine I do have a .cache directory, containing several Ruby-related items and a few from packages I've installed with Homebrew:

$ ls -1 ~/.cache                    
bashbrew
codex-runtimes
gem
install4j
javasharedresources
jruby
opencode
rbs
rubocop_cache
ruby-install
uv
vllm

Interestingly, the javasharedresources directory is put there by IBM's OpenJ9 JVM (Semeru) as a place to store that JVM's equivalent of AppCDS JSA files:

eclipse-openj9/openj9#2862

All reactions

Sorry, something went wrong.

Uh oh!

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

@headius

headius commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

I'd still like this to go somewhere outside of the JRuby install. The .cache dir still seems like the best choice, but I'd like more input. Try to do this a good while before 10.2 so it can settle.

All reactions

Sorry, something went wrong.

Uh oh!

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

@headius headius modified the milestones: JRuby 10.1.3.0, JRuby 10.1.4.0 Oct 30, 2026
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

Projects

None yet

Milestone

JRuby 10.1.4.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

2 participants

@headius @jcharaoui
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.