Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print TOML data in alphabetical order (with "julia" at the end) #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tag.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function tag_internal(
pkg_toml_content["version"] = version_to_be_tagged

open(pkg_project_toml_path, "w") do f
TOML.print(TOML_print_conversion, f, pkg_toml_content)
TOML.print(TOML_print_conversion, f, pkg_toml_content; sorted=true, by=key -> ifelse(key=="julia", "1", "0$key"))
end

project_as_it_should_be_tagged = Pkg.Types.read_project(pkg_project_toml_path)
Expand All @@ -208,7 +208,7 @@ function tag_internal(
pkg_toml_content["version"] = next_version

open(pkg_project_toml_path, "w") do f
TOML.print(TOML_print_conversion, f, pkg_toml_content)
TOML.print(TOML_print_conversion, f, pkg_toml_content; sorted=true, by=key -> ifelse(key=="julia", "1", "0$key"))
end

LibGit2.add!(pkg_repo, splitdir(pkg_project_toml_path)[2])
Expand Down
Loading