Skip to content

Commit

Permalink
Clarify error with project missing attributes
Browse files Browse the repository at this point in the history
I ran into this issue today and was confused because my project had a name but no UUID.

ref JuliaLang#3074
  • Loading branch information
alecloudenback authored Jun 27, 2023
1 parent edc137f commit cf9f2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function test(ctx::Context, pkgs::Vector{PackageSpec};
Context!(ctx; kwargs...)

if isempty(pkgs)
ctx.env.pkg === nothing && pkgerror("trying to test unnamed project") #TODO Allow this?
ctx.env.pkg === nothing && pkgerror("Project.toml must have project name and UUID") #TODO Allow this?
push!(pkgs, ctx.env.pkg)
else
project_resolve!(ctx.env, pkgs)
Expand Down

0 comments on commit cf9f2c9

Please sign in to comment.