Skip to content

Commit

Permalink
Merge pull request #53 from chuttam/au/go-mod
Browse files Browse the repository at this point in the history
Replace godeps usage with go modules
  • Loading branch information
laurent22 authored Apr 29, 2024
2 parents 93e8c66 + 27e1c93 commit 7d7e8f5
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 46 deletions.
32 changes: 0 additions & 32 deletions Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
)
12 changes: 12 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7d7e8f5

Please sign in to comment.