Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
update to go 1.11 and new goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
theganyo authored Sep 11, 2018
1 parent c52fa57 commit 10955c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 2
jobs:
build-and-test:
docker:
- image: circleci/golang:1.10
- image: circleci/golang:1.11
working_directory: /go/src/github.com/apigee/istio-mixer-adapter
steps:
- checkout
Expand All @@ -29,7 +29,7 @@ jobs:

build-test-image:
docker:
- image: circleci/golang:1.10
- image: circleci/golang:1.11
working_directory: /go/src/github.com/apigee/istio-mixer-adapter
steps:
- checkout
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

build-nightly:
docker:
- image: circleci/golang:1.10
- image: circleci/golang:1.11
working_directory: /go/src/github.com/apigee/istio-mixer-adapter
steps:
- checkout
Expand Down
2 changes: 1 addition & 1 deletion adapter/product/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestManagerPolling(t *testing.T) {
t.Errorf("number of products should not have incremented")
}

time.Sleep(opts.RefreshRate * 4)
time.Sleep(opts.RefreshRate * 10)
pp2 = len(pp.Products())
if pp1 == pp2 {
t.Errorf("number of products should have incremented")
Expand Down
2 changes: 1 addition & 1 deletion adapter/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

// SprintfRedacts truncates secret strings to len(5)
func SprintfRedacts(redacts []interface{}, format string, a ...interface{}) string {
s := fmt.Sprintf(format, a)
s := fmt.Sprintf(format, a...)
for _, r := range redacts {
if r, ok := r.(string); ok {
truncated := Truncate(r, 5)
Expand Down
5 changes: 4 additions & 1 deletion bin/build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ fi

if [[ `command -v goreleaser` == "" ]]; then
echo "goreleaser not installed, installing..."
go get github.com/goreleaser/goreleaser
cd "${GOPATH}/bin/"
wget https://github.com/goreleaser/goreleaser/releases/download/v0.85.2/goreleaser_Linux_x86_64.tar.gz
tar xfz goreleaser_Linux_x86_64.tar.gz goreleaser
rm goreleaser_Darwin_x86_64.tar.gz
fi

ADAPTER_DIR="${GOPATH}/src/github.com/apigee/istio-mixer-adapter"
Expand Down

0 comments on commit 10955c9

Please sign in to comment.