From 56d7109ad156fbe298b90072d7d30b12714bf02c Mon Sep 17 00:00:00 2001 From: Periyasamy Palanisamy Date: Thu, 9 Sep 2021 17:08:46 +0200 Subject: [PATCH] add linux tag to fix go build issue Signed-off-by: Periyasamy Palanisamy --- go.mod | 2 +- go.sum | 4 ++-- pkg/networkservice/common/resourcepool/client.go | 2 ++ pkg/networkservice/common/resourcepool/common.go | 2 ++ pkg/networkservice/common/resourcepool/server.go | 2 ++ pkg/networkservice/common/resourcepool/server_test.go | 4 ++++ pkg/networkservice/common/token/client.go | 4 +++- pkg/networkservice/common/token/client_test.go | 6 +++++- pkg/networkservice/common/token/common.go | 2 ++ pkg/networkservice/common/token/server.go | 2 ++ 10 files changed, 25 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index a922d8fc..e56e0c0a 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/google/uuid v1.2.0 github.com/networkservicemesh/api v1.0.1-0.20210907194827-9a36433d7d6e github.com/networkservicemesh/sdk v0.5.1-0.20210908084855-0baab927e78f - github.com/networkservicemesh/sdk-kernel v0.0.0-20210908085229-781895269ec7 + github.com/networkservicemesh/sdk-kernel v0.0.0-20210909103050-aec84d8e27cc github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.7.0 go.uber.org/goleak v1.1.10 diff --git a/go.sum b/go.sum index cffc01d0..848a04b4 100644 --- a/go.sum +++ b/go.sum @@ -118,8 +118,8 @@ github.com/networkservicemesh/api v1.0.1-0.20210907194827-9a36433d7d6e h1:PO6tDo github.com/networkservicemesh/api v1.0.1-0.20210907194827-9a36433d7d6e/go.mod h1:B6meq/SWjWR6bGXZdXPfbOeaBK+T1JayLdtEJQCsXKU= github.com/networkservicemesh/sdk v0.5.1-0.20210908084855-0baab927e78f h1:/4p7GqAhjyYgkye/2QxRz8+QV2uDaGg9CFwgoC40br4= github.com/networkservicemesh/sdk v0.5.1-0.20210908084855-0baab927e78f/go.mod h1:eISPu+ySJJ46kg03ZTi/xmpNSU+K4cImwq++ZbDV4F4= -github.com/networkservicemesh/sdk-kernel v0.0.0-20210908085229-781895269ec7 h1:A0grwgCkvKH8sHLJefRUiY+XqNvMgLrswjUrLLB2sZo= -github.com/networkservicemesh/sdk-kernel v0.0.0-20210908085229-781895269ec7/go.mod h1:+528qvrbHWvlne8j2Y18wyjVDgR77/QrclBcyMFBmDE= +github.com/networkservicemesh/sdk-kernel v0.0.0-20210909103050-aec84d8e27cc h1:l36etBtug4PTGRfIMOPnctj8CdBb1GnTpXGn2Pz9MWM= +github.com/networkservicemesh/sdk-kernel v0.0.0-20210909103050-aec84d8e27cc/go.mod h1:+528qvrbHWvlne8j2Y18wyjVDgR77/QrclBcyMFBmDE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= diff --git a/pkg/networkservice/common/resourcepool/client.go b/pkg/networkservice/common/resourcepool/client.go index ba177b38..923b663c 100644 --- a/pkg/networkservice/common/resourcepool/client.go +++ b/pkg/networkservice/common/resourcepool/client.go @@ -16,6 +16,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build linux + package resourcepool import ( diff --git a/pkg/networkservice/common/resourcepool/common.go b/pkg/networkservice/common/resourcepool/common.go index 7dcffe29..83ef9763 100644 --- a/pkg/networkservice/common/resourcepool/common.go +++ b/pkg/networkservice/common/resourcepool/common.go @@ -14,6 +14,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build linux + package resourcepool import ( diff --git a/pkg/networkservice/common/resourcepool/server.go b/pkg/networkservice/common/resourcepool/server.go index 8e05d5ec..2a8fa5bf 100644 --- a/pkg/networkservice/common/resourcepool/server.go +++ b/pkg/networkservice/common/resourcepool/server.go @@ -14,6 +14,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build linux + // Package resourcepool provides chain elements for to select and free VF package resourcepool diff --git a/pkg/networkservice/common/resourcepool/server_test.go b/pkg/networkservice/common/resourcepool/server_test.go index 1fc47b9b..a95e0eec 100644 --- a/pkg/networkservice/common/resourcepool/server_test.go +++ b/pkg/networkservice/common/resourcepool/server_test.go @@ -1,5 +1,7 @@ // Copyright (c) 2020-2021 Doc.ai and/or its affiliates. // +// Copyright (c) 2021 Nordix Foundation. +// // SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,6 +16,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build linux + package resourcepool_test import ( diff --git a/pkg/networkservice/common/token/client.go b/pkg/networkservice/common/token/client.go index 9d2756e8..b736d09f 100644 --- a/pkg/networkservice/common/token/client.go +++ b/pkg/networkservice/common/token/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2020 Doc.ai and/or its affiliates. +// Copyright (c) 2020-2021 Doc.ai and/or its affiliates. // // Copyright (c) 2021 Nordix Foundation. // @@ -16,6 +16,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build linux + // Package token provides chain elements for inserting SRIOV tokens into request and response package token diff --git a/pkg/networkservice/common/token/client_test.go b/pkg/networkservice/common/token/client_test.go index 8aa83db2..6f317c8b 100644 --- a/pkg/networkservice/common/token/client_test.go +++ b/pkg/networkservice/common/token/client_test.go @@ -1,4 +1,6 @@ -// Copyright (c) 2020 Doc.ai and/or its affiliates. +// Copyright (c) 2020-2021 Doc.ai and/or its affiliates. +// +// Copyright (c) 2021 Nordix Foundation. // // SPDX-License-Identifier: Apache-2.0 // @@ -14,6 +16,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build linux + package token_test import ( diff --git a/pkg/networkservice/common/token/common.go b/pkg/networkservice/common/token/common.go index d33c108c..5bab1fad 100644 --- a/pkg/networkservice/common/token/common.go +++ b/pkg/networkservice/common/token/common.go @@ -14,6 +14,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build linux + package token import ( diff --git a/pkg/networkservice/common/token/server.go b/pkg/networkservice/common/token/server.go index 2b5ce52a..b982e404 100644 --- a/pkg/networkservice/common/token/server.go +++ b/pkg/networkservice/common/token/server.go @@ -14,6 +14,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build linux + package token import (