From de82e7513b81e58a4dc4a3b2ec0be4fae429e697 Mon Sep 17 00:00:00 2001 From: Hiromu OCHIAI Date: Thu, 6 Apr 2023 00:30:19 +0900 Subject: [PATCH 1/6] Update dependencies --- go.mod | 2 +- go.sum | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 5efef86..0c29138 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/otiai10/copy -go 1.14 +go 1.18 require ( github.com/otiai10/mint v1.4.1 diff --git a/go.sum b/go.sum index 6926ed9..7b2a96c 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,4 @@ -github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= github.com/otiai10/curr v1.0.0 h1:TJIWdbX0B+kpNagQrjgq8bCMrbhiuX73M2XwgtDMoOI= -github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= -github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= github.com/otiai10/mint v1.4.1 h1:HOVBfKP1oXIc0wWo9hZ8JLdZtyCPWqjvmFDuVZ0yv2Y= github.com/otiai10/mint v1.4.1/go.mod h1:gifjb2MYOoULtKLqUAEILUG/9KONW6f7YsJ6vQLTlFI= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= From e362bd4f210593f0b73870ac0cdb5d7b2d1f9604 Mon Sep 17 00:00:00 2001 From: Hiromu OCHIAI Date: Thu, 6 Apr 2023 00:30:28 +0900 Subject: [PATCH 2/6] Update GH Actions dependencies version --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/docker-test.yml | 2 +- .github/workflows/go-coverage.yml | 6 +++--- .github/workflows/go.yml | 4 ++-- .github/workflows/gopherjs.yml | 4 ++-- .github/workflows/vagrant-test.yml | 2 +- .github/workflows/wasm.yml | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ed7979b..c90fbe7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,11 +38,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -53,7 +53,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -67,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index a62f51d..11f33c0 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -17,7 +17,7 @@ jobs: - centos steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: ${{ matrix.runtime }} shell: 'script -q -e -c "bash {0}"' run: bash ./test/run --build --run ${{ matrix.runtime }} diff --git a/.github/workflows/go-coverage.yml b/.github/workflows/go-coverage.yml index 90f7577..41254b3 100644 --- a/.github/workflows/go-coverage.yml +++ b/.github/workflows/go-coverage.yml @@ -14,13 +14,13 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: go-version: '1.18' id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get dependencies run: go get -v -t -d ./... @@ -29,7 +29,7 @@ jobs: run: go test -v -cover -race -coverprofile=coverage -covermode=atomic - name: Upload coverage - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: file: ./coverage verbose: true diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2862b88..2c493f6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,13 +18,13 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get dependencies run: go get -v -t -d ./... diff --git a/.github/workflows/gopherjs.yml b/.github/workflows/gopherjs.yml index 5389092..7748623 100644 --- a/.github/workflows/gopherjs.yml +++ b/.github/workflows/gopherjs.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} id: go @@ -41,7 +41,7 @@ jobs: cp build/Release/syscall.node ~/.node_libraries/syscall.node - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get dependencies run: go get -v -t -d ./... diff --git a/.github/workflows/vagrant-test.yml b/.github/workflows/vagrant-test.yml index 71f5c47..408bd54 100644 --- a/.github/workflows/vagrant-test.yml +++ b/.github/workflows/vagrant-test.yml @@ -15,6 +15,6 @@ jobs: - freebsd steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: ${{ matrix.runtime }} run: bash ./test/run --build --run ${{ matrix.runtime }} diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 9ca405a..9d8bd1e 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -18,13 +18,13 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get dependencies run: go get -v -t -d ./... From 21fa9b5adea79bee472ff042f442c3543463213f Mon Sep 17 00:00:00 2001 From: Hiromu OCHIAI Date: Thu, 6 Apr 2023 00:32:35 +0900 Subject: [PATCH 3/6] Upload coverage report only on main branch --- .github/workflows/go-coverage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go-coverage.yml b/.github/workflows/go-coverage.yml index 41254b3..ff97d1e 100644 --- a/.github/workflows/go-coverage.yml +++ b/.github/workflows/go-coverage.yml @@ -29,6 +29,7 @@ jobs: run: go test -v -cover -race -coverprofile=coverage -covermode=atomic - name: Upload coverage + if: github.event_name == 'push' uses: codecov/codecov-action@v3 with: file: ./coverage From 319543fc43eb502d1fb9d85fcdc81a08aa5f7b44 Mon Sep 17 00:00:00 2001 From: Hiromu OCHIAI Date: Thu, 6 Apr 2023 00:34:03 +0900 Subject: [PATCH 4/6] Update test target Go versions --- .github/workflows/go.yml | 2 +- .github/workflows/wasm.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2c493f6..dcb0ae1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go: [1.13, 1.14, 1.15, 1.16, 1.17, 1.18] + go: [1.15, 1.16, 1.17, 1.18, 1.19, 1.20] steps: - name: Set up Go diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 9d8bd1e..90dcdcc 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go: [1.17, 1.18] + go: [1.17, 1.18, 1.19, 1.20] steps: - name: Set up Go From 3f5e55cee1d334869fa00d4487a5cd778b9e1ab2 Mon Sep 17 00:00:00 2001 From: Hiromu OCHIAI Date: Thu, 6 Apr 2023 00:38:10 +0900 Subject: [PATCH 5/6] Fix expression of 1.20 (to avoid regarded as 1.2) --- .github/workflows/go.yml | 2 +- .github/workflows/wasm.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index dcb0ae1..919cdf4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go: [1.15, 1.16, 1.17, 1.18, 1.19, 1.20] + go: ['1.15', '1.16', '1.17', '1.18', '1.19', '1.20'] steps: - name: Set up Go diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 90dcdcc..5663666 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go: [1.17, 1.18, 1.19, 1.20] + go: ['1.17', '1.18', '1.19', '1.20'] steps: - name: Set up Go From 53e790c109715020cfae7372d92beef88bdd5715 Mon Sep 17 00:00:00 2001 From: Hiromu OCHIAI Date: Thu, 6 Apr 2023 01:10:30 +0900 Subject: [PATCH 6/6] Update dependencies (to avoid using curr package any more) --- go.mod | 2 +- go.sum | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 0c29138..2263c9e 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module github.com/otiai10/copy go 1.18 require ( - github.com/otiai10/mint v1.4.1 + github.com/otiai10/mint v1.5.1 golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 ) diff --git a/go.sum b/go.sum index 7b2a96c..7fc5834 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,4 @@ -github.com/otiai10/curr v1.0.0 h1:TJIWdbX0B+kpNagQrjgq8bCMrbhiuX73M2XwgtDMoOI= -github.com/otiai10/mint v1.4.1 h1:HOVBfKP1oXIc0wWo9hZ8JLdZtyCPWqjvmFDuVZ0yv2Y= -github.com/otiai10/mint v1.4.1/go.mod h1:gifjb2MYOoULtKLqUAEILUG/9KONW6f7YsJ6vQLTlFI= +github.com/otiai10/mint v1.5.1 h1:XaPLeE+9vGbuyEHem1JNk3bYc7KKqyI/na0/mLd/Kks= +github.com/otiai10/mint v1.5.1/go.mod h1:MJm72SBthJjz8qhefc4z1PYEieWmy8Bku7CjcAqyUSM= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=