Skip to content

Consider using method deletion instead of custom sysimage #1311

Closed
@KristofferC

Description

@KristofferC

Right now, we use a custom sysimage because loading a second copy of LinearAlgebra causes ambiguities due to piracy. However, we should be able to just delete all the existing LinearAlgebra methods with e.g.

Base.visit(Core._.defs) do m; nameof(m.module) === :LinearAlgebra && Base.delete_method(m); end

(courtesy of @vtjnash) and then load the second copy of LinearAlgebra, perhaps with

Base.unreference_module(Base.PkgId(Base.UUID("37e2e46d-f89d-539d-b4ee-838fcccc9c8e"), "LinearAlgebra"))

That would save a lot of time in CI.

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