Skip to content

Compatibility with PackageCompiler.jl #108

@MichaelHatherly

Description

@MichaelHatherly

Currently Dash.jl (and the related component packages) hardcode paths to resources into globals, see https://github.com/plotly/Dash.jl/blob/dev/src/Dash.jl#L5-L6 for example. This means that the package cannot be used along with https://github.com/JuliaLang/PackageCompiler.jl since that paths are not "relocatable" (https://julialang.github.io/PackageCompiler.jl/dev/devdocs/relocatable_part_3/#Relocatability-of-Julia-packages-1).

The two standard approaches to solving this issue are to either:

  • store the actual content of the files located in the resource folders directly into the module's globals, rather than just the paths to those resources, or
  • make use of the Artifacts system (https://pkgdocs.julialang.org/dev/artifacts/) to provide the resources in PackageCompiler-friendly paths.

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