Skip to content

Drop Julia <1.6. Reduce code duplication by introducing ProgressCore #304

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

Merged
merged 8 commits into from
Mar 3, 2024

Conversation

IanButterworth
Copy link
Collaborator

@IanButterworth IanButterworth commented Mar 2, 2024

  • Drops julia versions <1.6 (very old now, so not worth supporting given even things like hasfield aren't defined)
  • Reduces code duplication .There's a fair bit of duplication between the three core Progress types. This puts the common elements into a ProgressCore struct to avoid duplication.

@IanButterworth IanButterworth requested a review from MarcMush March 2, 2024 18:02
@IanButterworth IanButterworth changed the title reduce code duplication by introducing ProgressCore Drop Julia <1.6. Reduce code duplication by introducing ProgressCore Mar 2, 2024
@MarcMush
Copy link
Collaborator

MarcMush commented Mar 2, 2024

that's great!

Comment on lines +102 to +108
function Base.setproperty!(p::T, name::Symbol, value) where T<:AbstractProgress
if hasfield(T, name)
setfield!(p, name, value)
else
setproperty!(p.core, name, value)
end
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change, because it isn't handling automatic conversion of value to T like the default setproperty! method does: https://github.com/JuliaLang/julia/blob/a69aa30478ac9beda594235ff6f2e39549fdb752/base/Base.jl#L50-L54

giordano added a commit to JuliaPackaging/BinaryBuilderBase.jl that referenced this pull request Apr 3, 2024
…essMeter (#373)

* [Sources] Explicit conversion to work around breaking change in ProgressMeter

This was broken by <timholy/ProgressMeter.jl#304>.

* [CI] Do not run tests on nightly

They're irremediably broken, no one is going to fix it, no point it keeping
running tests bound to fail.
MarcMush added a commit that referenced this pull request Apr 3, 2024
* fix breaking setproperty!

* remove pre-1.3 code
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.

3 participants