-
Notifications
You must be signed in to change notification settings - Fork 11
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
Explicit imports #100
Explicit imports #100
Conversation
… introduced in Julia 1.11.
…er be compared for equality, which was a basically useless operation except for a roundtrip test.
Could we also run ExplicitImports.jl as part of the test suite here, to make sure this doesn't regress? |
Maybe? ExplicitImports gives a note about |
Would ExplicitImports be satisfied by: @static if VERSION >= v"1.9-" # or whatever the correct version is
const semver_spec = Pkg.Versions.semver_spec
else
const semver_spec = Pkg.Types.semver_spec
end |
It's not really worth being that pedantic in the code. But when I checked the ExplicitImports README, the regression checking functions are quite specific about what things they look for. |
@ericphanson What are your thoughts here? Could we run ExplicitImports in the test suite, but just tell ExplicitImports to skip I would also be fine with doing the |
A bigger problem is that ExplicitImports doesn't work with as old Julia versions as RegistryTools does. |
We could omit ExplicitImports from the list of test-deps, and then in the test suite, if the Julia version is new enough, we could do |
c2cba4c
to
82d1282
Compare
It ain't pretty, but yes, it works. |
The regression testing functions have an |
# ExplicitImports does not support as old Julia versions as RegistryTools does. | ||
# Change this to a regular test dependency when it becomes possible, i.e. | ||
# when pre-1.7 support is dropped. | ||
if VERSION >= v"1.7" | ||
Pkg.add(name = "ExplicitImports", uuid = "7d51a73a-1435-4ff3-83d9-f097790105c7", preserve=Pkg.PRESERVE_ALL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be nice to drop this... also to get ExplicitImports into Aqua.. at some point I will see about expanding compat
RegistryData
struct and had no reasonable utility externally. Closes [compat] Update compat for AutoHashEquals #95.