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

Add version info command to signal server #739

Merged
merged 4 commits into from
Mar 15, 2023
Merged

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Mar 13, 2023

Describe your changes

Add version command to signal and management servers.

The version information will be filled during build time.

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@@ -15,14 +15,18 @@ const (
)

var (
// will be replaced with the release version when using goreleaser
version = "development"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we moved away from the global var to keep version in a single package system, have a look at https://github.com/netbirdio/netbird/blob/main/client/cmd/version.go, main benefits of this approach is that we can use the system.NetbirdVersion() call in other places and keep consistency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That package is inside in the client tree. Should I move out the version logic to outer, to the root?

@pappz pappz merged commit 292ee26 into main Mar 15, 2023
@pappz pappz deleted the feature/signal-cmd-version branch March 15, 2023 06:54
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
Add version command to signal and management servers.

The version information will be filled during build time.
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

Successfully merging this pull request may close these issues.

2 participants