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

Get version information from embedded build info #367

Merged
merged 1 commit into from
May 25, 2023
Merged

Conversation

gammazero
Copy link
Collaborator

The version is provided by the version.json file and the revision information is build into the binary by the compiler. Use this information instead of fetching it from github each build.

  • Installed binary has version information.
  • Builds work even without connectivity to github.

The version is provided by the version.json file and the revision information is build into the binary by the compiler. Use this information instead of fetching it from github each build.

- Installed binary has version information.
- Builds work even without connectivity to github.
@codecov-commenter
Copy link

codecov-commenter commented May 25, 2023

Codecov Report

Patch coverage: 37.14% and project coverage change: -0.22 ⚠️

Comparison is base (83b5d33) 43.93% compared to head (211f601) 43.72%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #367      +/-   ##
==========================================
- Coverage   43.93%   43.72%   -0.22%     
==========================================
  Files          70       71       +1     
  Lines        5658     5693      +35     
==========================================
+ Hits         2486     2489       +3     
- Misses       2870     2898      +28     
- Partials      302      306       +4     
Impacted Files Coverage Δ
cmd/provider/provider.go 0.00% <0.00%> (ø)
version.go 52.00% <52.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gammazero gammazero merged commit e247a19 into main May 25, 2023
@gammazero gammazero deleted the version-from-build branch May 25, 2023 21:59
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