Skip to content

Handle relative paths when copying project on app add #4532

@jakobnissen

Description

@jakobnissen

If I create an app with a local dependency and the following TOML:

name = "SomeApp"
uuid = "6fe06ad9-5ce4-4b58-bb0c-29b0d7e1fd75"
version = "0.1.0"
authors = ["Jakob Nybo Andersen <[email protected]>"]

[deps]
SomeDep = "b5c6e794-171e-4c69-906b-483714562d9a"

[sources]
SomeDep = {path = "../SomeDep"}

[apps.myapp]

And then do ] app add ., it fails with: "ERROR: expected package SomeDep [b5c6e794] to exist at path /home/jakni/.julia/environments/apps/SomeDep".

The issue is that SomeApp's Project.toml is being copied into /home/jakni/.julia/environments/apps/SomeApp, but the relative paths in the Project.toml are not updated to reflect the new location in the file system.

Discovered by Arnau Quera-Bofarull on Slack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions