mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-18 17:01:07 +00:00
match go version in CI to version in go-compile
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
a44ea341ca
commit
fbe9b98d4d
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -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
|
||||
@ -319,4 +319,4 @@ jobs:
|
||||
- name: Run Tests
|
||||
run: |
|
||||
cd test
|
||||
rtf -l build -v run -x linuxkit.security
|
||||
rtf -l build -v run -x linuxkit.security
|
||||
|
2
Makefile
2
Makefile
@ -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))
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user