Skip to content

Commit

Permalink
Use custom printing of UUIDs instead of relying on Base
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Apr 2, 2024
1 parent e4403bd commit 436f69d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/project_extras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ function analyze_project_extras(pkg::PkgId)
)
if !isempty(not_in_extras)
msg = "Test dependencies not in root project ($root_project_path):"
for pkgs in sort!(collect(not_in_extras); by = (pkg -> pkg.name))
msg *= "\n\t$pkgs"
for pkg in sort!(collect(not_in_extras); by = (pkg -> pkg.name))
msg *= "\n\t$(pkg.name) [$(pkg.uuid)]"
end
push!(msgs, msg)
end
if !isempty(not_in_test)
msg = "Dependencies not in test project ($test_project_path):"
for pkgs in sort!(collect(not_in_test); by = (pkg -> pkg.name))
msg *= "\n\t$pkgs"
for pkg in sort!(collect(not_in_test); by = (pkg -> pkg.name))
msg *= "\n\t$(pkg.name) [$(pkg.uuid)]"
end
push!(msgs, msg)
end
Expand Down
4 changes: 2 additions & 2 deletions test/test_project_extras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ with_sample_pkgs() do
@test any(
msg ->
occursin("Test dependencies not in root project", msg) &&
occursin("Random [", msg),
occursin("Random [9a3f8284-a2c9-5f02-9a11-845980a1fd5c]", msg),
result,
)
@test any(
msg ->
occursin("Dependencies not in test project", msg) &&
occursin("REPL [", msg),
occursin("REPL [3fa0cd96-eef1-5676-8a61-b3b8758bbffb]", msg),
result,
)
@test !any(msg -> occursin("Test [", msg), result)
Expand Down

0 comments on commit 436f69d

Please sign in to comment.