Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade go version to 1.18 #1324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 8 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,25 @@ jobs:

strategy:
matrix:
go-version: [1.12.x, 1.13.x]
os: [ubuntu-16.04]
go-version: [1.18]
os: [ubuntu-18.04]

runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
check-latest: true

- name: Checkout project
uses: actions/checkout@v2

- name: Symlink source into GOPATH for api
run: |
mkdir -p $(go env GOPATH)/src/github.com/sodafoundation/api
sudo ln -s $(pwd) $(go env GOPATH)/src/github.com/sodafoundation/api

- name: Create the Folder structure and symlink to opensds (TODO:-Fix vendor module from opensds to sodafoundation)
run: |
echo "Check current dir: \n"
pwd
echo "GOPATH: $(go env GOPATH)"
sudo mkdir -p $(go env GOPATH)/src/github.com/opensds
sudo ln -s $(go env GOPATH)/src/github.com/sodafoundation $(go env GOPATH)/src/github.com/opensds
uses: actions/checkout@v3

- name: Install Pre-requisites
run: |
sudo apt-get update
sudo apt-get install -y build-essential gcc
sudo apt-get install -y librados-dev librbd-dev
sudo apt-get install -y lvm2 tgt open-iscsi
sudo docker pull p1c2u/openapi-spec-validator
sudo apt-get install -y build-essential gcc librados-dev librbd-dev lvm2 tgt open-iscsi
docker pull p1c2u/openapi-spec-validator

- name: Build the binaries
run: |
Expand All @@ -53,7 +39,7 @@ jobs:
run: ./install/CI/coverage && ./install/CI/test

- name: After success run Codecov Coverage tool.
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2

- name: Clean up the build
run: |
Expand Down
97 changes: 49 additions & 48 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,59 +1,60 @@
module github.com/sodafoundation/api

go 1.12
go 1.18

require (
github.com/LINBIT/godrbdutils v0.0.0-20180425110027-65b98a0f103a // indirect
github.com/RoaringBitmap/roaring v0.4.21 // indirect
github.com/appleboy/easyssh-proxy v1.2.0 // indirect
github.com/astaxie/beego v1.12.0
github.com/beorn7/perks v1.0.0 // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/ceph/go-ceph v0.0.0-20170728144007-81e4191e131b // indirect
github.com/coreos/bbolt v1.3.3 // indirect
github.com/coreos/etcd v3.3.11+incompatible
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/frankban/quicktest v1.6.0 // indirect
github.com/getkin/kin-openapi v0.2.0
github.com/astaxie/beego v1.12.3
github.com/getkin/kin-openapi v0.94.0
github.com/go-ini/ini v1.41.0
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9 // indirect
github.com/golang/protobuf v1.4.1
github.com/google/btree v1.0.0 // indirect
github.com/golang/protobuf v1.5.2
github.com/gophercloud/gophercloud v0.0.0-20190528082055-3ad89c4ea008
github.com/gorilla/websocket v1.4.1 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.1.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.12.1 // indirect
github.com/satori/go.uuid v1.2.0
github.com/sodafoundation/controller v1.1.0
github.com/sodafoundation/dock v1.3.0
github.com/spf13/cobra v1.4.0
github.com/stretchr/testify v1.7.1
go.etcd.io/etcd/client/pkg/v3 v3.5.2
go.etcd.io/etcd/client/v3 v3.5.2
google.golang.org/grpc v1.38.0
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/swag v0.19.5 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jonboulle/clockwork v0.1.0 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/netapp/trident v19.10.0+incompatible // indirect
github.com/pierrec/lz4 v2.3.0+incompatible // indirect
github.com/prometheus/client_golang v0.9.2 // indirect
github.com/prometheus/common v0.3.0 // indirect
github.com/prometheus/procfs v0.0.0-20190425082905-87a4384529e0 // indirect
github.com/satori/go.uuid v1.2.0
github.com/segmentio/kafka-go v0.2.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.11.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.26.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/soheilhy/cmux v0.1.4 // indirect
github.com/spf13/cobra v0.0.3
github.com/stretchr/testify v1.4.0
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
github.com/ugorji/go v1.1.7 // indirect
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
go.etcd.io/bbolt v1.3.3 // indirect
go.uber.org/zap v1.12.0 // indirect
golang.org/x/net v0.0.0-20200506145744-7e3656a0809f // indirect
golang.org/x/sys v0.0.0-20200509044756-6aff5f38e54f // indirect
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
google.golang.org/genproto v0.0.0-20200507105951-43844f6eee31 // indirect
google.golang.org/grpc v1.29.1
gopkg.in/ini.v1 v1.50.0 // indirect
gopkg.in/yaml.v2 v2.2.4
k8s.io/api v0.17.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.1.1 // indirect
go.etcd.io/etcd/api/v3 v3.5.2 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.17.0 // indirect
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 // indirect
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 // indirect
golang.org/x/text v0.3.5 // indirect
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect
google.golang.org/protobuf v1.26.0 // indirect
gopkg.in/ini.v1 v1.51.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading