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 build_tag to summary API endpoint #911

Merged
merged 4 commits into from
Oct 7, 2021
Merged

add build_tag to summary API endpoint #911

merged 4 commits into from
Oct 7, 2021

Conversation

mrpalide
Copy link
Contributor

@mrpalide mrpalide commented Oct 6, 2021

Did you run make format && make check?

Fixes #910

Changes:

  • added new ldflags for build tag
  • skybian tag added for goreleaser

How to test this PR:
use BUILDTAG=something on make command. Same as make build BUILDTAG=something

@ersonp
Copy link
Contributor

ersonp commented Oct 6, 2021

I think we should print build_tag here https://github.com/mrpalide/skywire/blob/124d6f22869dca9c30440d28492b1bd77d2bd46d/cmd/skywire-visor/commands/root.go#L85

@mrpalide
Copy link
Contributor Author

mrpalide commented Oct 6, 2021

pkg/visor/api.go Outdated
}

// buildTag variable that will set when building binary
Copy link
Member

Choose a reason for hiding this comment

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

buildTag variable set at compile time to indicate installation method of visor may be clearer.

pkg/visor/api.go Outdated
@@ -313,6 +320,18 @@ func (v *Visor) SkybianBuildVersion() string {
return os.Getenv("SKYBIAN_BUILD_VERSION")
}

// BuildTagValidation implements API.
Copy link
Member

Choose a reason for hiding this comment

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

Seems to be just a helper function.

@jdknives jdknives merged commit 9305b51 into skycoin:develop Oct 7, 2021
@jdknives jdknives mentioned this pull request Oct 7, 2021
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.

3 participants