Skip to content

Add version information to plugin binary

Axel von Bertoldi requested to merge avonbertoldi/12/add-version-information into main

This MR adds the necessary struct and GO_LDFLAGS to add version information to the plugin binary. Most of the additions are simplified versions of what's in the runner repo. The visible result is:

> fleeting-plugin-aws 
Name:         fleeting-plugin-aws
Version:      v0.0.1
Git revision: 249ed16a
Git branch:   avonbertoldi/12/add-version-information
GO version:   go1.19.6
Built:        2023-03-08T22:27:47+0000
OS/Arch:      linux/amd64  
This binary is a plugin. These are not meant to be executed directly.
Please execute the program that consumes these plugins, which will
load any plugins automatically

closes #12 (closed)

Edited by Axel von Bertoldi

Merge request reports

Loading