match go version in CI to version in go-compile

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2020-04-19 11:02:35 +03:00
parent a44ea341ca
commit fbe9b98d4d
3 changed files with 7 additions and 7 deletions

View File

@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.11
uses: actions/setup-go@v1
- name: Set up Go 1.13
uses: actions/setup-go@v2
with:
go-version: 1.11
go-version: 1.13.4
id: go
- name: Check out code

View File

@ -75,7 +75,7 @@ LOCAL_TARGET ?= $(LINUXKIT)
.PHONY: local-check local-build local-test local-static-pie local-static local-dynamic local
local-check: $(LINUXKIT_DEPS)
@echo gofmt... && o=$$(gofmt -s -l $(filter %.go,$(LINUXKIT_DEPS))) && if [ -n "$$o" ] ; then echo $$o ; exit 1 ; fi
@echo govet... && go tool vet -printf=false $(filter %.go,$(LINUXKIT_DEPS))
@echo govet... && go vet -printf=false ./src/cmd/linuxkit/...
@echo golint... && set -e ; for i in $(filter %.go,$(LINUXKIT_DEPS)); do golint $$i ; done
@echo ineffassign... && ineffassign $(filter %.go,$(LINUXKIT_DEPS))

View File

@ -477,7 +477,7 @@ func (g *GCPClient) pollOperationStatus(operationName string) error {
return fmt.Errorf("error fetching operation status: %v", err)
}
if operation.Error != nil {
return fmt.Errorf("error running operation: %s", operation.Error)
return fmt.Errorf("error running operation: %v", operation.Error)
}
if operation.Status == "DONE" {
return nil
@ -494,7 +494,7 @@ func (g *GCPClient) pollZoneOperationStatus(operationName, zone string) error {
return fmt.Errorf("error fetching operation status: %v", err)
}
if operation.Error != nil {
return fmt.Errorf("error running operation: %s", operation.Error)
return fmt.Errorf("error running operation: %v", operation.Error)
}
if operation.Status == "DONE" {
return nil