Skip to content

Commit 9ff6d26

Browse files
show the resolver error when Pkg.test wants to reresolve
1 parent 3cfe013 commit 9ff6d26

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Operations.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,9 +2445,12 @@ function sandbox(
24452445
catch err # TODO
24462446
err isa Resolve.ResolverError || rethrow()
24472447
allow_reresolve || rethrow()
2448-
@debug err
2448+
resolver_err_str = sprint(show, err; context = ctx.io)
2449+
ind = " "^(Pkg.pkgstyle_indent)
2450+
resolver_err_str_indented = ind * replace(resolver_err_str, "\n" => "\n" * ind)
2451+
printpkgstyle(ctx.io, :Resolve, "Attempted resolve with fixed versions:\n$(resolver_err_str_indented)", color = Base.warn_color())
24492452
msg = string(
2450-
"Could not use exact versions of packages in manifest, re-resolving. ",
2453+
"Could not use exact versions of packages in manifest, re-resolving while allowing changes.\n",
24512454
"Note: if you do not check your manifest file into source control, ",
24522455
"then you can probably ignore this message. ",
24532456
"However, if you do check your manifest file into source control, ",

0 commit comments

Comments
 (0)