-
Notifications
You must be signed in to change notification settings - Fork 141
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
validate: CheckLinux is platform dependent #560
Conversation
Hi @vbatts , I think 'validate.go' built in a non-Linux environment could also validate the Linux struct. |
On Wed, Jan 24, 2018 at 08:37:17AM +0000, (Liang Chenye) wrote:
I think 'validate.go' built in a non-Linux environment could also
validate the Linux struct.
+1, as long as ‘HostSpecific’ wasn't set (in which case we should
error out). I'm in favor of moving anything that won't compile on
other platforms (and is only used for HostSpecific checks) over to
Linux-only helper functions, but I'd rather not move *all* of
CheckLinux.
|
LGTM |
But you lose the ability to do host-agnostic, cross-platform validation. More on that in #445. Is cross-platform validation not a goal of this project? |
I've filed #565 with a start at the narrower change I think we want to see, allowing for Windows hosts to compile |
Need rebase @vbatts . |
Signed-off-by: Vincent Batts <[email protected]>
updated. PTAL. |
Signed-off-by: Vincent Batts [email protected]