From bbf64ae21fc5555f4e9752825ee9ffe13b1e5fa0 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Wed, 26 Jun 2019 14:37:24 +0200 Subject: [PATCH] Update paths to v2 and explicitly enable modules on Travis (#144) --- .travis.yml | 3 +++ caches_bench/caches_bench_test.go | 2 +- caches_bench/caches_gc_overhead_comparison.go | 2 +- server/server.go | 2 +- server/server_test.go | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index cc28df6a..11e6a2d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,8 @@ language: go +env: + - GO111MODULE=on + go: - 1.x - tip diff --git a/caches_bench/caches_bench_test.go b/caches_bench/caches_bench_test.go index f998dcce..a121831e 100644 --- a/caches_bench/caches_bench_test.go +++ b/caches_bench/caches_bench_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/allegro/bigcache" + "github.com/allegro/bigcache/v2" "github.com/coocood/freecache" ) diff --git a/caches_bench/caches_gc_overhead_comparison.go b/caches_bench/caches_gc_overhead_comparison.go index 7e212103..2a1a3859 100644 --- a/caches_bench/caches_gc_overhead_comparison.go +++ b/caches_bench/caches_gc_overhead_comparison.go @@ -6,7 +6,7 @@ import ( "runtime/debug" "time" - "github.com/allegro/bigcache" + "github.com/allegro/bigcache/v2" "github.com/coocood/freecache" ) diff --git a/server/server.go b/server/server.go index 35843437..4d110bfa 100644 --- a/server/server.go +++ b/server/server.go @@ -8,7 +8,7 @@ import ( "os" "strconv" - "github.com/allegro/bigcache" + "github.com/allegro/bigcache/v2" ) const ( diff --git a/server/server_test.go b/server/server_test.go index 9b8e5646..c3c43a05 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/allegro/bigcache" + "github.com/allegro/bigcache/v2" ) const (