Skip to content

Commit

Permalink
Switch from github.com/hpcloud/tail to github.com/nxadm/tail
Browse files Browse the repository at this point in the history
hpcloud/tail doesn't seem to be maintained anymore and there's quite a
few bugs accumulated, many have been fixed in the maintained fork:
    nxadm/tail#6
including the one that prevents reading rotated audit logs. Let's switch
to the maintained version.

Signed-off-by: Jakub Hrozek <[email protected]>
  • Loading branch information
jhrozek committed Jul 2, 2021
1 parent 169e68f commit 0018d6c
Show file tree
Hide file tree
Showing 53 changed files with 325 additions and 2,638 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ require (
github.com/containers/common v0.40.1
github.com/crossplane/crossplane-runtime v0.14.0
github.com/go-logr/logr v0.4.0
github.com/hpcloud/tail v1.0.0
github.com/maxbrunsfeld/counterfeiter/v6 v6.4.1
github.com/nxadm/tail v1.4.8
github.com/pkg/errors v0.9.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.48.1
github.com/prometheus/client_golang v1.11.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,6 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
Expand Down Expand Up @@ -1412,7 +1411,6 @@ gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2/go.mod h1:Xk6kEKp8OKb+X14hQBKWaSkCsqBpgog8nAV2xsGOxlo=
gopkg.in/inf.v0 v0.9.0/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/daemon/enricher/enricher.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/ReneKroon/ttlcache/v2"
"github.com/go-logr/logr"
"github.com/hpcloud/tail"
"github.com/nxadm/tail"
"github.com/pkg/errors"

api "sigs.k8s.io/security-profiles-operator/api/server"
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/daemon/enricher/enricher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"time"

"github.com/go-logr/logr"
"github.com/hpcloud/tail"
"github.com/nxadm/tail"
"github.com/stretchr/testify/require"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/daemon/enricher/enricherfakes/fake_impl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/pkg/daemon/enricher/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"context"
"os"

"github.com/hpcloud/tail"
"github.com/nxadm/tail"
"google.golang.org/grpc"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
3 changes: 0 additions & 3 deletions vendor/github.com/hpcloud/tail/.gitignore

This file was deleted.

18 changes: 0 additions & 18 deletions vendor/github.com/hpcloud/tail/.travis.yml

This file was deleted.

63 changes: 0 additions & 63 deletions vendor/github.com/hpcloud/tail/CHANGES.md

This file was deleted.

19 changes: 0 additions & 19 deletions vendor/github.com/hpcloud/tail/Dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/github.com/hpcloud/tail/Makefile

This file was deleted.

28 changes: 0 additions & 28 deletions vendor/github.com/hpcloud/tail/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/github.com/hpcloud/tail/appveyor.yml

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/github.com/hpcloud/tail/tail_posix.go

This file was deleted.

12 changes: 0 additions & 12 deletions vendor/github.com/hpcloud/tail/tail_windows.go

This file was deleted.

3 changes: 3 additions & 0 deletions vendor/github.com/nxadm/tail/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions vendor/github.com/nxadm/tail/CHANGES.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions vendor/github.com/nxadm/tail/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
44 changes: 44 additions & 0 deletions vendor/github.com/nxadm/tail/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions vendor/github.com/nxadm/tail/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vendor/github.com/nxadm/tail/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0018d6c

Please sign in to comment.