From 7be37446b39ef7a5f112a6089874ef102c30f5a3 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Wed, 17 May 2023 06:59:18 +0200 Subject: [PATCH] Fix project order for 1.9 (#106) * Fix project order for 1.9 Solves #105 * Apply suggestions from code review --------- Co-authored-by: Dilum Aluthge --- src/utils.jl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index f587161d..1f2cfe76 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -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)