Skip to content

Commit

Permalink
Fix project order for 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Apr 24, 2023
1 parent 57492cd commit a16a9c5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,19 @@ catch
end
end

const _project_key_order = ["name", "uuid", "keywords", "license", "desc", "deps", "compat"]
const _project_key_order = [
"name",
"uuid",
"keywords",
"license",
"desc",
"deps",
"weakdeps",
"extensions",
"compat",
"extras",
"targets"
]
project_key_order(key::String) =
something(findfirst(x -> x == key, _project_key_order), length(_project_key_order) + 1)

Expand Down

0 comments on commit a16a9c5

Please sign in to comment.