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
Move all 'common' code to 'pkg' #11331
Move all 'common' code to 'pkg' #11331
Conversation
Please set the appropriate release note label. |
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.
The maptool
build failure on Travis CI looks related to this PR: https://travis-ci.com/github/cilium/cilium/jobs/327849061
b53bbf9
to
4a3df6a
Compare
test-me-please |
Precheck failed,
|
This PR moves the common packages to the pkg folder. Fixes: cilium#11293 Signed-off-by: Swaminathan Vasudevan <svasudevan@suse.com>
4a3df6a
to
3c784c7
Compare
test-me-please |
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.
Please also drop the ./common/...
entry from the govet
target in Makefile
(can be done as a follow-up PR):
Line 403 in 5aeea78
./common/... \ |
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.
Thanks for picking this up! Looks like a good first cut.
I think a follow-up could revise what's left in pkg/common
and determine whether they would be more appropriate in a combined package with other bits, because common
is so generic that it can easily magnet anything that doesn't fit somewhere. Also I saw the pkg/common/build.sh
which can be removed.
I also wonder about pkg/addressing
vs. pkg/types
, seems like there's some commonality here which we could review to see if it makes sense to combine these (potentially also related, pkg/cidr
.. For the L2 stuff we have pkg/mac
.
None of this is blocking, we can further iterate on top of this PR as a base.
There's been 3 reviews and the changes are trivial for remaining codeowners; it's also passing CI. Merging. |
Makes sense. |
This PR moves the common packages to the pkg folder.
Fixes: #11293
Signed-off-by: Swaminathan Vasudevan svasudevan@suse.com