JuliaLang / Pkg.jl

Pkg - Package manager for the Julia programming language
https://pkgdocs.julialang.org
Other
609 stars 251 forks source link

Probable bug in relative paths in `[sources]` #3842

Open KristofferC opened 3 months ago

KristofferC commented 3 months ago

IIUC, currently, all relative paths for packages (pkg.path) are considered relative to the manifest file. But in cases they are provided by a [sources] entry they should in fact be treated relative to the project file. This only matters if the project and manifest file are in different directories. That situation can occur when using the manifest = entry in the project file or when using the subproject functionality in #3841.

This is a bit annoying because I think it means we need to remember from where the path entry was retrieved.