Skip to content

Commit

Permalink
Update module dependencies
Browse files Browse the repository at this point in the history
Add dependency on github.com/nmiyake/pkg module to prevent
cyclic dependencies for consumers.
  • Loading branch information
nmiyake committed Dec 2, 2019
1 parent 6a74347 commit e2b874c
Show file tree
Hide file tree
Showing 27 changed files with 157 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dirs/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/nmiyake/pkg/dirs

go 1.13

require github.com/nmiyake/pkg v0.0.1
2 changes: 2 additions & 0 deletions dirs/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/nmiyake/pkg v0.0.1 h1:LooujgshxOHQsPpluVqzOwBV9dUEZXIxOkotRMXbBGQ=
github.com/nmiyake/pkg v0.0.1/go.mod h1:078BHtQj5Tk8Im6EpMHR0/Stp79lwL3FIRiGaC9hTDM=
9 changes: 9 additions & 0 deletions dirs/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// +build module

// This file exists only to smooth the transition for modules. Having this file makes it such that other modules that
// consume this module will not have import path conflicts caused by github.com/nmiyake/pkg.
package main

import (
_ "github.com/nmiyake/pkg"
)
4 changes: 4 additions & 0 deletions dirs/vendor/github.com/nmiyake/pkg/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions dirs/vendor/github.com/nmiyake/pkg/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dirs/vendor/github.com/nmiyake/pkg/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dirs/vendor/github.com/nmiyake/pkg/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dirs/vendor/github.com/nmiyake/pkg/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dirs/vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# github.com/nmiyake/pkg v0.0.1
github.com/nmiyake/pkg
5 changes: 4 additions & 1 deletion errorstringer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module github.com/nmiyake/pkg/errorstringer

go 1.13

require github.com/pkg/errors v0.8.1
require (
github.com/nmiyake/pkg v0.0.1
github.com/pkg/errors v0.8.1
)
2 changes: 2 additions & 0 deletions errorstringer/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
github.com/nmiyake/pkg v0.0.1 h1:LooujgshxOHQsPpluVqzOwBV9dUEZXIxOkotRMXbBGQ=
github.com/nmiyake/pkg v0.0.1/go.mod h1:078BHtQj5Tk8Im6EpMHR0/Stp79lwL3FIRiGaC9hTDM=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
9 changes: 9 additions & 0 deletions errorstringer/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// +build module

// This file exists only to smooth the transition for modules. Having this file makes it such that other modules that
// consume this module will not have import path conflicts caused by github.com/nmiyake/pkg.
package main

import (
_ "github.com/nmiyake/pkg"
)
4 changes: 4 additions & 0 deletions errorstringer/vendor/github.com/nmiyake/pkg/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions errorstringer/vendor/github.com/nmiyake/pkg/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions errorstringer/vendor/github.com/nmiyake/pkg/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions errorstringer/vendor/github.com/nmiyake/pkg/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions errorstringer/vendor/github.com/nmiyake/pkg/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions errorstringer/vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# github.com/nmiyake/pkg v0.0.1
github.com/nmiyake/pkg
# github.com/pkg/errors v0.8.1
github.com/pkg/errors
1 change: 1 addition & 0 deletions gofiles/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/nmiyake/pkg/gofiles
go 1.13

require (
github.com/nmiyake/pkg v0.0.1
github.com/nmiyake/pkg/dirs v1.0.0
github.com/stretchr/testify v1.4.0
)
2 changes: 2 additions & 0 deletions gofiles/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/nmiyake/pkg v0.0.1 h1:LooujgshxOHQsPpluVqzOwBV9dUEZXIxOkotRMXbBGQ=
github.com/nmiyake/pkg v0.0.1/go.mod h1:078BHtQj5Tk8Im6EpMHR0/Stp79lwL3FIRiGaC9hTDM=
github.com/nmiyake/pkg/dirs v1.0.0 h1:pYeIw1wH7jh5/ew8naGE4Q56byJG7Uyi8PwwhVe/MTg=
github.com/nmiyake/pkg/dirs v1.0.0/go.mod h1:r6/PkZ3CA1szGfQkxcHheEjBWi6Zu6jLb+lQmRXEyvM=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
9 changes: 9 additions & 0 deletions gofiles/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// +build module

// This file exists only to smooth the transition for modules. Having this file makes it such that other modules that
// consume this module will not have import path conflicts caused by github.com/nmiyake/pkg.
package main

import (
_ "github.com/nmiyake/pkg"
)
4 changes: 4 additions & 0 deletions gofiles/vendor/github.com/nmiyake/pkg/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions gofiles/vendor/github.com/nmiyake/pkg/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions gofiles/vendor/github.com/nmiyake/pkg/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions gofiles/vendor/github.com/nmiyake/pkg/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions gofiles/vendor/github.com/nmiyake/pkg/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gofiles/vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# github.com/davecgh/go-spew v1.1.0
github.com/davecgh/go-spew/spew
# github.com/nmiyake/pkg v0.0.1
github.com/nmiyake/pkg
# github.com/nmiyake/pkg/dirs v1.0.0
github.com/nmiyake/pkg/dirs
# github.com/pmezard/go-difflib v1.0.0
Expand Down

0 comments on commit e2b874c

Please sign in to comment.