fix(updater): resolve PkgVersion duplicate declaration
Remove var PkgVersion from updater.go since go generate creates const PkgVersion in version.go. Track version.go in git to ensure builds work without running go generate first. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
e6d1bd22d2
commit
a3e1de3f77
3 changed files with 5 additions and 4 deletions
1
internal/cmd/updater/.gitignore
vendored
1
internal/cmd/updater/.gitignore
vendored
|
|
@ -1,6 +1,5 @@
|
|||
# Go
|
||||
updater
|
||||
version.go
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import (
|
|||
"golang.org/x/mod/semver"
|
||||
)
|
||||
|
||||
// PkgVersion is set via ldflags
|
||||
var PkgVersion = "dev"
|
||||
|
||||
// Version holds the current version of the application.
|
||||
// It is set at build time via ldflags or fallback to the version in package.json.
|
||||
var Version = PkgVersion
|
||||
|
|
|
|||
5
internal/cmd/updater/version.go
Normal file
5
internal/cmd/updater/version.go
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
package updater
|
||||
|
||||
// Generated by go:generate. DO NOT EDIT.
|
||||
|
||||
const PkgVersion = "1.2.3"
|
||||
Loading…
Add table
Reference in a new issue