Files
Pulse/internal/dockeragent/version.go
rcourtman fdcec85931 Fix critical version embedding issues for 4.26 release
Addresses the root cause of issue #631 (infinite Docker agent restart loop)
and prevents similar issues with host-agent and sensor-proxy.

Changes:
- Set dockeragent.Version default to "dev" instead of hardcoded version
- Add version embedding to server build in Dockerfile
- Add version embedding to host-agent builds (all platforms)
- Add version embedding to sensor-proxy builds (all platforms)

This ensures:
1. Server's /api/agent/version endpoint returns correct v4.26.0
2. Downloaded agent binaries have matching embedded versions
3. Dev builds skip auto-update (Version="dev")
4. No version mismatch triggers infinite restart loops

Related to #631
2025-11-06 11:42:52 +00:00

8 lines
302 B
Go

package dockeragent
// Version is the semantic version of the Pulse Docker agent binary. It is
// overridden at build time via -ldflags for release artifacts. When building
// from source without ldflags, it defaults to "dev" to prevent auto-update
// loops in development builds.
var Version = "dev"