update circle-ci to go 1.10 (#419)

This commit is contained in:
Victor Vrantchan
2018-05-12 19:28:56 -04:00
committed by GitHub
parent 70d26149ae
commit 3eca74879a
6 changed files with 9 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
version: 2
jobs:
build-go1.9:
build-go1.10:
docker:
- image: golang:1.9
- image: golang:1.10
working_directory: /go/src/github.com/micromdm/micromdm
steps: &steps
- checkout
@@ -14,5 +14,4 @@ workflows:
version: 2
build:
jobs:
- build-go1.9
- build-go1.10

View File

@@ -15,7 +15,7 @@ Here's a few places to get started and find out what's outstanding.
## Building the project
To build MicroMDM from source, you will need [Go 1.8](https://golang.org/dl/) or later installed.
To build MicroMDM from source, you will need [Go 1.10](https://golang.org/dl/) or later installed.
```
# if GOPATH is unset:

View File

@@ -55,7 +55,8 @@ ifneq ($(shell pwd), $(WORKSPACE))
endif
deps: check-deps
go get -u github.com/golang/dep/...
@which dep > /dev/null 2>&1 || \
echo "Installing dep" && go get -u github.com/golang/dep/cmd/dep
dep ensure -vendor-only
test:

View File

@@ -97,7 +97,7 @@ func updateTopic(svc *service, sub pubsub.Subscriber) error {
case <-configEvents:
topic, err := svc.topicProvier.PushTopic()
if err != nil {
log.Println("enroll: get push topic %s", topic)
log.Printf("enroll: get push topic %s\n", topic)
}
svc.mu.Lock()
svc.Topic = topic

View File

@@ -108,7 +108,7 @@ func updateClient(svc *PushService, sub pubsub.Subscriber) error {
case <-configEvents:
pushsvc, err := NewPushService(svc.provider)
if err != nil {
log.Println("push: could not get push certificate %s", err)
log.Printf("push: could not get push certificate %s\n", err)
continue
}
svc.mu.Lock()

View File

@@ -112,7 +112,7 @@ func (db *DB) Save(bp *blueprint.Blueprint) error {
indexes := []string{bp.UUID, bp.Name}
idxBucket := tx.Bucket([]byte(blueprintIndexBucket))
if idxBucket == nil {
return fmt.Errorf("bucket %q not found!", idxBucket)
return fmt.Errorf("bucket %v not found!", idxBucket)
}
for _, idx := range indexes {
if idx == "" {