Skip to content

Commit

Permalink
Fix project order for 1.9 (#106)
Browse files Browse the repository at this point in the history
* Fix project order for 1.9

Solves #105

* Apply suggestions from code review

---------

Co-authored-by: Dilum Aluthge <[email protected]>
  • Loading branch information
gdalle and DilumAluthge authored May 17, 2023
1 parent 57492cd commit 7be3744
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

2 comments on commit 7be3744

@DilumAluthge
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Pre-release version not allowed"

Please sign in to comment.