From 4081a0fcf702f8a55ddf74aada80faa98640d183 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 22 May 2023 20:01:03 +0200 Subject: [PATCH 01/26] fix(site): default apple downloads to arm64 Closes #840 --- site/assets/js/platform.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site/assets/js/platform.js b/site/assets/js/platform.js index 6d38f34c..a753fdd9 100644 --- a/site/assets/js/platform.js +++ b/site/assets/js/platform.js @@ -3,6 +3,9 @@ const platform = require('platform') function getArch (os, arch) { if (arch === '32' && os !== 'darwin') return '386' + if (os === 'darwin') { + return 'arm64' // assume Apple ARM https://github.com/ipfs/distributions/issues/840 + } return 'amd64' } @@ -37,7 +40,7 @@ module.exports = function handlePlatform () { let osName = getOsName(platform.os.family) let arch = getArch(osName, platform.os.architecture) - if (arch === 'amd64') { + if (arch === 'amd64' || arch === 'arm64') { arch = '64bit' } else { arch = '32bit' From 48fe83b38eab69d3687f5124d97581271d110839 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 12 Jun 2023 14:41:37 +0000 Subject: [PATCH 02/26] chore: add Kubo release --- dists/go-ipfs/build_matrix | 1 + dists/go-ipfs/versions | 1 + dists/kubo/versions | 1 + 3 files changed, 3 insertions(+) diff --git a/dists/go-ipfs/build_matrix b/dists/go-ipfs/build_matrix index c562e61b..5c19385d 100644 --- a/dists/go-ipfs/build_matrix +++ b/dists/go-ipfs/build_matrix @@ -12,3 +12,4 @@ linux arm linux arm64 windows 386 windows amd64 +windows arm64 diff --git a/dists/go-ipfs/versions b/dists/go-ipfs/versions index a59bf586..e0cd32aa 100644 --- a/dists/go-ipfs/versions +++ b/dists/go-ipfs/versions @@ -88,3 +88,4 @@ v0.20.0-rc1 v0.20.0-rc2 v0.19.2 v0.20.0 +v0.21.0-rc1 diff --git a/dists/kubo/versions b/dists/kubo/versions index a007ae1b..2bc6e3d6 100644 --- a/dists/kubo/versions +++ b/dists/kubo/versions @@ -18,3 +18,4 @@ v0.20.0-rc1 v0.20.0-rc2 v0.19.2 v0.20.0 +v0.21.0-rc1 From a43e4b2db30688d512fab76eea8f5fc0f81209fc Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 12 Jun 2023 16:44:59 +0200 Subject: [PATCH 03/26] chore: bump Go version to 1.19.10 --- .tool-versions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tool-versions b/.tool-versions index 975d183d..3a444210 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ nodejs 16.15.1 -golang 1.19.8 +golang 1.19.10 From 38f2966132c295ac4b8b875213d693dab3accb65 Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 14 Jun 2023 11:13:23 +0000 Subject: [PATCH 04/26] chore: Update .github/workflows/stale.yml [skip ci] --- .github/workflows/stale.yml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 6f6d895d..668bd07d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,21 +6,4 @@ on: jobs: stale: - - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - - steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.' - close-issue-message: 'This issue was closed because it is missing author input.' - stale-issue-label: 'kind/stale' - any-of-labels: 'need/author-input' - exempt-issue-labels: 'need/triage,need/community-input,need/maintainer-input,need/maintainers-input,need/analysis,status/blocked,status/in-progress,status/ready,status/deferred,status/inactive' - days-before-issue-stale: 6 - days-before-issue-close: 7 - enable-statistics: true + uses: pl-strflt/.github/.github/workflows/reusable-stale-issue.yml@v0.3 From 6833b13b53a63732ffaeeae7eb32b78eac2bf64d Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 14 Jun 2023 11:30:03 +0000 Subject: [PATCH 05/26] chore: Update .github/dependabot.yml [skip ci] --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..5ace4600 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" From 6ac1a7434bcf3e1e7b3ba526eb23b3a28d01e108 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:30:28 +0000 Subject: [PATCH 06/26] build(deps): bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 8 ++++---- .github/workflows/nightly.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b56c0495..243f0a96 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: build: runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || '"ubuntu-latest"') }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '16' @@ -46,7 +46,7 @@ jobs: lint: runs-on: "ubuntu-latest" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '16' @@ -57,7 +57,7 @@ jobs: runs-on: "macos-latest" needs: build steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Retrieve unsigned artifacts uses: actions/download-artifact@v2 with: @@ -103,7 +103,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: '16' - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Retrieve signed artifacts uses: actions/download-artifact@v2 continue-on-error: true # skip if no releases diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 13d4f6bf..655262ad 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -23,7 +23,7 @@ jobs: prepare-matrix: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: awk 'NR == FNR {f1[$0] = 1; next}; !($0 in f1)' ignored-during-nightly <(ls ./dists -1) > nightlies-to-run - id: set-matrix run: echo "::set-output name=matrix::$(jq -nc '$ARGS.positional' --args $(cat nightlies-to-run))" @@ -38,7 +38,7 @@ jobs: matrix: dist_name: ${{ fromJson(needs.prepare-matrix.outputs.matrix) }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - env: CLUSTER_USER: ${{ secrets.CLUSTER_USER }} CLUSTER_PASSWORD: ${{ secrets.CLUSTER_PASSWORD }} From 1d57a1af03970c173fc96d2971ddeda849a91392 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:30:31 +0000 Subject: [PATCH 07/26] build(deps): bump actions/github-script from 4 to 6 Bumps [actions/github-script](https://github.com/actions/github-script) from 4 to 6. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- .github/workflows/nightly.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b56c0495..3e55f826 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -165,7 +165,7 @@ jobs: with: name: diff - name: Create comment with the diff - uses: actions/github-script@v4 + uses: actions/github-script@v6 with: script: | const fs = require('fs').promises diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 13d4f6bf..0e868578 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -47,7 +47,7 @@ jobs: - run: cd ./dists/${{ matrix.dist_name }} && make nightly - run: ./dockerized make publish - name: Create issue if build failed - uses: actions/github-script@v4 + uses: actions/github-script@v6 if: ${{ failure() }} with: script: | @@ -98,7 +98,7 @@ jobs: GIT_REVISION: ${{ github.sha }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Close any open issues about broken build - uses: actions/github-script@v4 + uses: actions/github-script@v6 if: ${{ success() }} with: script: | From 616957a052db45f5f19ed269070bdd427dd791ff Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 15 Jun 2023 11:46:45 +0000 Subject: [PATCH 08/26] chore: add Kubo release --- dists/go-ipfs/versions | 1 + dists/kubo/versions | 1 + 2 files changed, 2 insertions(+) diff --git a/dists/go-ipfs/versions b/dists/go-ipfs/versions index e0cd32aa..1cf3ff34 100644 --- a/dists/go-ipfs/versions +++ b/dists/go-ipfs/versions @@ -89,3 +89,4 @@ v0.20.0-rc2 v0.19.2 v0.20.0 v0.21.0-rc1 +v0.21.0-rc2 diff --git a/dists/kubo/versions b/dists/kubo/versions index 2bc6e3d6..26856419 100644 --- a/dists/kubo/versions +++ b/dists/kubo/versions @@ -19,3 +19,4 @@ v0.20.0-rc2 v0.19.2 v0.20.0 v0.21.0-rc1 +v0.21.0-rc2 From 45d066773c6243c073e239fb7eaf193b3226a5a3 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Thu, 15 Jun 2023 18:33:21 +0200 Subject: [PATCH 09/26] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e55f826..52f87182 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -170,7 +170,7 @@ jobs: script: | const fs = require('fs').promises const diff = await fs.readFile('diff', 'utf8') - await github.issues.createComment({ + await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: ${{ github.event.number }}, From 68f8da68b54812569d7fd753b7a4f957bd5e5b98 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Thu, 15 Jun 2023 18:34:35 +0200 Subject: [PATCH 10/26] Update nightly.yml --- .github/workflows/nightly.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0e868578..05655121 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -54,13 +54,13 @@ jobs: const title = 'Nightly build failed for ${{ matrix.dist_name }}' const body = '${{ matrix.dist_name }} failed to build from the latest commit: https://github.com/ipfs/distributions/actions/runs/${{ github.run_id }}' const opts = { owner: context.repo.owner, repo: context.repo.repo } - const response = await github.search.issuesAndPullRequests({ + const response = await github.rest.search.issuesAndPullRequests({ q: `repo:ipfs/distributions is:issue is:open in:title ${title}` }) console.log('github.issuesAndPullRequests', response) let link if (response.data.items.length === 0) { - const created = await github.issues.create({ ...opts, title, body, + const created = await github.rest.issues.create({ ...opts, title, body, labels: ['kind/bug', 'need/triage'] }) console.log('no open issues, created a new one', created) @@ -69,7 +69,7 @@ jobs: for (const issue of response.data.items) { if (issue.title !== title) continue console.log('found existing open issue', issue) - const created = await github.issues.createComment({ ...opts, + const created = await github.rest.issues.createComment({ ...opts, issue_number: issue.number, body }) @@ -105,18 +105,18 @@ jobs: const title = 'Nightly build failed for ${{ matrix.dist_name }}' const body = 'Fixed! ${{ matrix.dist_name }} got successfully built from the latest commit: https://github.com/ipfs/distributions/actions/runs/${{ github.run_id }}' const opts = { owner: context.repo.owner, repo: context.repo.repo } - const response = await github.search.issuesAndPullRequests({ + const response = await github.rest.search.issuesAndPullRequests({ q: `repo:ipfs/distributions is:issue is:open in:title ${title}` }) console.log('github.issuesAndPullRequests', response) for (const issue of response.data.items) { if (issue.title !== title) continue console.log('found existing open issue', issue) - const created = await github.issues.createComment({ ...opts, + const created = await github.rest.issues.createComment({ ...opts, issue_number: issue.number, body }) - await github.issues.update({ ...opts, + await github.rest.issues.update({ ...opts, issue_number: issue.number, state: 'closed', assignees: [] From a7c48f4fd5efc89296966d7d8df6b28a9100bc4c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:35:32 +0000 Subject: [PATCH 11/26] build(deps): bump actions/setup-node from 2 to 3 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 51ea4b2b..23fabd2c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: runs-on: ${{ fromJSON(vars.CI_BUILD_RUNS_ON || '"ubuntu-latest"') }} steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: '16' - env: @@ -47,7 +47,7 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: '16' - run: npm ci --no-audit --progress=false @@ -100,7 +100,7 @@ jobs: environment: Deploy steps: - name: Setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '16' - uses: actions/checkout@v3 From d79cdf234dacc47576e9b0a47a333fe2c937fbc9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:35:33 +0000 Subject: [PATCH 12/26] build(deps): bump actions/download-artifact from 2 to 3 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 51ea4b2b..624b5ad3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Retrieve unsigned artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: releases-unsigned-diff path: releases @@ -105,7 +105,7 @@ jobs: node-version: '16' - uses: actions/checkout@v3 - name: Retrieve signed artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 continue-on-error: true # skip if no releases with: name: releases-signed-macos-diff @@ -161,7 +161,7 @@ jobs: if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: diff - name: Create comment with the diff From d6bdb72ce6fbe03109ac7215a4df3ab558627df8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:35:35 +0000 Subject: [PATCH 13/26] build(deps): bump actions/upload-artifact from 2 to 3 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 51ea4b2b..9a2b0ab7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: - name: Inspect git status and contents of ./releases run: git status && ls -Rhl ./releases - name: Temporarily save ./releases artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: releases-unsigned-diff path: releases @@ -87,7 +87,7 @@ jobs: - name: List ./releases after run: ls -Rhl ./releases || echo "No ./releases" - name: Temporarily save notarized artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: releases-signed-macos-diff path: releases @@ -139,7 +139,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./dockerized make diff if: github.event_name == 'pull_request' - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: github.event_name == 'pull_request' with: name: diff From 438ea2709776bf702858b95a05c086d7c170a485 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Fri, 16 Jun 2023 12:52:34 +0200 Subject: [PATCH 14/26] chore: update codesign action --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ebf7dab..f481b1b9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,7 +72,7 @@ jobs: brew install ipfs coreutils gawk gnu-sed jq mitchellh/gon/gon ipfs init --profile test # needed for calculating NEW_CID later - name: Import Keychain Certs - uses: apple-actions/import-codesign-certs@253ddeeac23f2bdad1646faac5c8c2832e800071 # v1@2020-02-03 + uses: apple-actions/import-codesign-certs@8f3fb608891dd2244cdab3d69cd68c0d37a7fe93 # v2 with: p12-file-base64: ${{ secrets.APPLE_CERTS_P12 }} p12-password: ${{ secrets.APPLE_CERTS_PASS }} From b4fdfb247856beddd703af88f8096bb9ec5bce0c Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 20 Jun 2023 11:16:28 +0000 Subject: [PATCH 15/26] chore: add Kubo release --- dists/go-ipfs/versions | 1 + dists/kubo/versions | 1 + 2 files changed, 2 insertions(+) diff --git a/dists/go-ipfs/versions b/dists/go-ipfs/versions index 1cf3ff34..09e2c5fd 100644 --- a/dists/go-ipfs/versions +++ b/dists/go-ipfs/versions @@ -90,3 +90,4 @@ v0.19.2 v0.20.0 v0.21.0-rc1 v0.21.0-rc2 +v0.21.0-rc3 diff --git a/dists/kubo/versions b/dists/kubo/versions index 26856419..fdf31f3d 100644 --- a/dists/kubo/versions +++ b/dists/kubo/versions @@ -20,3 +20,4 @@ v0.19.2 v0.20.0 v0.21.0-rc1 v0.21.0-rc2 +v0.21.0-rc3 From 592b705dcb19d9363709409e016681fd62b43c47 Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 28 Jun 2023 08:51:01 +0000 Subject: [PATCH 16/26] chore: Update .github/workflows/stale.yml [skip ci] --- .github/workflows/stale.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 668bd07d..16d65d72 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,7 +2,11 @@ name: Close and mark stale issue on: schedule: - - cron: '0 0 * * *' + - cron: '0 0 * * *' + +permissions: + issues: write + pull-requests: write jobs: stale: From 9c20454b9a05cc90b0d33fdb5430c251b81ccd1c Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 3 Jul 2023 07:19:53 +0000 Subject: [PATCH 17/26] chore: add Kubo release --- dists/go-ipfs/current | 2 +- dists/go-ipfs/versions | 1 + dists/kubo/current | 2 +- dists/kubo/versions | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dists/go-ipfs/current b/dists/go-ipfs/current index 1847373e..759e855f 100644 --- a/dists/go-ipfs/current +++ b/dists/go-ipfs/current @@ -1 +1 @@ -v0.20.0 +v0.21.0 diff --git a/dists/go-ipfs/versions b/dists/go-ipfs/versions index 09e2c5fd..6f46c6c6 100644 --- a/dists/go-ipfs/versions +++ b/dists/go-ipfs/versions @@ -91,3 +91,4 @@ v0.20.0 v0.21.0-rc1 v0.21.0-rc2 v0.21.0-rc3 +v0.21.0 diff --git a/dists/kubo/current b/dists/kubo/current index 1847373e..759e855f 100644 --- a/dists/kubo/current +++ b/dists/kubo/current @@ -1 +1 @@ -v0.20.0 +v0.21.0 diff --git a/dists/kubo/versions b/dists/kubo/versions index fdf31f3d..92de6c4c 100644 --- a/dists/kubo/versions +++ b/dists/kubo/versions @@ -21,3 +21,4 @@ v0.20.0 v0.21.0-rc1 v0.21.0-rc2 v0.21.0-rc3 +v0.21.0 From 272f65987d16f08472ecda1ae1272a97eb6e9902 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 27 Jul 2023 13:15:48 +0200 Subject: [PATCH 18/26] chore: update go to 1.19.11 --- .tool-versions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tool-versions b/.tool-versions index 3a444210..fafeb135 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ nodejs 16.15.1 -golang 1.19.10 +golang 1.19.11 From dc74d93b2759c3f3bf890d818f0df1a370db7ab7 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 27 Jul 2023 14:45:13 +0200 Subject: [PATCH 19/26] kubo: release v0.22.0-rc1 --- dists/go-ipfs/versions | 1 + dists/kubo/versions | 1 + 2 files changed, 2 insertions(+) diff --git a/dists/go-ipfs/versions b/dists/go-ipfs/versions index 6f46c6c6..67305862 100644 --- a/dists/go-ipfs/versions +++ b/dists/go-ipfs/versions @@ -92,3 +92,4 @@ v0.21.0-rc1 v0.21.0-rc2 v0.21.0-rc3 v0.21.0 +v0.22.0-rc1 diff --git a/dists/kubo/versions b/dists/kubo/versions index 92de6c4c..cef664ec 100644 --- a/dists/kubo/versions +++ b/dists/kubo/versions @@ -22,3 +22,4 @@ v0.21.0-rc1 v0.21.0-rc2 v0.21.0-rc3 v0.21.0 +v0.22.0-rc1 From bb6a4b53cdaaff6a0a7422d8d36c10e32bec1e43 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 27 Jul 2023 17:17:16 +0200 Subject: [PATCH 20/26] ci: move from go-ipfs v0.15.0 in CI to Kubo v0.21.0 --- .github/actions/setup-ipfs/action.yml | 2 +- .github/workflows/main.yml | 4 ++-- .github/workflows/nightly.yml | 4 ++-- Dockerfile | 4 ++-- dockerized | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/setup-ipfs/action.yml b/.github/actions/setup-ipfs/action.yml index aa558968..91958e6e 100644 --- a/.github/actions/setup-ipfs/action.yml +++ b/.github/actions/setup-ipfs/action.yml @@ -6,7 +6,7 @@ runs: - uses: ipfs/download-ipfs-distribution-action@v1 with: name: go-ipfs - version: "${{ env.GO_IPFS_VER }}" + version: "${{ env.KUBO_VER }}" - uses: ipfs/download-ipfs-distribution-action@v1 with: name: ipfs-cluster-ctl diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f481b1b9..995acc0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,8 +16,8 @@ on: env: DIST_ROOT: ${{ github.event.inputs.custom_dist_root || '/ipns/dist.ipfs.tech' }} # content root used for calculating diff to build - GO_IPFS_VER: 'v0.15.0' # go-ipfs daemon used for chunking and applying diff - CLUSTER_CTL_VER: 'v1.0.4' # ipfs-cluster-ctl used for pinning + KUBO_VER: 'v0.21.0' # kubo daemon used for chunking and applying diff + CLUSTER_CTL_VER: 'v1.0.4' # ipfs-cluster-ctl used for pinning jobs: build: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index bdad9394..6ad2f872 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -12,8 +12,8 @@ on: env: DIST_ROOT: ${{ github.event.inputs.custom_dist_root || '/ipns/dist.ipfs.tech' }} # content root used for calculating diff to build - GO_IPFS_VER: 'v0.15.0' # go-ipfs daemon used for chunking and applying diff - CLUSTER_CTL_VER: 'v1.0.4' # ipfs-cluster-ctl used for pinning + KUBO_VER: 'v0.21.0' # kubo daemon used for chunking and applying diff + CLUSTER_CTL_VER: 'v1.0.4' # ipfs-cluster-ctl used for pinning concurrency: group: nightly diff --git a/Dockerfile b/Dockerfile index cde672b2..b2dc8e38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,11 @@ FROM ubuntu:20.04 ENV DEBIAN_FRONTEND noninteractive ARG USER_UID -ARG GO_IPFS_VER +ARG KUBO_VER RUN apt-get update -q && apt-get install -y git curl gnupg jq build-essential gawk zip tzdata && \ ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \ dpkg-reconfigure --frontend noninteractive tzdata -RUN curl -s "https://dist.ipfs.tech/go-ipfs/${GO_IPFS_VER}/go-ipfs_${GO_IPFS_VER}_linux-amd64.tar.gz" | tar vzx -C /usr/local/bin/ go-ipfs/ipfs --strip-components=1 +RUN curl -s "https://dist.ipfs.tech/kubo/${KUBO_VER}/kubo_${KUBO_VER}_linux-amd64.tar.gz" | tar vzx -C /usr/local/bin/ kubo/ipfs --strip-components=1 RUN adduser --shell /bin/bash --home /asdf --disabled-password --gecos asdf asdf --uid $USER_UID ENV PATH="${PATH}:/asdf/.asdf/shims:/asdf/.asdf/bin" diff --git a/dockerized b/dockerized index cc6e36cb..727f7423 100755 --- a/dockerized +++ b/dockerized @@ -19,7 +19,7 @@ if [[ "$(docker images -q "$IMAGE_NAME:$IMAGE_TAG" 2> /dev/null)" == "" ]]; then docker build . -t "$IMAGE_NAME:$IMAGE_TAG" \ --build-arg CACHEBUST="$IMAGE_TAG" \ --build-arg USER_UID="$(id -u "$USER")" \ - --build-arg GO_IPFS_VER="${GO_IPFS_VER:-$(curl -s https://dist.ipfs.tech/go-ipfs/versions | tail -n 1)}" # match http api client version on CI + --build-arg KUBO_VER="${KUBO_VER:-$(curl -s https://dist.ipfs.tech/kubo/versions | tail -n 1)}" # match http api client version on CI fi From 6b6102ab4cd67c18d1337cb8a89b09b341d34b9e Mon Sep 17 00:00:00 2001 From: Jorropo Date: Tue, 8 Aug 2023 17:13:11 +0200 Subject: [PATCH 21/26] bump go to 1.19.12 --- .tool-versions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tool-versions b/.tool-versions index fafeb135..e9839311 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ nodejs 16.15.1 -golang 1.19.11 +golang 1.19.12 From 6d70467367802e00526aab22d834ae182a3745a5 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Tue, 8 Aug 2023 17:14:30 +0200 Subject: [PATCH 22/26] add Kubo v0.21.1 --- dists/go-ipfs/versions | 1 + dists/kubo/versions | 2 ++ 2 files changed, 3 insertions(+) diff --git a/dists/go-ipfs/versions b/dists/go-ipfs/versions index 67305862..4319ab8b 100644 --- a/dists/go-ipfs/versions +++ b/dists/go-ipfs/versions @@ -92,4 +92,5 @@ v0.21.0-rc1 v0.21.0-rc2 v0.21.0-rc3 v0.21.0 +v0.21.1 v0.22.0-rc1 diff --git a/dists/kubo/versions b/dists/kubo/versions index cef664ec..9299ec37 100644 --- a/dists/kubo/versions +++ b/dists/kubo/versions @@ -22,4 +22,6 @@ v0.21.0-rc1 v0.21.0-rc2 v0.21.0-rc3 v0.21.0 +v0.21.1 v0.22.0-rc1 + From 3c5d42fd9260109d92fc51d1dfcf90ef6d2c86e2 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Tue, 8 Aug 2023 17:19:50 +0200 Subject: [PATCH 23/26] add Kubo v0.22.0 --- dists/go-ipfs/current | 2 +- dists/go-ipfs/versions | 1 + dists/kubo/current | 2 +- dists/kubo/versions | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dists/go-ipfs/current b/dists/go-ipfs/current index 759e855f..4f279437 100644 --- a/dists/go-ipfs/current +++ b/dists/go-ipfs/current @@ -1 +1 @@ -v0.21.0 +v0.22.0 diff --git a/dists/go-ipfs/versions b/dists/go-ipfs/versions index 4319ab8b..7331a8e3 100644 --- a/dists/go-ipfs/versions +++ b/dists/go-ipfs/versions @@ -94,3 +94,4 @@ v0.21.0-rc3 v0.21.0 v0.21.1 v0.22.0-rc1 +v0.22.0 diff --git a/dists/kubo/current b/dists/kubo/current index 759e855f..4f279437 100644 --- a/dists/kubo/current +++ b/dists/kubo/current @@ -1 +1 @@ -v0.21.0 +v0.22.0 diff --git a/dists/kubo/versions b/dists/kubo/versions index 9299ec37..cdb44c21 100644 --- a/dists/kubo/versions +++ b/dists/kubo/versions @@ -24,4 +24,4 @@ v0.21.0-rc3 v0.21.0 v0.21.1 v0.22.0-rc1 - +v0.22.0 From a6bd8a44ecca1689f47ae195c90f0acf98e3db5e Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 31 Aug 2023 23:38:20 +0200 Subject: [PATCH 24/26] chore: update go to 1.20.7 --- .tool-versions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tool-versions b/.tool-versions index e9839311..6e116bee 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ nodejs 16.15.1 -golang 1.19.12 +golang 1.20.7 From e93629f55d9a2efeef3bc50b05261d3384f6c9ca Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 31 Aug 2023 23:45:20 +0200 Subject: [PATCH 25/26] feat: add kubo repo migration 14 to 15 --- dists/fs-repo-14-to-15/Makefile | 5 +++++ dists/fs-repo-14-to-15/build_matrix | 15 +++++++++++++++ dists/fs-repo-14-to-15/current | 1 + dists/fs-repo-14-to-15/description | 1 + dists/fs-repo-14-to-15/no-site | 0 dists/fs-repo-14-to-15/repo-owner | 1 + dists/fs-repo-14-to-15/versions | 1 + dists/fs-repo-14-to-15/vtag | 1 + 8 files changed, 25 insertions(+) create mode 100644 dists/fs-repo-14-to-15/Makefile create mode 100644 dists/fs-repo-14-to-15/build_matrix create mode 100644 dists/fs-repo-14-to-15/current create mode 100644 dists/fs-repo-14-to-15/description create mode 100644 dists/fs-repo-14-to-15/no-site create mode 100644 dists/fs-repo-14-to-15/repo-owner create mode 100644 dists/fs-repo-14-to-15/versions create mode 100644 dists/fs-repo-14-to-15/vtag diff --git a/dists/fs-repo-14-to-15/Makefile b/dists/fs-repo-14-to-15/Makefile new file mode 100644 index 00000000..29e82e9f --- /dev/null +++ b/dists/fs-repo-14-to-15/Makefile @@ -0,0 +1,5 @@ +repo = github.com/ipfs/fs-repo-migrations +# sub-package to build (omit when building the main package) +package = fs-repo-14-to-15 + +include ../../common.mk diff --git a/dists/fs-repo-14-to-15/build_matrix b/dists/fs-repo-14-to-15/build_matrix new file mode 100644 index 00000000..5c19385d --- /dev/null +++ b/dists/fs-repo-14-to-15/build_matrix @@ -0,0 +1,15 @@ +darwin amd64 +darwin arm64 +freebsd 386 +freebsd amd64 +freebsd arm +openbsd 386 +openbsd amd64 +openbsd arm +linux 386 +linux amd64 +linux arm +linux arm64 +windows 386 +windows amd64 +windows arm64 diff --git a/dists/fs-repo-14-to-15/current b/dists/fs-repo-14-to-15/current new file mode 100644 index 00000000..0ec25f75 --- /dev/null +++ b/dists/fs-repo-14-to-15/current @@ -0,0 +1 @@ +v1.0.0 diff --git a/dists/fs-repo-14-to-15/description b/dists/fs-repo-14-to-15/description new file mode 100644 index 00000000..323f67e8 --- /dev/null +++ b/dists/fs-repo-14-to-15/description @@ -0,0 +1 @@ +Migrate fsrepo from version 14 to version 15 diff --git a/dists/fs-repo-14-to-15/no-site b/dists/fs-repo-14-to-15/no-site new file mode 100644 index 00000000..e69de29b diff --git a/dists/fs-repo-14-to-15/repo-owner b/dists/fs-repo-14-to-15/repo-owner new file mode 100644 index 00000000..1670fe3c --- /dev/null +++ b/dists/fs-repo-14-to-15/repo-owner @@ -0,0 +1 @@ +ipfs diff --git a/dists/fs-repo-14-to-15/versions b/dists/fs-repo-14-to-15/versions new file mode 100644 index 00000000..0ec25f75 --- /dev/null +++ b/dists/fs-repo-14-to-15/versions @@ -0,0 +1 @@ +v1.0.0 diff --git a/dists/fs-repo-14-to-15/vtag b/dists/fs-repo-14-to-15/vtag new file mode 100644 index 00000000..9b686fec --- /dev/null +++ b/dists/fs-repo-14-to-15/vtag @@ -0,0 +1 @@ +fs-repo-14-to-15 From f0f5e7faafbe27290c2598d51b2ccf3e48cca524 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Tue, 19 Sep 2023 19:28:01 +0200 Subject: [PATCH 26/26] fs-repo-14-to-15: add v1.0.1 --- dists/fs-repo-14-to-15/current | 2 +- dists/fs-repo-14-to-15/versions | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dists/fs-repo-14-to-15/current b/dists/fs-repo-14-to-15/current index 0ec25f75..b18d4654 100644 --- a/dists/fs-repo-14-to-15/current +++ b/dists/fs-repo-14-to-15/current @@ -1 +1 @@ -v1.0.0 +v1.0.1 diff --git a/dists/fs-repo-14-to-15/versions b/dists/fs-repo-14-to-15/versions index 0ec25f75..344577e1 100644 --- a/dists/fs-repo-14-to-15/versions +++ b/dists/fs-repo-14-to-15/versions @@ -1 +1,2 @@ v1.0.0 +v1.0.1