From dea05172b2bc306f423fd23e97bc085ede150b80 Mon Sep 17 00:00:00 2001 From: grantseltzer Date: Mon, 27 Jun 2022 16:14:32 -0400 Subject: [PATCH] fix dependency issue with unix package (#184) Signed-off-by: grantseltzer --- go.mod | 8 +++++++- selftest/create-map/go.mod | 7 ++++--- selftest/create-map/go.sum | 1 + selftest/error-handling/go.mod | 4 +++- selftest/error-handling/go.sum | 1 + selftest/iterators/go.mod | 4 +++- selftest/iterators/go.sum | 1 + selftest/map-batch/go.mod | 4 +++- selftest/map-batch/go.sum | 1 + selftest/map-pin-info/go.mod | 4 +++- selftest/map-pin-info/go.sum | 1 + selftest/map-update/go.mod | 4 +++- selftest/map-update/go.sum | 1 + selftest/object-iterator/go.mod | 4 +++- selftest/object-iterator/go.sum | 1 + selftest/percpu/go.mod | 4 +++- selftest/percpu/go.sum | 1 + selftest/perfbuffers/go.mod | 4 +++- selftest/perfbuffers/go.sum | 1 + selftest/probe-features/go.mod | 4 +++- selftest/probe-features/go.sum | 1 + selftest/ringbuffers/go.mod | 4 +++- selftest/ringbuffers/go.sum | 1 + selftest/set-attach/go.mod | 4 +++- selftest/set-attach/go.sum | 1 + selftest/tc/go.mod | 4 +++- selftest/tc/go.sum | 1 + selftest/tracing/go.mod | 4 +++- selftest/tracing/go.sum | 1 + selftest/uprobe/go.mod | 4 +++- selftest/uprobe/go.sum | 1 + selftest/version/go.mod | 4 +++- selftest/version/go.sum | 1 + selftest/xdp/go.mod | 4 +++- selftest/xdp/go.sum | 1 + 35 files changed, 76 insertions(+), 20 deletions(-) diff --git a/go.mod b/go.mod index 87764f1a..ddf5365f 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,14 @@ module github.com/aquasecurity/libbpfgo -go 1.16 +go 1.18 require ( github.com/stretchr/testify v1.7.0 golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 ) + +require ( + github.com/davecgh/go-spew v1.1.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect +) diff --git a/selftest/create-map/go.mod b/selftest/create-map/go.mod index 0e8502bf..b1b98a8b 100644 --- a/selftest/create-map/go.mod +++ b/selftest/create-map/go.mod @@ -1,7 +1,8 @@ module github.com/aquasecurity/libbpfgo/selftest/map-pin-info -go 1.16 - -require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +go 1.18 replace github.com/aquasecurity/libbpfgo => ../../ + +require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect diff --git a/selftest/create-map/go.sum b/selftest/create-map/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/create-map/go.sum +++ b/selftest/create-map/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/error-handling/go.mod b/selftest/error-handling/go.mod index e15b6dbc..9a8270eb 100644 --- a/selftest/error-handling/go.mod +++ b/selftest/error-handling/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/map-update -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/error-handling/go.sum b/selftest/error-handling/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/error-handling/go.sum +++ b/selftest/error-handling/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/iterators/go.mod b/selftest/iterators/go.mod index 27efbc63..49603e04 100644 --- a/selftest/iterators/go.mod +++ b/selftest/iterators/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/iterators -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/iterators/go.sum b/selftest/iterators/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/iterators/go.sum +++ b/selftest/iterators/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/map-batch/go.mod b/selftest/map-batch/go.mod index e15b6dbc..9a8270eb 100644 --- a/selftest/map-batch/go.mod +++ b/selftest/map-batch/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/map-update -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/map-batch/go.sum b/selftest/map-batch/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/map-batch/go.sum +++ b/selftest/map-batch/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/map-pin-info/go.mod b/selftest/map-pin-info/go.mod index 0e8502bf..0c196315 100644 --- a/selftest/map-pin-info/go.mod +++ b/selftest/map-pin-info/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/map-pin-info -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/map-pin-info/go.sum b/selftest/map-pin-info/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/map-pin-info/go.sum +++ b/selftest/map-pin-info/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/map-update/go.mod b/selftest/map-update/go.mod index e15b6dbc..9a8270eb 100644 --- a/selftest/map-update/go.mod +++ b/selftest/map-update/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/map-update -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/map-update/go.sum b/selftest/map-update/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/map-update/go.sum +++ b/selftest/map-update/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/object-iterator/go.mod b/selftest/object-iterator/go.mod index d282d08b..29fc9756 100644 --- a/selftest/object-iterator/go.mod +++ b/selftest/object-iterator/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/object-iterator/go.sum b/selftest/object-iterator/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/object-iterator/go.sum +++ b/selftest/object-iterator/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/percpu/go.mod b/selftest/percpu/go.mod index d282d08b..29fc9756 100644 --- a/selftest/percpu/go.mod +++ b/selftest/percpu/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/percpu/go.sum b/selftest/percpu/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/percpu/go.sum +++ b/selftest/percpu/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/perfbuffers/go.mod b/selftest/perfbuffers/go.mod index d282d08b..29fc9756 100644 --- a/selftest/perfbuffers/go.mod +++ b/selftest/perfbuffers/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/perfbuffers/go.sum b/selftest/perfbuffers/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/perfbuffers/go.sum +++ b/selftest/perfbuffers/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/probe-features/go.mod b/selftest/probe-features/go.mod index 0e8502bf..0c196315 100644 --- a/selftest/probe-features/go.mod +++ b/selftest/probe-features/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/map-pin-info -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/probe-features/go.sum b/selftest/probe-features/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/probe-features/go.sum +++ b/selftest/probe-features/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/ringbuffers/go.mod b/selftest/ringbuffers/go.mod index d282d08b..29fc9756 100644 --- a/selftest/ringbuffers/go.mod +++ b/selftest/ringbuffers/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/ringbuffers/go.sum b/selftest/ringbuffers/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/ringbuffers/go.sum +++ b/selftest/ringbuffers/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/set-attach/go.mod b/selftest/set-attach/go.mod index d282d08b..29fc9756 100644 --- a/selftest/set-attach/go.mod +++ b/selftest/set-attach/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/set-attach/go.sum b/selftest/set-attach/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/set-attach/go.sum +++ b/selftest/set-attach/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/tc/go.mod b/selftest/tc/go.mod index d282d08b..29fc9756 100644 --- a/selftest/tc/go.mod +++ b/selftest/tc/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/tc/go.sum b/selftest/tc/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/tc/go.sum +++ b/selftest/tc/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/tracing/go.mod b/selftest/tracing/go.mod index d282d08b..29fc9756 100644 --- a/selftest/tracing/go.mod +++ b/selftest/tracing/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/tracing/go.sum b/selftest/tracing/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/tracing/go.sum +++ b/selftest/tracing/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/uprobe/go.mod b/selftest/uprobe/go.mod index 768ecd70..f6f62041 100644 --- a/selftest/uprobe/go.mod +++ b/selftest/uprobe/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/uprobe -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/uprobe/go.sum b/selftest/uprobe/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/uprobe/go.sum +++ b/selftest/uprobe/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/version/go.mod b/selftest/version/go.mod index d282d08b..29fc9756 100644 --- a/selftest/version/go.mod +++ b/selftest/version/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/version/go.sum b/selftest/version/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/version/go.sum +++ b/selftest/version/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/selftest/xdp/go.mod b/selftest/xdp/go.mod index d282d08b..29fc9756 100644 --- a/selftest/xdp/go.mod +++ b/selftest/xdp/go.mod @@ -1,7 +1,9 @@ module github.com/aquasecurity/libbpfgo/selftest/perfbuffers -go 1.16 +go 1.18 require github.com/aquasecurity/libbpfgo v0.2.1-libbpf-0.4.0 +require golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect + replace github.com/aquasecurity/libbpfgo => ../../ diff --git a/selftest/xdp/go.sum b/selftest/xdp/go.sum index 3b1886cc..b0f21d61 100644 --- a/selftest/xdp/go.sum +++ b/selftest/xdp/go.sum @@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 h1:hZR0X1kPW+nwyJ9xRxqZk1vx5RUObAPBdKVvXPDUH/E= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=