From a129727683172f57dcc27014e82ed8a360f294e4 Mon Sep 17 00:00:00 2001 From: Joway Date: Wed, 31 May 2023 22:47:06 +0800 Subject: [PATCH] chore: downward compatibility for go1.15 (#180) --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/pr-benchdiff.yml | 2 +- .github/workflows/pr-check.yml | 2 +- .github/workflows/push-check.yml | 2 +- go.mod | 4 ++-- go.sum | 7 +------ 6 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 322fd3db..358cae13 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -48,7 +48,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.15 - uses: actions/cache@v2 with: diff --git a/.github/workflows/pr-benchdiff.yml b/.github/workflows/pr-benchdiff.yml index 595e7afd..b625967e 100644 --- a/.github/workflows/pr-benchdiff.yml +++ b/.github/workflows/pr-benchdiff.yml @@ -84,7 +84,7 @@ jobs: - name: Setup go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.15 - name: Benchdiff uses: WillAbides/benchdiff-action@v0.3.3 id: diff diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 3fae7940..e4fcf63d 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.15 - uses: actions/cache@v2 with: diff --git a/.github/workflows/push-check.yml b/.github/workflows/push-check.yml index 8c939779..1dd499df 100644 --- a/.github/workflows/push-check.yml +++ b/.github/workflows/push-check.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.15 - uses: actions/cache@v2 with: diff --git a/go.mod b/go.mod index 84441922..fb9186e9 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/bytedance/gopkg -go 1.16 +go 1.15 require ( github.com/stretchr/testify v1.7.0 golang.org/x/net v0.0.0-20221014081412-f15817d10f9b golang.org/x/sync v0.0.0-20210220032951-036812b2e83c - golang.org/x/sys v0.0.0-20221010170243-090e33056c14 + golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 ) diff --git a/go.sum b/go.sum index 6096fb01..697b66cd 100644 --- a/go.sum +++ b/go.sum @@ -10,13 +10,8 @@ golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfS golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220110181412-a018aaa089fe h1:W8vbETX/n8S6EmY0Pu4Ix7VvpsJUESTwl0oCK8MJOgk= -golang.org/x/sys v0.0.0-20220110181412-a018aaa089fe/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 h1:WIoqL4EROvwiPdUtaip4VcDdpZ4kha7wBWZrbVKCIZg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220907062415-87db552b00fd h1:AZeIEzg+8RCELJYq8w+ODLVxFgLMMigSwO/ffKPEd9U= -golang.org/x/sys v0.0.0-20220907062415-87db552b00fd/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20221010170243-090e33056c14 h1:k5II8e6QD8mITdi+okbbmR/cIyEbeXLBhy5Ha4nevyc= -golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=