diff --git a/README.md b/README.md index 2a41e98..e331619 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ structure for that files. ## Installing ```bash -go install github.com/derfenix/photocatalog/cmd/photocatalog@latest +go install github.com/derfenix/photocatalog@latest ``` Optionally you could copy created binary from the GO's bin path to system or user $PATH, e.g. /usr/local/bin/. diff --git a/application/application.go b/application/application.go index 63e8ba3..59550a4 100644 --- a/application/application.go +++ b/application/application.go @@ -7,8 +7,8 @@ import ( "os" "sync" - "github.com/derfenix/photocatalog/internal/organizer" - "github.com/derfenix/photocatalog/internal/organizer/modes" + "github.com/derfenix/photocatalog/v2/internal/organizer" + "github.com/derfenix/photocatalog/v2/internal/organizer/modes" ) type Application struct { diff --git a/go.mod b/go.mod index 4240aa4..7374e8f 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ -module github.com/derfenix/photocatalog +module github.com/derfenix/photocatalog/v2 go 1.22 require ( - github.com/fsnotify/fsnotify v1.4.7 - github.com/pkg/errors v0.8.1 + github.com/fsnotify/fsnotify v1.8.0 github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd - golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa // indirect ) + +require golang.org/x/sys v0.28.0 // indirect diff --git a/go.sum b/go.sum index 3a20461..fb196d9 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,10 @@ github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= +github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd h1:CmH9+J6ZSsIjUK3dcGsnCnO41eRBOnY12zwkn5qVwgc= github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd/go.mod h1:hPqNNc0+uJM6H+SuU8sEs5K5IQeKccPqeSjfgcKGgPk= golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa h1:KIDDMLT1O0Nr7TSxp8xM5tJcdn8tgyAONntO829og1M= golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= diff --git a/internal/metadata/default_test.go b/internal/metadata/default_test.go index a15907d..9134851 100644 --- a/internal/metadata/default_test.go +++ b/internal/metadata/default_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - . "github.com/derfenix/photocatalog/internal/metadata" + . "github.com/derfenix/photocatalog/v2/internal/metadata" ) func TestDefault_Extract(t *testing.T) { diff --git a/internal/organizer/modes/copy_test.go b/internal/organizer/modes/copy_test.go index 6ec3ce4..2510b6b 100644 --- a/internal/organizer/modes/copy_test.go +++ b/internal/organizer/modes/copy_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - . "github.com/derfenix/photocatalog/internal/organizer/modes" + . "github.com/derfenix/photocatalog/v2/internal/organizer/modes" ) func TestCopy_PlaceIt(t *testing.T) { diff --git a/internal/organizer/modes/hardlink_test.go b/internal/organizer/modes/hardlink_test.go index 0b0f56e..9ba3931 100644 --- a/internal/organizer/modes/hardlink_test.go +++ b/internal/organizer/modes/hardlink_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - . "github.com/derfenix/photocatalog/internal/organizer/modes" + . "github.com/derfenix/photocatalog/v2/internal/organizer/modes" ) func TestHardLink_PlaceIt(t *testing.T) { diff --git a/internal/organizer/modes/move_test.go b/internal/organizer/modes/move_test.go index fe77bc0..8d23be2 100644 --- a/internal/organizer/modes/move_test.go +++ b/internal/organizer/modes/move_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - . "github.com/derfenix/photocatalog/internal/organizer/modes" + . "github.com/derfenix/photocatalog/v2/internal/organizer/modes" ) func TestMove_PlaceIt(t *testing.T) { diff --git a/internal/organizer/modes/symlink_test.go b/internal/organizer/modes/symlink_test.go index 7b75e34..158ad03 100644 --- a/internal/organizer/modes/symlink_test.go +++ b/internal/organizer/modes/symlink_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - . "github.com/derfenix/photocatalog/internal/organizer/modes" + . "github.com/derfenix/photocatalog/v2/internal/organizer/modes" ) func TestSymLink_PlaceIt(t *testing.T) { diff --git a/internal/organizer/organizer.go b/internal/organizer/organizer.go index 7529426..69f5f1b 100644 --- a/internal/organizer/organizer.go +++ b/internal/organizer/organizer.go @@ -14,7 +14,7 @@ import ( "github.com/fsnotify/fsnotify" - "github.com/derfenix/photocatalog/internal/metadata" + "github.com/derfenix/photocatalog/v2/internal/metadata" ) type MetaExtractor interface { diff --git a/internal/organizer/organizer_test.go b/internal/organizer/organizer_test.go index b7859ee..23f02ef 100644 --- a/internal/organizer/organizer_test.go +++ b/internal/organizer/organizer_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - "github.com/derfenix/photocatalog/internal/metadata" - "github.com/derfenix/photocatalog/internal/organizer/modes" + "github.com/derfenix/photocatalog/v2/internal/metadata" + "github.com/derfenix/photocatalog/v2/internal/organizer/modes" ) func TestOrganizer_FullSync(t *testing.T) { diff --git a/main.go b/main.go index 26e7691..8fa6593 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "sync" "syscall" - "github.com/derfenix/photocatalog/application" + "github.com/derfenix/photocatalog/v2/application" ) func main() {