-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Wrong date in crystal --version
#306765
Comments
This is intentional. If you want a different date, you can declare Other hacky solutions I've seen (and I think even done myself) is to keep the .git dir in fetchGit, record the latest commit's date into a file and then remove .git. That also has issues though. If you could automate updating |
I understand the need for a default configuration. However it seems odd to have a nonsensical date when it can easily be prevented. If It sounds like a reasonable idea to put the |
If that is indeed the case for this specific package, explicitly unsetting |
Starting with the next Crystal release (1.13.0), the source date is exposed in |
The crystal compiler shows a date next to the version number when running
crystal --version
.It should usually be the date of the source version, typically the release date. When building the compiler, this date is taken from the enviornment variable
SOURCE_DATE_EPOCH
and baked into the binary.Apprently this configuration is incorrect and points to 1980-01-01.
If no date information is available, it should be omitted (i.e.
SOURCE_DATE_EPOCH
should be unset or empty).If no date information is available, it would be better to omit it (i.e. unset
SOURCE_DATE_EPOCH
or make its value empty).It would be better of course to include the correct release date.
Note for older versions it appears to have a different date, although still not the correct one (1.8.1 is from April 2023).
The text was updated successfully, but these errors were encountered: