Skip to content

fix(ci): set version dynamically from git tag in build process#665

Merged
YouROK merged 1 commit intoYouROK:masterfrom
pavelpikta:fix/build-and-release-version
Feb 25, 2026
Merged

fix(ci): set version dynamically from git tag in build process#665
YouROK merged 1 commit intoYouROK:masterfrom
pavelpikta:fix/build-and-release-version

Conversation

@pavelpikta
Copy link
Copy Markdown
Contributor

@pavelpikta pavelpikta commented Feb 25, 2026

Example:

 go build -ldflags="-X server/version.Version=MatriX.140.10" -o TorrServer-test ./cmd
 
 ./TorrServer-test --version
2026/02/25 16:27:40 ffprobe and avprobe not found in $PATH
TorrServer MatriX.140.10

@pavelpikta pavelpikta marked this pull request as ready for review February 25, 2026 13:28
@pavelpikta pavelpikta changed the title fix: set version dynamically from git tag in build process fix(ci): set version dynamically from git tag in build process Feb 25, 2026
@YouROK YouROK merged commit e038bbd into YouROK:master Feb 25, 2026

const Version = "MatriX.140"
// Version is set at build time via -ldflags "-X server/version.Version=<tag>"
var Version = "MatriX.140"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем вообще этот MatriX в версии?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants