chore: update go mod deps.

This commit is contained in:
Alexandre Pujol 2024-04-28 00:04:42 +01:00
parent 2f3d55e924
commit 0cd0262bed
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
15 changed files with 15 additions and 23 deletions

View File

@ -9,10 +9,10 @@ import (
"fmt"
"io"
"os"
"slices"
"strings"
"github.com/roddhjav/apparmor.d/pkg/logs"
"golang.org/x/exp/slices"
)
const usage = `aa-log [-h] [--systemd] [--file file] [--rules | --raw] [profile]

5
go.mod
View File

@ -1,9 +1,8 @@
module github.com/roddhjav/apparmor.d
go 1.21
go 1.22
require (
github.com/arduino/go-paths-helper v1.12.0
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
)

4
go.sum
View File

@ -6,11 +6,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUFH7PGP+OQ6mgDYo3yuQ=
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc=
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.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

View File

@ -5,9 +5,8 @@
package aa
import (
"slices"
"strings"
"golang.org/x/exp/slices"
)
type MountConditions struct {

View File

@ -7,11 +7,11 @@ package aa
import (
"bytes"
"reflect"
"slices"
"sort"
"strings"
"github.com/arduino/go-paths-helper"
"golang.org/x/exp/slices"
)
// Default Apparmor magic directory: /etc/apparmor.d/.

View File

@ -9,9 +9,8 @@ package aa
import (
"regexp"
"slices"
"strings"
"golang.org/x/exp/slices"
)
var (

View File

@ -7,11 +7,11 @@ package logs
import (
"io"
"regexp"
"slices"
"strings"
"github.com/roddhjav/apparmor.d/pkg/aa"
"github.com/roddhjav/apparmor.d/pkg/util"
"golang.org/x/exp/slices"
)
// Colors

View File

@ -6,10 +6,10 @@ package builder
import (
"regexp"
"slices"
"strings"
"github.com/roddhjav/apparmor.d/pkg/prebuild/cfg"
"golang.org/x/exp/slices"
)
var (

View File

@ -5,9 +5,8 @@
package builder
import (
"slices"
"testing"
"golang.org/x/exp/slices"
)
func TestBuilder_Apply(t *testing.T) {

View File

@ -5,10 +5,10 @@
package builder
import (
"slices"
"strings"
"github.com/roddhjav/apparmor.d/pkg/prebuild/cfg"
"golang.org/x/exp/slices"
)
type Enforce struct {

View File

@ -6,10 +6,10 @@ package cfg
import (
"os"
"slices"
"strings"
"github.com/arduino/go-paths-helper"
"golang.org/x/exp/slices"
)
var (

View File

@ -5,12 +5,12 @@
package directive
import (
"slices"
"strings"
"github.com/roddhjav/apparmor.d/pkg/aa"
"github.com/roddhjav/apparmor.d/pkg/prebuild/cfg"
"github.com/roddhjav/apparmor.d/pkg/util"
"golang.org/x/exp/slices"
)
type Exec struct {

View File

@ -6,10 +6,10 @@ package directive
import (
"regexp"
"slices"
"strings"
"github.com/roddhjav/apparmor.d/pkg/prebuild/cfg"
"golang.org/x/exp/slices"
)
type FilterOnly struct {

View File

@ -7,11 +7,11 @@ package prepare
import (
"os"
"os/exec"
"slices"
"testing"
"github.com/arduino/go-paths-helper"
"github.com/roddhjav/apparmor.d/pkg/prebuild/cfg"
"golang.org/x/exp/slices"
)
func chdirGitRoot() {

View File

@ -10,7 +10,7 @@ import (
"github.com/arduino/go-paths-helper"
"github.com/roddhjav/apparmor.d/pkg/logs"
"github.com/roddhjav/apparmor.d/pkg/util"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)
var (