Skip to content

The current release contains outdated version information #167

Description

@Ser9ei

After building the latest source, the binary reports:

$ amneziawg-go --version
amneziawg-go 0.0.20250522

This does not match the current project release, which currently hardcoded in the:

const Version = "0.0.20250522"

Instead of using a constant, would it make sense to use a variable and inject the version during the build process using Go linker ldflags?

For example:

package main

var Version = "dev"

Then the release build could set the version dynamically:

go build -ldflags "-X main.Version=3.0.3"

This would ensure that release binaries always report the correct version and eliminate the need to manually update version.go for every release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions