| title | Nixの評価がref-format: reftableなGitリポジトリーで失敗する | ||||||
|---|---|---|---|---|---|---|---|
| description | Nix 2.28.5では nix flake {subcommand} . がreftableなGitリポジトリー( extensions.refstorage=reftable )で失敗する場合がある。回避策としてflake-urlを path: で指定する(e.g. nix flake show path:.)。 | ||||||
| tags |
|
$ nix flake show .
error:
… while fetching the input 'git+file:///home/ts/repo/_template/template-nix'
error: opening Git repository "/home/ts/repo/_template/template-nix": unsupported extension name extensions.refstorageNix 2.28.5時点のGit fetcherはref-formatがreftableのGitリポジトリーをサポートしていない
そのため、Git URLを使用(.)してリポジトリーのflakeを評価する際にエラーとなる
git URL(.)ではなく、path(path:.)を使ってflakeを評価する
e.g.
$ nix flake show path:.