Repository navigation
v0.3.0
English | 日本語
This release removes the dependency graph output, so knit gen now writes only the generated Go files.
Breaking change
knit genno longer writes.knit/di-graph.json.- The
-graph-outflag has been removed. Commands that pass it now fail with a usage error (exit code2), so remove it from your scripts and CI. - You can delete an existing
.knit/directory, along with its.gitignoreentry.
If you need the graph, stay on v0.2.0.
Generated code is unchanged, so you do not need to regenerate it.
Install
Requires Go 1.26 or later (only for go install / importing the marker package).
go install github.com/withnic/knit/cmd/knit@v0.3.0 # or: go get -tool github.com/withnic/knit/cmd/knit@v0.3.0
go get github.com/withnic/knit@v0.3.0 # marker package for native modePrebuilt binaries for Linux, macOS and Windows (amd64 / arm64) are attached below. Verify a download with checksums.txt, or check its build provenance with:
gh attestation verify knit_0.3.0_linux_amd64.tar.gz -R withnic/knitFull changes: v0.2.0...v0.3.0
日本語
このリリースでは依存グラフの出力を削除しました。knit gen が書き出すのは、生成した Go ファイルだけになります。
破壊的変更
knit genは.knit/di-graph.jsonを出力しなくなりました。-graph-outフラグを削除しました。指定すると使い方エラー(終了コード2)になるので、スクリプトや CI から外してください。- 既存の
.knit/ディレクトリと、.gitignoreの該当行は削除できます。
グラフが必要な場合は、v0.2.0 を使い続けてください。
生成コードは変わらないので、再生成は不要です。
インストール
Go 1.26 以上が必要です(go install とマーカーパッケージの import の場合のみ)。
go install github.com/withnic/knit/cmd/knit@v0.3.0 # または: go get -tool github.com/withnic/knit/cmd/knit@v0.3.0
go get github.com/withnic/knit@v0.3.0 # knit モード用のマーカーパッケージLinux・macOS・Windows(amd64 / arm64)向けのビルド済みバイナリを下に添付しています。ダウンロードしたファイルは checksums.txt で確認できます。ビルドの証明は次のコマンドで検証できます。
gh attestation verify knit_0.3.0_linux_amd64.tar.gz -R withnic/knitすべての変更: v0.2.0...v0.3.0