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
Short Description
The configurator currently has a way of checking if both the main driver and generator plugins are built using the same git commit. This tends to work fine when the binaries are being built within a clone repository, but fails when built externally, since the method for getting the version commit is just running a git command:
Instead, it may be a better idea to use a version tag (with commit as well if necessary) that gets injected when building the binaries. Having the version tag injected external to the program itself should allow the version tag to be included when the binaries are built external to the repository.
Definition of Done
This task will be considered complete once the versioning is done external to configurator through a script or the Makefile.
Additional context
There are examples from SMD and magellan how this task should be completed. The main program must contain variables that are set via LDFLAGS when building:
LDFLAGS="-s -X=$(GIT)main.commit=$(BUILD) -X=$(GIT)main.version=$(VERSION) -X=$(GIT)main.date=$(shell date +%Y-%m-%d:%H:%M:%S)"
The main program should contain variables like so:
var (
versionstringcommitstringdatestring
)
The text was updated successfully, but these errors were encountered:
Short Description
The configurator currently has a way of checking if both the main driver and generator plugins are built using the same git commit. This tends to work fine when the binaries are being built within a clone repository, but fails when built externally, since the method for getting the version commit is just running a git command:
Instead, it may be a better idea to use a version tag (with commit as well if necessary) that gets injected when building the binaries. Having the version tag injected external to the program itself should allow the version tag to be included when the binaries are built external to the repository.
Definition of Done
This task will be considered complete once the versioning is done external to configurator through a script or the Makefile.
Additional context
There are examples from SMD and magellan how this task should be completed. The main program must contain variables that are set via
LDFLAGS
when building:LDFLAGS="-s -X=$(GIT)main.commit=$(BUILD) -X=$(GIT)main.version=$(VERSION) -X=$(GIT)main.date=$(shell date +%Y-%m-%d:%H:%M:%S)"
The main program should contain variables like so:
The text was updated successfully, but these errors were encountered: