-
Couldn't load subscription status.
- Fork 109
Build tags omit network drivers #533
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: master
Are you sure you want to change the base?
Build tags omit network drivers #533
Conversation
b123542 to
95cf9e5
Compare
| The child command can enter `$ROOTLESSKIT_STATE_DIR/netns` by itself to create nested network namespaces. | ||
|
|
||
|
|
||
| ## Build tags to omit drivers |
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 should be probably in /BUILDING.md
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.
fixed
docs/network.md
Outdated
| go build -tags no_slirp4netns ./cmd/rootlesskit | ||
|
|
||
| - Build without lxc-user-nic support: | ||
| go build -tags no_lxcusernic ./cmd/rootlesskit |
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.
Only one example should suffice for a document.
The CI should test all of them, and a combination of them too.
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.
fixed, but I what to test here ?
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.
Just test go build with several combination s of the tags
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.
I added some tests
|
|
||
| // NewParentDriver returns a stub when built with the no_gvisortapvsock tag. | ||
| func NewParentDriver(logWriter io.Writer, mtu int, ipnet *net.IPNet, ifname string, disableHostLoopback bool, enableIPv6 bool) (network.ParentDriver, error) { | ||
| return &disabledParent{}, errors.New("gvisor-tap-vsock network driver disabled by build tag no_gvisortapvsock") |
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.
Omitted drivers should not appear in --help
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.
fixed
4c89ecd to
e13e7de
Compare
Signed-off-by: fahed dorgaa <[email protected]>
4e968b8 to
a91432a
Compare
|
@AkihiroSuda PTAL |
No description provided.