mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-11 04:05:35 +08:00
update circle-ci to go 1.10 (#419)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
3
Makefile
3
Makefile
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user