Add commit information to roc versions built from source#7046
Add commit information to roc versions built from source#7046Anton-4 merged 1 commit intoroc-lang:mainfrom
Conversation
Hasnep
left a comment
There was a problem hiding this comment.
Just left some comments explaining my changes
Nice, this is something I considered but wasn't sure about, so I just used a package for the initial version, I'll switch to using |
6d0a9b6 to
db485ad
Compare
|
@Anton-4 I've removed and when the repo has changes: Let me know if you think there's anything that I can improve :) |
be27201 to
f52697f
Compare
a634d67 to
82256b6
Compare
|
Thanks for your comments @Anton-4, I've addressed them all now 👍 |
lukewilliamboswell
left a comment
There was a problem hiding this comment.
This will be really useful. Thank you @Hasnep
|
To fix the test failures you'll need to do |
13c3f6a to
80aaf0c
Compare
|
The |
Yes, that is true 😅 I think instead of panicking with "Failed to parse timestamp as an integer" we could default to the string "missing timestamp", that would be most inline with the nix philosophy vs trying to work around this. |
|
I've added a check to see if the |
d672180 to
4170f47
Compare
4170f47 to
058ef10
Compare
|
Thanks for the sustained effort on this @Hasnep ❤️ |
No problem! It was good fun to do my first (proper) contribution to Roc! I'm going to be on the lookout for more issues like this one to attempt that don't require touching the core compiler :) |
Addresses #7030.
I'm not that experienced with Rust and I'm not familiar with the style and priorities of the Roc compiler team, so I'd appreciate feedback on anything that looks out of place or inefficient 😅
I think this is nearly done, but I'm getting a default commit timestamp when I run it locally:
I think it's a default timestamp, maybe for reproducible builds? But that doesn't make sense to me because it's not a build timestamp, it's a commit timestamp 🤔
Again, any help is appreciated! 😀