Pkg.jl icon indicating copy to clipboard operation
Pkg.jl copied to clipboard

Allow testing projects without a UUID

Open cossio opened this issue 2 years ago • 1 comments

Currently if you try to Pkg.test a project without an UUID, it will throw this error:

ERROR: trying to test unnamed project

Even if the project has a name.

Is there any reason why the Project.toml needs to have an UUID if I want to test it?

cossio avatar May 02 '22 18:05 cossio

Related: https://github.com/JuliaLang/Pkg.jl/issues/1982

cossio avatar May 02 '22 18:05 cossio

For me it would already be an improvement to make the error message more specific. I needed to search for a while until I noticed that the missing UUID was the reason for the error message. I created a Julia project that is not a package using DrWatson, see https://github.com/JuliaDynamics/DrWatson.jl/issues/67.

So for the missing UUID something like

ERROR: trying to test unnamed project (missing UUID in Project.toml)

would improve my experience.


Also related to https://github.com/JuliaLang/Pkg.jl/issues/1253.

AnHeuermann avatar Feb 20 '23 14:02 AnHeuermann