mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
kmsg: Use Go Modules
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
This commit is contained in:
parent
65da053ac3
commit
0ee4d71562
@ -1,7 +1,7 @@
|
|||||||
FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS mirror
|
FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS mirror
|
||||||
|
|
||||||
RUN apk add --no-cache go musl-dev linux-headers
|
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
|
# Hack to work around an issue with go on arm64 requiring gcc
|
||||||
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
|
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
|
||||||
|
|
||||||
|
8
pkg/kmsg/go.mod
Normal file
8
pkg/kmsg/go.mod
Normal file
@ -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
|
||||||
|
)
|
13
pkg/kmsg/go.sum
Normal file
13
pkg/kmsg/go.sum
Normal file
@ -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=
|
@ -1 +0,0 @@
|
|||||||
github.com/euank/go-kmsg-parser 5ba4d492e455a77d25dcf0d2c4acc9f2afebef4e
|
|
19
pkg/kmsg/vendor/github.com/euank/go-kmsg-parser/README.md
generated
vendored
19
pkg/kmsg/vendor/github.com/euank/go-kmsg-parser/README.md
generated
vendored
@ -1,19 +0,0 @@
|
|||||||
# go-kmsg-parser
|
|
||||||
|
|
||||||
[](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
|
|
5
pkg/kmsg/vendor/modules.txt
vendored
Normal file
5
pkg/kmsg/vendor/modules.txt
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user