-
Notifications
You must be signed in to change notification settings - Fork 263
ci: go tool go-generate-fast #6933
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
base: develop
Are you sure you want to change the base?
Conversation
Jenkins Builds
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6933 +/- ##
===========================================
+ Coverage 58.88% 58.95% +0.06%
===========================================
Files 822 822
Lines 121999 121999
===========================================
+ Hits 71838 71922 +84
+ Misses 42727 42659 -68
+ Partials 7434 7418 -16
Flags with carried forward coverage won't be shown. Click here to find out more. |
5826843 to
fa86b5e
Compare
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.
That is a lot of stuff just for our tooling:
~/work/status-go ci/go-tool-go-generate-fast
> g show --stat | awk -F'[ /]' '/^ vendor/{print $2 "/" $3 "/" $4}' | sort -u | grep -v modules.txt | xargs du -hsc | tail -n1
18M total
I really hate the use of vendor folder, but if that's what the devs like...
|
@jakubgs I have the vendor changes in a separate commit, you can review the actual changes in d31bbe7
I agree it's a lot. But this tool will save devs 25sec on every build, which I believe is very important.
I also hate it. But that is the only way to secure dependencies in Go, because they don't have a proper package manager. We can re-consider this, if we believe that we're safe enough from this to happen. I'm truly open to this discussion, it's gonna be easy to convince me 😄 |
|
I'd love to approve it but my browser freezes when i try to load the diff... |
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.
Finally, managed to approve.
|
Gonna merge after this one, not to pollute the repo: |

Description
Sine we don't stage the generated files, it is essential to use cache, because normal generation takes ~25s.
I have implemented support for
go tooltogo-generate-fast. Using our fork for now, but I have a PR for the upstream: