-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fetchTree: add lastModifiedDateISO8601 to sourceInfo #8277
Conversation
f5acb16
to
f7b15be
Compare
Reviewed in Nix team meeting 2023-05-08: We decided to close this PR, since the suggested transformation is trivial and we think it should be done on the consumer side for the sake of keeping the interface minimal. The heavy lifting is already done (also implemented in the Nix language in That may not be the optimal design overall, and given flakes are still experimental it could in principle be changed. We spent some time considering how much support Nix should provide for handling time-related data in general, since it's quite involved when one needs to get it right. Given we don't have evidence of clear need, and no pull requests have been made in that direction, this topic has no priority right now. Nonetheless we welcome design proposals. Complete discussion
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-05-08-nix-team-meeting-minutes-53/27967/1 |
I agree with the decisions being made, I wil still try to get some function for this in nixpkgs. While you're at it, consider closing this as well #8163. |
We can use this for tracking the time handling question. No clear reason to close it yet. The precise problem statement can still be adapted. |
Maybe comment on there as well, because technically I implemented exactly what that issue wanted. |
Motivation
I thought it would make sense to have fetchTree's
sourceInfo
provide a variant oflastModifiedDate
in the ISO 8601 format that is already used many times across nixpkgs for packages with a version ofunstable-YYYY-MM-DD
.Context
#8163
NixOS/nixpkgs#228802 (comment) (Initially made it as a nixpkgs lib but @infinisil suggested to make it in Nix itself)
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*
Priorities
Add 👍 to pull requests you find important.