Skip to content

Conversation

@devmotion
Copy link
Contributor

@devmotion devmotion commented Aug 11, 2025

I ran into #93 in a (non-public) package where tests are run with --depwarn=error. It seems that the problematic change was introduced in #17 but as this package does not support Julia < 1.10 anymore, I reverted it.

With this PR, downstream tests do not fail anymore (but the deprecation warnings of the deprecated bindings are displayed since it is accessed with getglobal).

Fixes #93.


To some extent, the issue here is similar to JuliaDocs/Documenter.jl#2758. In principle, one could apply the same approach as done in Base in Julia <= 1.11 and check Base.isbindingresolved(mod, name) before trying to access getglobal(mod, name) to avoid triggering the deprecation warning. However, I'm not sure if it's worth it given that Keno removed the need for Base.isbindingresolved (it's deprecated in 1.12 and just unconditionally returns true) in JuliaLang/julia#57253, and in the same PR also remove these patterns isbindingresolved(...) && isdefined(...) etc. in base julia.

@ericphanson ericphanson merged commit dbed49f into JuliaTesting:main Aug 11, 2025
5 checks passed
@devmotion devmotion deleted the dw/fix_depwarn_error branch August 11, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doesn't work in package tests when Base.@deprecate_binding is used on Julia 1.10

2 participants