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:
Snider 2026-02-02 02:18:08 +00:00
parent 2af3a7fd2e
commit 2aa3c49896
3 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,5 @@
# Go
updater
version.go
*.exe
*.exe~
*.dll

View file

@ -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

View file

@ -0,0 +1,5 @@
package updater
// Generated by go:generate. DO NOT EDIT.
const PkgVersion = "1.2.3"