-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
date: Add option to use manual tz db #22690
Conversation
Kamil Mazurkiewicz seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi @Kaaml, thanks for your PR. Could you explain a bit how does this work? I mean, setting this option to |
Hi @danimtb, First of all, sorry for the long reply. Many users may have problem especially on windows when the date library checks for new version of IANA database and the end user doesn't have or want have 7zip in PATH variable. In my solution I put the flag to the library to block automatic download library. When this flag is set, users of the package have to remember to manually set location of IANA database. |
Hi @Kaaml and thanks for the reply. I am not sure I totally understand the usage of the option. Do you mean that without this new option to set a manual path to the database, users have to do Also, as pointed out in my previous comment, setting |
Currently when we use If we use option
Yes, they are diffrent. Some functions has excluded some parts of code responsible for automatic download and checking for new version of IANA. More details |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
} | ||
default_options = { | ||
"shared": False, | ||
"fPIC": True, | ||
"header_only": False, | ||
"use_system_tz_db": False, | ||
"use_tz_db_in_dot": False, | ||
"manual_tz_db": False, | ||
} |
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.
Please add an options_description = { "use_system_tz_db": "...", ...}
attribute to the recipe. Their meaning of these options and how they interact is a bit vague otherwise.
I would also maybe call the new option allow_tz_db_download
instead.
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.
Done
Conan v1 pipeline ❌Failure in build 3 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. Conan v2 pipeline ❌
The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping Failure in build 3 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
Closing this PR as the author did not sign the CLA and the option is bit too much, as ConanCenterIndex has no registered issues related to a different path for IANA database. I would suggest using the Conan configuration
In case still having the same problem, please, re-open the PR so we can discuss about. |
Specify library name and version: lib/1.0