File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ jobs:
2222 env :
2323 APP_VERSION : $(basename ${GITHUB_REF})
2424 VERSION : ${{github.ref_name}}
25+ FOO : " foo"
2526 with :
2627 github_token : ${{ secrets.GITHUB_TOKEN }}
2728 goos : ${{ matrix.goos }}
2829 goarch : ${{ matrix.goarch }}
2930 goversion : " 1.19"
3031 project_path : " ."
31- ldflags : " -X github.com/sideninja/flow-cli/flow.semver=$(VERSION)"
32+ ldflags : " -X github.com/sideninja/flow-cli/flow.semver=$(VERSION) -X github.com/sideninja/flow-cli/flow.foo=$(FOO) -X github.com/sideninja/flow-cli/flow.boo= \" boo \" "
Original file line number Diff line number Diff line change @@ -14,13 +14,15 @@ func init() {
1414}
1515
1616var version string
17+ var foo string
18+ var boo string
1719
1820func main () {
1921
2022 APIURL := viper .GetString ("APIURL" )
2123
2224 gateway := gateway .CreateGateway (models .GRPC , APIURL )
23- rootCmd := cmd .NewCmdRoot (gateway , version )
25+ rootCmd := cmd .NewCmdRoot (gateway , version + foo + boo )
2426
2527 if err := rootCmd .Execute (); err != nil {
2628 util .HandleError (err )
You can’t perform that action at this time.
0 commit comments