validate: CheckLinux is platform dependent#560
validate: CheckLinux is platform dependent#560zhouhao3 merged 1 commit intoopencontainers:masterfrom
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]