Skip to content

scyjava's default jgo cache dir disagree's with jgo's default cache dir and doesn't allow for overriding #93

Description

@gnodar01

I'm not exactly sure the following is on purpose or accident. Feel free to close if it's on purpose.

The jgo docs state the default jgo cache dir is ~/.cache/jgo

jgo/constants.py does correctly return get_user_home() / ".cache" / "jgo"

But scyjava seems to forcefully override the default cache dir:

scyjava/_jvm.py:205 calls:

env = jgo.build(endpoint=endpoint, cache_dir=scyjava.config.get_cache_dir(), ...)

and scyjava/config.py:27 hard codes:

_cache_dir = Path.home() / ".jgo"

Not only does it have a different notion of what the default location should be, but it doesn't seem to let the user utilize the jgo config file (settings.cacheDir) / env var (JGO_CACHE_DIR) to set it to a custom location. Or at least I'm not able to find evidence that set_cache_dir is called in order to override it.

Likewise with the m2 cache, although there the defaults agree.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions