Skip to content

v1.18.1 - Interactive Wizard & Version Fix ​

Release Date: March 24, 2026

Version 1.18.1 is a targeted bug-fix release resolving two issues introduced in v1.18.0: the interactive wizard not launching when goca init is called with no arguments, and goca version displaying the wrong version string.


Bug Fixes ​

goca init with No Arguments Launches the Interactive Wizard ​

v1.18.0 introduced an interactive initialization wizard (via huh forms) for goca init. However, the command was still declared with Args: cobra.ExactArgs(1), causing it to fail immediately when called with no arguments:

Error: accepts 1 arg(s), received 0

Fix: The command now accepts zero or one argument. When called with no arguments in an interactive terminal, the wizard prompts for the project name as its first question. The --no-interactive path still requires a name argument and produces a clear error if omitted.

bash
# Before v1.18.1: failed with "accepts 1 arg(s), received 0"
goca init

# After v1.18.1: launches wizard, first prompt asks for project name
goca init
# > Enter project name: myapp
# > Enter module path: github.com/acme/myapp
# > Select database: sqlite
# ...

goca version Displays the Correct Installed Version ​

When installed via go install github.com/sazardev/goca@latest, goca version previously showed a hardcoded placeholder string rather than the actual installed release version.

Fix: The version command now reads the module version embedded by the Go toolchain at install time using runtime/debug.ReadBuildInfo:

go
info, ok := debug.ReadBuildInfo()
if ok && info.Main.Version != "" && info.Main.Version != "(devel)" {
    version = info.Main.Version
}
bash
$ goca version
Goca v1.18.1

This correctly reflects the tag used during go install (e.g. v1.18.1) rather than (devel) or a stale hardcoded string.


Released under the MIT License.