Skip to content

Commit

Permalink
Add out of date warning (#22)
Browse files Browse the repository at this point in the history
* Add autodetection for out-of-date HSV mappings

This will just alert us when a new Julia build is beyond the edge of
what is recorded in HSV.

* Release v1.2.4
  • Loading branch information
staticfloat authored Jun 2, 2024
1 parent 39d6ab6 commit a590930
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "HistoricalStdlibVersions"
uuid = "6df8b67a-e8a0-4029-b4b7-ac196fe72102"
authors = ["Ian <[email protected]>"]
version = "1.2.3"
version = "1.2.4"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
9 changes: 9 additions & 0 deletions src/HistoricalStdlibVersions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ module HistoricalStdlibVersions

include("version_map.jl")

let
max_hsg_version = maximum(first.(STDLIBS_BY_VERSION))
# Throw a warning at compile-time if VERSION looks like it's a major or minor version ahead
# of the latest version captured within `version_map.jl`. This assumes that we bump at least
# one stdlib every minor release, which so far appears to be a safe bet.
if VersionNumber(max_hsg_version.major, max_hsg_version.minor) < VersionNumber(VERSION.major, VERSION.minor)
@warn("HistoricalStdlibVersions seems to be out of date; please open an issue at https://github.com/JuliaPackaging/HistoricalStdlibVersions.jl/issues")
end
end
end # module HistoricalStdlibVersions

2 comments on commit a590930

@staticfloat
Copy link
Member Author

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.

Registration pull request created: JuliaRegistries/General/108091

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.4 -m "<description of version>" a590930e616d7aebd69204f7d8d49490fcdb2f9c
git push origin v1.2.4

Please sign in to comment.