From 27e1c93c0563cb41e02e0026475e5ffc49a70b7e Mon Sep 17 00:00:00 2001 From: Amit Uttam Date: Sun, 28 Apr 2024 21:10:03 -0300 Subject: [PATCH] Replace godeps usage with go modules De facto package handling for current go projects. Similar effort to #43 Fixes #44 --- Godeps/Godeps.json | 32 -------------------------------- Godeps/Readme | 5 ----- README.md | 10 ++-------- go.mod | 12 ++++++++++++ go.sum | 12 ++++++++++++ main.go | 2 +- vendor/modules.txt | 18 ++++++++++++++++++ 7 files changed, 45 insertions(+), 46 deletions(-) delete mode 100644 Godeps/Godeps.json delete mode 100644 Godeps/Readme create mode 100644 go.mod create mode 100644 go.sum create mode 100644 vendor/modules.txt diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json deleted file mode 100644 index 2e9e44c..0000000 --- a/Godeps/Godeps.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ImportPath": "massren", - "GoVersion": "go1.6", - "GodepVersion": "v79", - "Deps": [ - { - "ImportPath": "github.com/jessevdk/go-flags", - "Comment": "v1-321-g4047bd7", - "Rev": "4047bd797dd935ae2b557a79cc43f223066c9659" - }, - { - "ImportPath": "github.com/kr/text", - "Rev": "6807e777504f54ad073ecef66747de158294b639" - }, - { - "ImportPath": "github.com/laurent22/go-sqlkv", - "Rev": "db1022af2c66c36268b346d203ceaa78579673d2" - }, - { - "ImportPath": "github.com/laurent22/go-trash", - "Rev": "681610e5e1bc5214826533dfa339c84e71e49821" - }, - { - "ImportPath": "github.com/mattn/go-sqlite3", - "Rev": "25d045f12a64283630fdedec899655cc5710b683" - }, - { - "ImportPath": "github.com/nu7hatch/gouuid", - "Rev": "179d4d0c4d8d407a32af483c2354df1d2c91e6c3" - } - ] -} diff --git a/Godeps/Readme b/Godeps/Readme deleted file mode 100644 index 4cdaa53..0000000 --- a/Godeps/Readme +++ /dev/null @@ -1,5 +0,0 @@ -This directory tree is generated automatically by godep. - -Please do not edit. - -See https://github.com/tools/godep for more information. diff --git a/README.md b/README.md index bbc8a5e..3060dca 100644 --- a/README.md +++ b/README.md @@ -131,16 +131,10 @@ Type `massren --help --config` (or `massren -ch`) to view the possible configura ## Building from source -- Go 1.3+ is required +- Go 1.17+ is required - go get github.com/laurent22/massren + go mod tidy go build - -- If it doesn't build on OSX, try with: - - go get -x -ldflags -linkmode=external github.com/laurent22/massren - -More info in [this issue](https://github.com/laurent22/massren/issues/7). ## Test units diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..1ed8faf --- /dev/null +++ b/go.mod @@ -0,0 +1,12 @@ +module github.com/laurent22/massren + +go 1.22.0 + +require ( + github.com/jessevdk/go-flags v0.0.0-20151018211510-4047bd797dd9 + github.com/kr/text v0.0.0-20130911015532-6807e777504f + github.com/laurent22/go-sqlkv v0.0.0-20140919090402-db1022af2c66 + github.com/laurent22/go-trash v0.0.0-20150202180955-681610e5e1bc + github.com/mattn/go-sqlite3 v0.0.0-20150127001921-25d045f12a64 + github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..b80c96f --- /dev/null +++ b/go.sum @@ -0,0 +1,12 @@ +github.com/jessevdk/go-flags v0.0.0-20151018211510-4047bd797dd9 h1:PSPYIsaVMJhLmEu95g3hW2qzg17OLzsxVYpis1OfjWc= +github.com/jessevdk/go-flags v0.0.0-20151018211510-4047bd797dd9/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/kr/text v0.0.0-20130911015532-6807e777504f h1:JaNmHIV9Eby6srQVWuiQ6n8ko2o/lG6udSRCbFZe1fs= +github.com/kr/text v0.0.0-20130911015532-6807e777504f/go.mod h1:sjUstKUATFIcff4qlB53Kml0wQPtJVc/3fWrmuUmcfA= +github.com/laurent22/go-sqlkv v0.0.0-20140919090402-db1022af2c66 h1:VTaw1HULypzR5GOHJsGYjWmvbhTsJfznGDVexKaPPSY= +github.com/laurent22/go-sqlkv v0.0.0-20140919090402-db1022af2c66/go.mod h1:r3x+J38xknkgf11E+ECTWBklI6qo2nfH96hKH26NJQU= +github.com/laurent22/go-trash v0.0.0-20150202180955-681610e5e1bc h1:Q+jQNLWBZP8ys5oK3kH6+cxDth04ZZEbWBN1RJ+Bip0= +github.com/laurent22/go-trash v0.0.0-20150202180955-681610e5e1bc/go.mod h1:eXLX8oRhB8MuD8er7n4QQYCultp7I+dI3rZVnNAFpnk= +github.com/mattn/go-sqlite3 v0.0.0-20150127001921-25d045f12a64 h1:ZGTxuQ4twqaQhcDWA0TtuGDFoaCl6H1YE5Ff3DpLUoM= +github.com/mattn/go-sqlite3 v0.0.0-20150127001921-25d045f12a64/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= +github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d h1:VhgPp6v9qf9Agr/56bj7Y/xa04UccTW04VP0Qed4vnQ= +github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d/go.mod h1:YUTz3bUH2ZwIWBy3CJBeOBEugqcmXREj14T+iG/4k4U= diff --git a/main.go b/main.go index 0a108de..7a11d77 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ import ( "github.com/jessevdk/go-flags" "github.com/kr/text" "github.com/laurent22/go-trash" - "github.com/nu7hatch/gouuid" + uuid "github.com/nu7hatch/gouuid" ) var flagParser_ *flags.Parser diff --git a/vendor/modules.txt b/vendor/modules.txt new file mode 100644 index 0000000..103f2a4 --- /dev/null +++ b/vendor/modules.txt @@ -0,0 +1,18 @@ +# github.com/jessevdk/go-flags v0.0.0-20151018211510-4047bd797dd9 +## explicit +github.com/jessevdk/go-flags +# github.com/kr/text v0.0.0-20130911015532-6807e777504f +## explicit +github.com/kr/text +# github.com/laurent22/go-sqlkv v0.0.0-20140919090402-db1022af2c66 +## explicit +github.com/laurent22/go-sqlkv +# github.com/laurent22/go-trash v0.0.0-20150202180955-681610e5e1bc +## explicit +github.com/laurent22/go-trash +# github.com/mattn/go-sqlite3 v0.0.0-20150127001921-25d045f12a64 +## explicit +github.com/mattn/go-sqlite3 +# github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d +## explicit +github.com/nu7hatch/gouuid