Skip to content

Commit

Permalink
Use go modules (#1)
Browse files Browse the repository at this point in the history
* use go modules

* do not use dep for travis

* Use github.com/putdotio/pas as module name

* add mod download to the install step
  • Loading branch information
muraty authored Oct 15, 2020
1 parent 1f6b082 commit bfdabe4
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 121 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ sudo: required
language: go
services:
- mysql
before_install:
- go get github.com/golang/dep/cmd/dep
install:
- dep ensure
- go mod download
- go install
before_script:
- go build -ldflags="-X main.Version=$TRAVIS_TAG"
- go get github.com/alecthomas/gometalinter
Expand Down
66 changes: 0 additions & 66 deletions Gopkg.lock

This file was deleted.

50 changes: 0 additions & 50 deletions Gopkg.toml

This file was deleted.

3 changes: 2 additions & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package main
import (
"testing"

"github.com/naoina/toml"
"github.com/putdotio/pas/internal/event"
"github.com/putdotio/pas/internal/property"

"github.com/naoina/toml"
"github.com/stretchr/testify/assert"
)

Expand Down
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module github.com/putdotio/pas

go 1.15

require (
github.com/go-sql-driver/mysql v1.5.0
github.com/kelseyhightower/envconfig v1.4.0
github.com/naoina/go-stringutil v0.1.0 // indirect
github.com/naoina/toml v0.1.1
github.com/rs/cors v1.7.0
)
10 changes: 10 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=
github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg=
github.com/naoina/go-stringutil v0.1.0 h1:rCUeRUHjBjGTSHl0VC00jUPLz8/F9dDzYI70Hzifhks=
github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0=
github.com/naoina/toml v0.1.1 h1:PT/lllxVVN0gzzSqSlHEmP8MJB4MY2U7STGxiouV4X8=
github.com/naoina/toml v0.1.1/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E=
github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik=
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
1 change: 1 addition & 0 deletions internal/analytics/analytics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/putdotio/pas/internal/event"
"github.com/putdotio/pas/internal/property"
"github.com/putdotio/pas/internal/user"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions internal/event/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"testing"

"github.com/putdotio/pas/internal/user"

"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion internal/inserter/inserter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"database/sql"
"time"

"github.com/go-sql-driver/mysql"
"github.com/putdotio/pas/internal/property"

"github.com/go-sql-driver/mysql"
)

type Inserter interface {
Expand Down
1 change: 1 addition & 0 deletions internal/property/type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"testing"

"github.com/putdotio/pas/internal/property"

"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit bfdabe4

Please sign in to comment.