Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 13:54
· 1 commit to main since this release
5e5c513

English | 日本語

This release removes the dependency graph output, so knit gen now writes only the generated Go files.

Breaking change

  • knit gen no longer writes .knit/di-graph.json.
  • The -graph-out flag has been removed. Commands that pass it now fail with a usage error (exit code 2), so remove it from your scripts and CI.
  • You can delete an existing .knit/ directory, along with its .gitignore entry.

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 mode

Prebuilt 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/knit

Full 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