diff options
author | sterni <sternenseemann@systemli.org> | 2022-09-19T08·14+0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-09-21T13·08+0000 |
commit | 0096939bf6edd9fd87cd555820c741b0da5508f2 (patch) | |
tree | c4abe50b9dcd764bec27f90f51bfc39a3ab807a4 /tvix/eval/src/properties.rs | |
parent | 489395448f0fbe268c6503018012992e1e6cfc22 (diff) |
feat(tvix/eval): implement builtins.splitVersion r/4945
This was fairly easy, thanks to the work already done by Thomas Frank. However, the implementation is suboptimal because we parse number parts only to convert them back to strings afterwards. I've chosen to tackle this problem in the future, since having an (inefficient) implementation of splitVersion will be helpful for debugging the slight discrepancies between C++ Nix and Tvix in the case of compareVersions. Change-Id: Id6ed8eeb77663ff650c8c53ea952875b1fb7ea84 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6688 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/properties.rs')
0 files changed, 0 insertions, 0 deletions