-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add android os #25
Add android os #25
Conversation
can someone give me a review? |
ifaddrs.go
Outdated
return "", errors.New("No default interface found") | ||
} | ||
|
||
// parseDefaultIfNameFromIPCmd parses the default interface from ip(8) for |
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.
can you update the function name with the suffix Android
?
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, Updated to parseDefaultIfNameFromIPCmdAndroid
Thanks |
What's the reason to not support this? This is a library; Preeta's comment is about running an enterprise-grade scheduler on Nomad. I don't think they're equivalent. |
Reopening for further discussion. |
Actually i agree, this is a library and not a nomad component, so it can have multiple applications. |
Thank you for doing this @amfern, thank you for adding the bulk of this behind an android build tag . |
Just checking in, what stops it from being merged, do you need something from me? |
Allthough android is linux the 'ip route' command doesn't return 'default' line. Android has only one interface active at any time.
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!
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2 Relevant changes: - hashicorp/go-sockaddr#25 Add android os - hashicorp/go-sockaddr#28 Add go.mod Signed-off-by: Sebastiaan van Stijn <[email protected]>
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2 Relevant changes: - hashicorp/go-sockaddr#25 Add android os - hashicorp/go-sockaddr#28 Add go.mod Signed-off-by: Sebastiaan van Stijn <[email protected]>
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2 Relevant changes: - hashicorp/go-sockaddr#25 Add android os - hashicorp/go-sockaddr#28 Add go.mod Signed-off-by: Sebastiaan van Stijn <[email protected]> Upstream-commit: 492945c2d553c1e8a13ad9c06aa2eb000d03f631 Component: engine
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2 Relevant changes: - hashicorp/go-sockaddr#25 Add android os - hashicorp/go-sockaddr#28 Add go.mod Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 492945c) Signed-off-by: Sebastiaan van Stijn <[email protected]>
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2 Relevant changes: - hashicorp/go-sockaddr#25 Add android os - hashicorp/go-sockaddr#28 Add go.mod Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 492945c2d553c1e8a13ad9c06aa2eb000d03f631) Signed-off-by: Sebastiaan van Stijn <[email protected]> Upstream-commit: 5196dc65e7dae7f77be8b0f2f99eec5f967f529f Component: engine
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2 Relevant changes: - hashicorp/go-sockaddr#25 Add android os - hashicorp/go-sockaddr#28 Add go.mod Signed-off-by: Sebastiaan van Stijn <[email protected]> Signed-off-by: zach <[email protected]>
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2 Relevant changes: - hashicorp/go-sockaddr#25 Add android os - hashicorp/go-sockaddr#28 Add go.mod Signed-off-by: Sebastiaan van Stijn <[email protected]>
Allthough android is linux the 'ip route' command doesn't return 'default' line.
Android has only one interface active at any time.