diff --git a/go.mod b/go.mod index a8edd743..6662be29 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,11 @@ module github.com/roddhjav/apparmor.d go 1.22 require ( - github.com/arduino/go-paths-helper v1.12.0 + github.com/stretchr/testify v1.9.0 gopkg.in/yaml.v3 v3.0.1 ) + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect +) diff --git a/pkg/aa/profile.go b/pkg/aa/profile.go index 2e97b9d4..b68d974c 100644 --- a/pkg/aa/profile.go +++ b/pkg/aa/profile.go @@ -11,7 +11,7 @@ import ( "sort" "strings" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" ) // Default Apparmor magic directory: /etc/apparmor.d/. diff --git a/pkg/aa/profile_test.go b/pkg/aa/profile_test.go index 78206b26..094c8e5c 100644 --- a/pkg/aa/profile_test.go +++ b/pkg/aa/profile_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" ) func readprofile(path string) string { diff --git a/pkg/prebuild/cfg/directories.go b/pkg/prebuild/cfg/directories.go index 7d482c4b..4032249b 100644 --- a/pkg/prebuild/cfg/directories.go +++ b/pkg/prebuild/cfg/directories.go @@ -4,7 +4,7 @@ package cfg -import "github.com/arduino/go-paths-helper" +import "github.com/roddhjav/apparmor.d/pkg/paths" var ( // Root is the root directory for the build diff --git a/pkg/prebuild/cfg/files_test.go b/pkg/prebuild/cfg/files_test.go index 00aadc03..c3d89dd2 100644 --- a/pkg/prebuild/cfg/files_test.go +++ b/pkg/prebuild/cfg/files_test.go @@ -8,7 +8,7 @@ import ( "reflect" "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" ) func TestFlagger_Read(t *testing.T) { diff --git a/pkg/prebuild/cfg/os.go b/pkg/prebuild/cfg/os.go index d792c490..17713c6a 100644 --- a/pkg/prebuild/cfg/os.go +++ b/pkg/prebuild/cfg/os.go @@ -9,7 +9,7 @@ import ( "slices" "strings" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" ) var ( diff --git a/pkg/prebuild/cfg/os_test.go b/pkg/prebuild/cfg/os_test.go index cb1032ce..b0fbd050 100644 --- a/pkg/prebuild/cfg/os_test.go +++ b/pkg/prebuild/cfg/os_test.go @@ -8,7 +8,7 @@ import ( "reflect" "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" ) const ( diff --git a/pkg/prebuild/directive/core.go b/pkg/prebuild/directive/core.go index e6f97e02..0d638c0c 100644 --- a/pkg/prebuild/directive/core.go +++ b/pkg/prebuild/directive/core.go @@ -9,7 +9,7 @@ import ( "regexp" "strings" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" ) diff --git a/pkg/prebuild/directive/core_test.go b/pkg/prebuild/directive/core_test.go index c74192ff..c30a5afd 100644 --- a/pkg/prebuild/directive/core_test.go +++ b/pkg/prebuild/directive/core_test.go @@ -8,7 +8,7 @@ import ( "reflect" "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" ) func TestNewOption(t *testing.T) { diff --git a/pkg/prebuild/directive/exec_test.go b/pkg/prebuild/directive/exec_test.go index a2c8a6f1..8f6c2ebd 100644 --- a/pkg/prebuild/directive/exec_test.go +++ b/pkg/prebuild/directive/exec_test.go @@ -7,7 +7,7 @@ package directive import ( "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" ) diff --git a/pkg/prebuild/directive/stack_test.go b/pkg/prebuild/directive/stack_test.go index 4d5a284a..da3208ab 100644 --- a/pkg/prebuild/directive/stack_test.go +++ b/pkg/prebuild/directive/stack_test.go @@ -7,7 +7,7 @@ package directive import ( "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" ) diff --git a/pkg/prebuild/prebuild.go b/pkg/prebuild/prebuild.go index 4553156c..faf7d914 100644 --- a/pkg/prebuild/prebuild.go +++ b/pkg/prebuild/prebuild.go @@ -7,8 +7,8 @@ package prebuild import ( "strings" - "github.com/arduino/go-paths-helper" "github.com/roddhjav/apparmor.d/pkg/logging" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/builder" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" "github.com/roddhjav/apparmor.d/pkg/prebuild/directive" diff --git a/pkg/prebuild/prebuild_test.go b/pkg/prebuild/prebuild_test.go index 48f7cda7..db709c31 100644 --- a/pkg/prebuild/prebuild_test.go +++ b/pkg/prebuild/prebuild_test.go @@ -9,7 +9,7 @@ import ( "os/exec" "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/builder" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" "github.com/roddhjav/apparmor.d/pkg/prebuild/prepare" diff --git a/pkg/prebuild/prepare/core_test.go b/pkg/prebuild/prepare/core_test.go index 591bf838..34071ff3 100644 --- a/pkg/prebuild/prepare/core_test.go +++ b/pkg/prebuild/prepare/core_test.go @@ -10,7 +10,7 @@ import ( "slices" "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" ) diff --git a/pkg/prebuild/prepare/fsp.go b/pkg/prebuild/prepare/fsp.go index 29a7cce2..ac3e0504 100644 --- a/pkg/prebuild/prepare/fsp.go +++ b/pkg/prebuild/prepare/fsp.go @@ -7,7 +7,7 @@ package prepare import ( "strings" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" "github.com/roddhjav/apparmor.d/pkg/util" ) diff --git a/pkg/prebuild/prepare/ignore.go b/pkg/prebuild/prepare/ignore.go index 3fd01495..92a1498a 100644 --- a/pkg/prebuild/prepare/ignore.go +++ b/pkg/prebuild/prepare/ignore.go @@ -5,7 +5,7 @@ package prepare import ( - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" ) diff --git a/pkg/prebuild/prepare/merge.go b/pkg/prebuild/prepare/merge.go index d88f5126..86a2cead 100644 --- a/pkg/prebuild/prepare/merge.go +++ b/pkg/prebuild/prepare/merge.go @@ -8,7 +8,7 @@ import ( "os" "path/filepath" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" ) diff --git a/pkg/prebuild/prepare/synchronise.go b/pkg/prebuild/prepare/synchronise.go index 57e27a69..e2b5dacd 100644 --- a/pkg/prebuild/prepare/synchronise.go +++ b/pkg/prebuild/prepare/synchronise.go @@ -5,7 +5,7 @@ package prepare import ( - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg" "github.com/roddhjav/apparmor.d/pkg/util" ) diff --git a/pkg/util/tools.go b/pkg/util/tools.go index 604b8874..eb339faa 100644 --- a/pkg/util/tools.go +++ b/pkg/util/tools.go @@ -10,7 +10,7 @@ import ( "slices" "strings" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" ) var ( diff --git a/pkg/util/tools_test.go b/pkg/util/tools_test.go index a253f563..b6f85a38 100644 --- a/pkg/util/tools_test.go +++ b/pkg/util/tools_test.go @@ -9,7 +9,7 @@ import ( "regexp" "testing" - "github.com/arduino/go-paths-helper" + "github.com/roddhjav/apparmor.d/pkg/paths" ) func TestDecodeHexInString(t *testing.T) {