Repository navigation
Decouple consts in pkg/daemon - #397
Conversation
|
I'm confused how the osrelease package split helps; it's only used in the daemon already, right? Or is this just for re-organizing and not actually necessary for #396? |
f06cb4c to
6d9511f
Compare
it's not used just in daemon package, it's also used in cmd/*-daemon package (those are 2 different package) |
|
oh well, it doesn't help right, it's just better to have it there that way |
6d9511f to
f2d5a0e
Compare
jlebon
left a comment
There was a problem hiding this comment.
Just one comment, otherwise looks sane to me! I like the idea of keeping shared consts in a separate pkg to make it easier to tell how things are connected.
f2d5a0e to
81fb350
Compare
to be used across the whole project. Also, unexport some of the consts that were previously wrongly exported. Signed-off-by: Antonio Murdaca <[email protected]>
81fb350 to
7e80ebd
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jlebon, runcom The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
Decouple consts in pkg/daemon
Just refactor, no change in behavior nor nothing (but do please check!)
TL;DR; consts are the only thing shared and by having their own package we can enable cgo just in daemon (as well as having better code in general, I pretend)
Closes #396 and you can build daemon only with cgo