-
Notifications
You must be signed in to change notification settings - Fork 55
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
Users need to download all timezones when using create_app from PackageCompiler #300
Comments
Thanks for filing this issue. That's definitely a suboptimal behavior. I'll look into possible solutions without just rewriting the Artifacts.toml to contain the current release. |
@staticfloat your opinion here would be appreciated. I setup the Arifacts.toml to allow any tzdata file to be used. In reality only the latest tzdata version is needed and typically an earlier version used in testing. All the artifacts were setup as lazy to only download what is required. PackageCompiler is fetching all artifacts, even those marked as lazy, for relocation purposes. Should this behavior be changed, modified with some additional artifact flag, or should I restrict the artifact list to the bare minimum? If the answer is reducing the artifact list is there another good way to handle retrieving other tzdata through the artifact system? |
@KristofferC is this intended behavior for PackageCompiler? |
Well, it depends on what you mean with "intended". The code in PackageCompiler is written to do this, yes, but whether this is a good idea if there should be an option to chose the inclusion of |
Yeah, I meant eager downloading of lazy artifacts. I think this should probably be an option, since there are legitimate usecases where you really just want to ensure that the bundled application never downloads anything, but then there are obvious cases like this where it is not meaningful to do this. One way to work around this is to break PackageCompiler's autodetection by storing the artifacts in That would look something like the following:
So then you'd just use Another way to work around this is to be able to signal to PackageCompiler somehow that it really should consider something a lazy artifact. Perhaps we should develop a convention of storing a list of names in |
Perhaps better to make a small PR to PackageCompiler that has an |
iana.org started to rate limit our builds due to this issue.
|
In PR #441 all of the lazy tzdata artifacts were removed in favor of using precompiled time zones provided by TZJData.jl non-lazy artifacts. The end result is that when using PackageCompiler it doesn't matter if you use Included in TimeZones.jl release 1.12. |
create_app
from package compiler download all the artifacts from all the decencies of the package to be built. This is causes our CI to download all timezons in Artifacts.toml!The text was updated successfully, but these errors were encountered: