Lix 2.96 "Bingsu"
We at the Lix team are proud to announce our seventh major release, version 2.96 “Bingsu”.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
We at the Lix team are proud to announce our seventh major release, version 2.96 “Bingsu”.
This release focuses on security, debugger support, quality-of-life improvements, and continues the work towards both the new Cap’n’Proto RPC protocol and Rust support.
Bingsu is a milk-based Korean shaved ice dessert with sweet toppings that may include chopped fruit, condensed milk, fruit syrup, tteok, and red beans.
Lix is a Nix implementation focused on reliability, predictability, friendliness, developed by a community of people from around the world. We have long term plans to incrementally evolve Nix to work in more places, to make it more reliable and secure, and to update the language and semantics to correct past mistakes and reduce errors, all the while providing an amazing tooling experience.
WARNING: We do not recommend to use nix upgrade-nix, please follow the instructions in https://lix.systems/install/ with the Lix’s upgrade shell script.
The upgrade procedure depends on how you installed Lix or CppNix, and is fully described in the Lix installation guide.
If you are using Lix from nixpkgs on NixOS, you just need to upgrade your nixpkgs once the upgrade pull request has passed through the build farm into your channel; no other action is required.
If you want to help us test the next version of Lix, consider running main by following the beta guide.
Lix 2.96 builds on the work of previous releases to improve the daemon, the protocols spoken with the daemon (both on a single machine and the ones used for remote builds), and brings many much-needed improvements to the debugger infrastructure.
Here’s a short list of the most exciting changes in Lix 2.96. This list is not as exhaustive as the full release notes.
Thanks to the tireless work of blokyk the REPL and debugger are much improved in Lix 2.96. The debugger is now more stable, navigating within the debugger is much easier, and the information printed by the debugger is more readable.
eldritch horrors have also switched the REPL backend from editline to rustyline, finally bringing proper UTF-8 support to the REPL.
The experimental RPC protocol is now shipping under the rpc-sockets experimental feature. As one may guess this is still highly experimental and must be enabled not only with the experimental feature flag in your Lix config, but also requires system setup that is not yet done by the NixOS module. You can find an example configuration in the NixOS module in the Lix repo.
In future releases we plan to stabilize the RPC protocol and remove support for the legacy protocols we’ve been using to date to allow further evolution of Lix.
To enable further RPC work and resolve some long-standing security inconsistencies we must remove ssh:// store URIs. Lix 2.96 deprecates ssh:// store URIs, but retains support for them without deprecation warnings. ssh:// store URI support will be removed in Lix 2.97, ssh-ng:// URIs will remain supported.
If you are using ssh:// store URIs because ssh-ng:// is missing features you need please get in touch so we can figure something out together. Note that ssh-ng has stricter security checks than ssh and no longer allows untrusted users to copy unsigned outputs to remote stores, this is intentional.
Once again Lix must break sharp corners to make improvements possible and excise surprising behavior in user code.
flake.nix validation no longer relies on poorly documented triviality checks. Instead Lix now has only one rule for flake.nix: no function calls are allowed outside of outputs. This means that Lix now accepts let blocks and string interpolation in flake inputs, among other things. We consider this a breaking change because other Nix implementations may no longer be able to evaluate Flakes that were written using Lix.
Many thanks to piegames, Qyriad and eldritch horrors.
The floor and ceil builtins now throw errors if their operation would have resulted in precision loss during the conversion from floating point to integers. Precision loss does not sound dramatic, but with numbers of sufficient magnitude this could result in positive floats being converted to negative integers.
Many thanks to jade, NaN-git and rootile.
Many nix3 CLI commands no longer build their arguments. This surprising behavior was commonly seen when nix store delete was called with a path that was not present in the store, causing the path to be downloaded just so that it could be deleted.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。
