-
Notifications
You must be signed in to change notification settings - Fork 7
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
CI for tests/releases #49
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
miki725
commented
Oct 25, 2022
Comment on lines
+28
to
+39
// inspired from | ||
// https://github.com/mvdan/sh/blob/6ba49e2c622e3f56330f4de6238a390f395db2d8/cmd/shfmt/main.go#L181-L192 | ||
if info, ok := debug.ReadBuildInfo(); ok && version == "(devel)" { | ||
mod := &info.Main | ||
if mod.Replace != nil { | ||
mod = mod.Replace | ||
} | ||
if mod.Version != "" { | ||
version = mod.Version | ||
} | ||
} | ||
return version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➜ go install -v github.com/crashappsec/github-analyzer/cmd/github-analyzer@6dcfd30284c0e7593f98b14d303936321cabb7aa
go: downloading github.com/crashappsec/github-analyzer v0.1.4-pre-alpha.0.20221024225143-6dcfd30284c0
github.com/crashappsec/github-analyzer/pkg/config
github.com/crashappsec/github-analyzer/pkg/issue/category
github.com/crashappsec/github-analyzer/pkg/issue/resource
github.com/crashappsec/github-analyzer/pkg/issue/tags
github.com/crashappsec/github-analyzer/pkg/issue/severity
github.com/crashappsec/github-analyzer/pkg/issue
github.com/crashappsec/github-analyzer/pkg/log
github.com/crashappsec/github-analyzer/pkg/github/types
github.com/crashappsec/github-analyzer/pkg/futils
github.com/crashappsec/github-analyzer/pkg/github/utils
github.com/crashappsec/github-analyzer/pkg/scraping
github.com/crashappsec/github-analyzer/pkg/github/repo
github.com/crashappsec/github-analyzer/pkg/github/org
github.com/crashappsec/github-analyzer/pkg/github/auditor
github.com/crashappsec/github-analyzer/pkg/output/html
github.com/crashappsec/github-analyzer/cmd/github-analyzer
➜ github-analyzer --version
v0.1.4-pre-alpha.0.20221024225143-6dcfd30284c0
🎉 (note the commit was not built with version info via Makefile)
nettrino
approved these changes
Oct 25, 2022
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this PR:
version.txt
so that CI automatically populates it both for binary distributions as well as viagoreleaser
Dockerfile
to create smallest possible image just based on alpine+binary