You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, version is currently filled manually by using
go build -ldflags "-X github.com/bluenviron/mediamtx/internal/core.version=vX.X.X"
This is the same approach used by most Golang-based command line utilities like Helm, Kubectl and Skaffold.
The alternatives are:
Filling version statically by performing a dedicated commit before every release. This has the disadvantage of introducing an additional task during release, furthermore it doesn't allow to detect custom releases since their version would be the same as standard releases
Using a new Golang feature that automatically provides the git revision through BuildInfo, the problem of this is that it's causing troubles in CI/CD systems that strip the .git folder or don't have git installed, and when the executable is installed with go install, furthermore this feature doesn't provide the git tag, but only the alphanumeric revision.
Currently these alternatives cannot be taken into consideration for the reasons explained above.
This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.
Which version are you using?
v1.1.1
but how to find out??? :)
Which operating system are you using?
Describe the issue
internal/core/core.go#L27
var version = "v0.0.0"
Describe how to replicate the issue
Did you attach the server logs?
no
Did you attach a network dump?
no
The text was updated successfully, but these errors were encountered: