Skip to content

Commit

Permalink
fix: Upgrading import paths for casbin/v2 and fixing travis (#11)
Browse files Browse the repository at this point in the history
* fix: Upgrading import paths for casbin/v2 and fixing travis
1. update casbin import paths to v2
2. used go mod to have strict vendor dependency
3. fixed travis ci, added makefile, resolved lint issues

Signed-off-by: hiteshsethi <hitesh.28jan@gmail.com>

* review comments addressed: 1. removed make file 2. added go 1.14 dependency

Signed-off-by: hiteshsethi <hitesh.28jan@gmail.com>

* review comments addressed

Signed-off-by: hiteshsethi <hitesh.28jan@gmail.com>
  • Loading branch information
hiteshsethi committed Jun 3, 2021
1 parent 1147baf commit c297c0e
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: go
sudo: required

go:
- "1.16"
- tip

service:
Expand All @@ -11,7 +12,6 @@ service:
before_install:
- echo $TRAVIS_GO_VERSION
- go get github.com/mattn/goveralls
- go get go.etcd.io/etcd/clientv3
- docker pull quay.io/coreos/etcd:v3.3.10
- docker run -d -p 2379:2379 quay.io/coreos/etcd:v3.3.10 etcd --name casbin --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://0.0.0.0:2379

Expand Down
20 changes: 20 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module github.com/casbin/etcd-watcher

go 1.16

require (
github.com/casbin/casbin/v2 v2.30.2
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403 // indirect
github.com/coreos/etcd v3.3.25+incompatible // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/envoyproxy/go-control-plane v0.9.5 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/uuid v1.2.0 // indirect
github.com/stretchr/testify v1.5.1 // indirect
go.etcd.io/etcd v3.3.25+incompatible
go.uber.org/zap v1.16.0 // indirect
google.golang.org/grpc v1.26.0 // indirect; updating this breaks etcd
)

0 comments on commit c297c0e

Please sign in to comment.