Skip to content

Commit

Permalink
sort compat entries in pkg> compat (#3605)
Browse files Browse the repository at this point in the history
(cherry picked from commit d3bd38b)
  • Loading branch information
KristofferC authored and IanButterworth committed Sep 12, 2023
1 parent bc129a2 commit daf0439
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 @@ -1951,7 +1951,7 @@ function compat(ctx::Context; io = nothing)
compat_str = Operations.get_compat_str(ctx.env.project, "julia")
push!(opt_strs, Operations.compat_line(io, "julia", nothing, compat_str, longest_dep_len, indent = ""))
push!(opt_pkgs, "julia")
for (dep, uuid) in ctx.env.project.deps
for (dep, uuid) in sort(collect(ctx.env.project.deps); by = x->x.first)
compat_str = Operations.get_compat_str(ctx.env.project, dep)
push!(opt_strs, Operations.compat_line(io, dep, uuid, compat_str, longest_dep_len, indent = ""))
push!(opt_pkgs, dep)
Expand Down

0 comments on commit daf0439

Please sign in to comment.