-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use goversioninfo to create Windows version info #3310
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
Conversation
dd69cb4 to
cece8be
Compare
Codecov Report
@@ Coverage Diff @@
## master #3310 +/- ##
=======================================
Coverage 57.99% 57.99%
=======================================
Files 302 302
Lines 21764 21764
=======================================
Hits 12621 12621
Misses 8219 8219
Partials 924 924 |
mat007
left a comment
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.
Nice!
4bf0cf8 to
aad3090
Compare
scripts/build/mkversioninfo
Outdated
| } | ||
| } | ||
| EOL | ||
| cat ./cmd/docker/versioninfo.json |
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.
This is just for debugging, correct? (wondering if it should do this by default, or left to the consumer of this script)
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.
Yeah just for debugging and also audit in CI.
2ac67d5 to
a4ae4f1
Compare
b0a73c7 to
341292d
Compare
341292d to
79e933c
Compare
thaJeztah
left a comment
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.
LGTM
|
/cc @cpuguy83 (in case you're using this) |
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
79e933c to
75284bd
Compare
thaJeztah
left a comment
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.
LGTM!
|
We discussed this change in the maintainers meeting, and everyone agreed that this was a nicer solution than what we had before, so I'll bring this in once CI finishes 👍 |
Follow-up moby/moby#42872
- What I did
Replace windres with native Go implementation to be able to create a syso file which contains Microsoft Windows Version Information and an icon using goversioninfo.
This also fixes an issue with
VERSIONINFO:Tool is not vendored but I can do that it if you want.
- How I did it
Remove windres references and replace with goversioninfo. Also use
go:generatefor better integration and add legal copyright field.- How to verify it
should produce:
COMPANY_NAMEcan be used to set the company that produced the windows binary.- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
cc @thaJeztah
Signed-off-by: CrazyMax crazy-max@users.noreply.github.com