Skip to content

RFC: fix package usages of Pkg.dir() #12120

@MikeInnes

Description

@MikeInnes

Many packages use Pkg.dir() to find load static resources that aren't Julia code. However, Pkg.dir() always points to ~/.julia/v0.x, so this breaks for packages which are stored in julia/usr/share/julia/site/v0.x, for example. It looks like we need a better way to handle this if there isn't one already.

Are packages that use Pkg.dir() for this purpose in the wrong, or should Pkg.dir() be smarter? Or should we just only support a single package directory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentationneeds decisionA decision on this change is neededpackagesPackage management and loading

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions