Resolve "Add compilation date as a constant in pipeline"
General MR
Summary
Acceptance Criteria:
Add a new constant in for the BBCTL Compilation Date and inject it during compile time using ldflags. Update all pipelines and scripts to add this date in correctly.
With the code:
constants, _ := static.GetDefaultConstants()
fmt.Printf("Constant Compilation Date of bbctl: %s\n\n", constants.BigBangBuildDate)
in main.go, we can see that our injected compilation date and time outputs as follows:
~path/to/repo/bbctl$ make build
make building...
./scripts/build.sh
Build Time: "2024-12-10T00:22:47Z"
building...
~path/to/repo/bbctl$ ./bin/bbctl version
Constant Compilation Date of bbctl: 2024-12-10T00:22:47Z
...
This code to show the constants will be removed, and addressed as part of issue 293
Relevant logs/screenshots
(Include any relevant logs/screenshots)
Linked Issue
Upgrade Notices
(Include any relevant notes about upgrades here or write "N/A" if there are none)
Closes #295 (closed)
Edited by Darrien Lee