diff --git a/pkg/kmsg/Dockerfile b/pkg/kmsg/Dockerfile index 2ed180641..f1154a010 100644 --- a/pkg/kmsg/Dockerfile +++ b/pkg/kmsg/Dockerfile @@ -1,7 +1,7 @@ FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS mirror RUN apk add --no-cache go musl-dev linux-headers -ENV GOPATH=/go PATH=$PATH:/go/bin GO111MODULE=off +ENV GOPATH=/go PATH=$PATH:/go/bin # Hack to work around an issue with go on arm64 requiring gcc RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true diff --git a/pkg/kmsg/go.mod b/pkg/kmsg/go.mod new file mode 100644 index 000000000..2ca25c83b --- /dev/null +++ b/pkg/kmsg/go.mod @@ -0,0 +1,8 @@ +module github.com/linuxkit/linuxkit/pkg/kmsg + +go 1.15 + +require ( + github.com/euank/go-kmsg-parser v2.0.0+incompatible + github.com/stretchr/testify v1.7.0 // indirect +) diff --git a/pkg/kmsg/go.sum b/pkg/kmsg/go.sum new file mode 100644 index 000000000..4f05accc6 --- /dev/null +++ b/pkg/kmsg/go.sum @@ -0,0 +1,13 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/euank/go-kmsg-parser v2.0.0+incompatible h1:cHD53+PLQuuQyLZeriD1V/esuG4MuU0Pjs5y6iknohY= +github.com/euank/go-kmsg-parser v2.0.0+incompatible/go.mod h1:MhmAMZ8V4CYH4ybgdRwPr2TU5ThnS43puaKEMpja1uw= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +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= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +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= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/pkg/kmsg/vendor.conf b/pkg/kmsg/vendor.conf deleted file mode 100644 index 6d2f13b46..000000000 --- a/pkg/kmsg/vendor.conf +++ /dev/null @@ -1 +0,0 @@ -github.com/euank/go-kmsg-parser 5ba4d492e455a77d25dcf0d2c4acc9f2afebef4e diff --git a/pkg/kmsg/vendor/github.com/euank/go-kmsg-parser/README.md b/pkg/kmsg/vendor/github.com/euank/go-kmsg-parser/README.md deleted file mode 100644 index 4907f00b2..000000000 --- a/pkg/kmsg/vendor/github.com/euank/go-kmsg-parser/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# go-kmsg-parser - -[![Build Status](https://travis-ci.org/euank/go-kmsg-parser.svg?branch=master)](https://travis-ci.org/euank/go-kmsg-parser) - -This repository contains a library to allow parsing the `/dev/kmsg` device in -Linux. This device provides a read-write interface to the Linux Kernel's ring -buffer. - -In addition to the library, a simple cli-tool that functions similarly to -`dmesg --ctime --follow` is included. This code serves both as a usage example -and as a simple way to verify it works how you'd expect on a given system. - -# Contributions - -Welcome - -# License - -Apache 2.0 diff --git a/pkg/kmsg/vendor/modules.txt b/pkg/kmsg/vendor/modules.txt new file mode 100644 index 000000000..75cdf79f6 --- /dev/null +++ b/pkg/kmsg/vendor/modules.txt @@ -0,0 +1,5 @@ +# github.com/euank/go-kmsg-parser v2.0.0+incompatible +## explicit +github.com/euank/go-kmsg-parser/kmsgparser +# github.com/stretchr/testify v1.7.0 +## explicit