Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Ockam version to config file #8

Open
sobi3ch opened this issue May 19, 2022 · 2 comments
Open

Extract Ockam version to config file #8

sobi3ch opened this issue May 19, 2022 · 2 comments
Assignees

Comments

@sobi3ch
Copy link
Contributor

sobi3ch commented May 19, 2022

@sobi3ch sobi3ch self-assigned this May 24, 2022
@arbourd
Copy link
Contributor

arbourd commented May 25, 2022

Could use a build flag too to get it in there too (and cat it in via the file`).

go build -ldflags="-X 'main.OckamVersion=v1.0.0'"
package main

import (
	"fmt"
)

var OckamVersion = "v0.0.1"

func main() {
	fmt.Println("Version:\t", Version)
}

@sobi3ch
Copy link
Contributor Author

sobi3ch commented May 26, 2022

Hi @arbourd. Thank you for shearing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants