Biome schema hash mismatch for version 2.1.2
**Describe the bug**
The hash for the Biome 2.1.2 schema file in `programs/biome.nix` is incorrect, causing builds to fail with a hash mismatch error. The schema file at `https://biomejs.dev/schemas/2.1.2/schema.json` has either changed or the original hash was incorrect.
**To Reproduce**
Steps to reproduce the behavior:
1. Create a flake that uses `treefmt-nix` with biome enabled
2. Configure biome formatter in your `perSystem.treefmt.programs.biome` settings
3. Run `nix develop` or build the dev shell
4. Observe the hash mismatch error
**Expected behavior**
The build should succeed without hash mismatch errors when using biome formatter.
**Current behavior**
Build fails with:
```
error: hash mismatch in file downloaded from 'https://biomejs.dev/schemas/2.1.2/schema.json':
specified: sha256:07qlk53lja9rsa46b8nv3hqgdzc9mif5r1nwh7i8mrxcqmfp99s2
got: sha256:1d909q6abxc3kcaqx4b9ibkfgzpwds5l8cylans8gpz0kvl3b1lz
```
**System information**
- treefmt-nix: latest (commit a82c779)
- nixpkgs: nixos-unstable
- System: aarch64-darwin (macOS)
- Biome version: 2.1.2
**Additional context**
The issue is in [`programs/biome.nix`](https://github.com/numtide/treefmt-nix/blob/main/programs/biome.nix#L16-L19) where the hash is defined:
```nix
schemaHashes = {
"1.9.4" = "sha256-SkkULLRk4CQzk+j0h8PAqOY6vGOrdG5ja7Z/tSAAKnY=";
"2.1.2" = "sha256-n4Y16J7g34e0VdQzRItu/P7n5oppkY4Vm4P1pQxOILU=";
};
```
The believe the correct hash should be, but I have not tested it :
```nix
"2.1.2" = "sha256-1d909q6abxc3kcaqx4b9ibkfgzpwds5l8cylans8gpz0kvl3b1lz";
```
关闭于 2025-11-18 4 条评论