From 165aea67506e0ad330b326ed360069d5021b4212 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Fri, 9 Sep 2022 09:29:02 +0800 Subject: [PATCH] upgrade to golang1.19 --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- config.go | 2 +- go.mod | 4 ++-- go.sum | 2 ++ 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a44c1e..ab0dc09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/setup-go@v1 with: - go-version: 1.18 + go-version: 1.19 - run: go install github.com/mitchellh/gox@latest - uses: actions/checkout@v2 - run: PATH=$HOME/go/bin:$PATH ./crossbuild.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c987d17..0bbda53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - uses: actions/setup-go@v1 with: - go-version: 1.18 + go-version: 1.19 - run: go install github.com/mitchellh/gox@latest - uses: actions/checkout@v2 - run: PATH=$HOME/go/bin:$PATH ./crossbuild.sh diff --git a/config.go b/config.go index 2f6651f..0fa5c13 100644 --- a/config.go +++ b/config.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "io/ioutil" "os" ) diff --git a/go.mod b/go.mod index 8160dac..611cf6f 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/wwqgtxx/wstunnel -go 1.18 +go 1.19 require ( github.com/gorilla/websocket v1.5.0 - gopkg.in/yaml.v2 v2.4.0 + gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 584d62e..ae1b543 100644 --- a/go.sum +++ b/go.sum @@ -4,3 +4,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=