Skip to content

[extensions] is ignored in JuliaProject.toml #3815

@xitology

Description

@xitology

When the project file is called JuliaProject.toml (as opposed to Project.toml), its [extensions] section is ignored by Pkg.jl. It must be caused to the hard-coded filename in https://github.com/JuliaLang/Pkg.jl/blob/master/src/Operations.jl#L168.

This could be reproduced with a package from Pkg.jl tests:

cd test/test_packages/ExtensionExamples/HasExtensions.jl
# Verify that it works
julia --project=@hasext-good -e 'using Pkg; Pkg.add("OffsetArrays"); Pkg.add("IndirectArrays"); Pkg.develop(path="."); include("test/runtests.jl")'
# Rename *.toml files
mv Project.toml JuliaProject.toml
mv Manifest.toml JuliaManifest.toml
# Verify that it no longer works
julia --project=@hasext-bad -e 'using Pkg; Pkg.add("OffsetArrays"); Pkg.add("IndirectArrays"); Pkg.develop(path="."); include("test/runtests.jl")'

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