From 190b9c26a13cbb5b4702caebc3bdb8eab9b2747f Mon Sep 17 00:00:00 2001 From: cnbattle Date: Fri, 21 Oct 2022 15:54:02 +0800 Subject: [PATCH] fix --- .drone.yml | 10 +++++----- Makefile | 4 ++-- cloud/aliyun.go | 1 + cloud/interface.go | 1 + cloud/qiniu.go | 1 + cloud/tencent.go | 1 + config/config.go | 1 + config/init.go | 1 + go.mod | 2 +- select_interface.go | 1 + utils/local.go | 1 + 11 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index aea9d8f0..a20e40ea 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,7 +5,7 @@ name: testing steps: - name: vet pull: always - image: golang:1.17 + image: golang:1.19 commands: - make vet volumes: @@ -14,7 +14,7 @@ steps: - name: lint pull: always - image: golang:1.17 + image: golang:1.19 commands: - make lint volumes: @@ -23,7 +23,7 @@ steps: - name: misspell pull: always - image: golang:1.17 + image: golang:1.19 commands: - make misspell-check volumes: @@ -32,7 +32,7 @@ steps: # - name: test # pull: always -# image: golang:1.17 +# image: golang:1.19 # commands: # - make test # volumes: @@ -54,7 +54,7 @@ platform: steps: - name: build-all-binary pull: always - image: golang:1.17 + image: golang:1.19 commands: - make release when: diff --git a/Makefile b/Makefile index 933bc32a..26ba3651 100644 --- a/Makefile +++ b/Makefile @@ -35,14 +35,14 @@ vet: lint: @hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - $(GO) get -u github.com/mgechev/revive; \ + $(GO) install github.com/mgechev/revive@latest; \ fi revive -config .revive.toml ./... || exit 1 .PHONY: misspell-check misspell-check: @hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - $(GO) get -u github.com/client9/misspell/cmd/misspell; \ + $(GO) install github.com/client9/misspell/cmd/misspell@latest; \ fi misspell -error $(SOURCES) diff --git a/cloud/aliyun.go b/cloud/aliyun.go index 4a5fc1b5..32548a8f 100644 --- a/cloud/aliyun.go +++ b/cloud/aliyun.go @@ -1,3 +1,4 @@ +// Package cloud 支持的云平台 package cloud import ( diff --git a/cloud/interface.go b/cloud/interface.go index 4c7f0dad..ab5a99a3 100644 --- a/cloud/interface.go +++ b/cloud/interface.go @@ -1,3 +1,4 @@ +// Package cloud 支持的云平台 package cloud // CommInterface 基础接口 diff --git a/cloud/qiniu.go b/cloud/qiniu.go index 45b915de..27cb38a7 100644 --- a/cloud/qiniu.go +++ b/cloud/qiniu.go @@ -1,3 +1,4 @@ +// Package cloud 支持的云平台 package cloud import ( diff --git a/cloud/tencent.go b/cloud/tencent.go index 8eaec341..d833cbf5 100644 --- a/cloud/tencent.go +++ b/cloud/tencent.go @@ -1,3 +1,4 @@ +// Package cloud 支持的云平台 package cloud import ( diff --git a/config/config.go b/config/config.go index edba6317..14c15210 100644 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,4 @@ +// Package config 配置包 package config import ( diff --git a/config/init.go b/config/init.go index b8c780d9..139e0263 100644 --- a/config/init.go +++ b/config/init.go @@ -1,3 +1,4 @@ +// Package config 配置包 package config import ( diff --git a/go.mod b/go.mod index cfba2e0e..9d3ebc76 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cnbattle/upcloud -go 1.17 +go 1.19 require ( github.com/aliyun/alibaba-cloud-sdk-go v1.61.1822 diff --git a/select_interface.go b/select_interface.go index 808751ba..ed37f52c 100644 --- a/select_interface.go +++ b/select_interface.go @@ -1,3 +1,4 @@ +// Package main 主包 package main import ( diff --git a/utils/local.go b/utils/local.go index e9d1698f..66ed8b3f 100644 --- a/utils/local.go +++ b/utils/local.go @@ -1,3 +1,4 @@ +// Package utils 工具包 package utils import (