Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ manifest:
release:
$(GO) run github.com/hymkor/latest-notes@latest | gh release create -d --notes-file - -t $(VERSION) $(VERSION) $(wildcard $(NAME)-$(VERSION)-*.zip)

bump:
$(GO) run github.com/hymkor/latest-notes@latest -suffix "-goinstall" -gosrc sqlbless release_note*.md > version.go

docs:
$(GO) run github.com/hymkor/minipage@latest -outline-in-sidebar -readme-to-index README.md > docs/index.html
$(GO) run github.com/hymkor/minipage@latest -outline-in-sidebar -readme-to-index README_ja.md > docs/index_ja.html
Expand All @@ -55,4 +58,4 @@ readme:
$(GO) run github.com/hymkor/example-into-readme@latest
$(GO) run github.com/hymkor/example-into-readme@latest -target README_ja.md

.PHONY: all test dist _dist clean manifest release docs
.PHONY: all test dist _dist clean manifest release docs bump
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ func (cfg *Config) Bind(fs *flag.FlagSet) *Config {
return cfg
}

var Version string

func writeSignature(w io.Writer) {
fmt.Fprintf(w, "# SQL-Bless %s-%s-%s built with %s\n",
Version, runtime.GOOS, runtime.GOARCH, runtime.Version())
version, runtime.GOOS, runtime.GOARCH, runtime.Version())
}

func usage() {
Expand Down
3 changes: 3 additions & 0 deletions release_note_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Release notes (English)
=======================
( **English** / [Japanese](release_note_ja.md) )

- Fixed an issue where the version string was empty when built without GNU Make.
The version string is now updated via make bump during the release process. (#46)

v0.27.4
-------
Feb 14, 2026
Expand Down
3 changes: 3 additions & 0 deletions release_note_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Release notes (Japanese)
========================
( [English](release_note_en.md) / **Japanese** )

- GNU Make なしでビルドした場合に、バージョン文字列が空になってしまう問題を修正
今後、バージョンアップ時に make bump を実行する (#46)

v0.27.4
-------
Feb 14, 2026
Expand Down
3 changes: 3 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package sqlbless

var version = "v0.27.4-goinstall"