From b11c322b8999df65e39deccf428995dec1dde661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 11 May 2023 16:14:51 +0200 Subject: [PATCH] chore: upgrade thiserror and deno_lockfile (#19073) Upgrade `thiserror` to `1.40.0`. Remove version pinning so that consumers of deno crates can install newer versions of `thiserrors` without waiting for us to upgrade our Cargo.toml. Upgrade `deno_lockfile` to `0.14.0` to bring in `thiserror` upgrade, see https://github.com/denoland/deno_lockfile/pull/1. --- .github/workflows/ci.generate.ts | 4 ++-- .github/workflows/ci.yml | 6 +++--- Cargo.lock | 14 +++++++------- Cargo.toml | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index b5fa91afb6..139c554d16 100755 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -17,7 +17,7 @@ const Runners = (() => { })(); // bump the number at the start when you want to purge the cache const prCacheKeyPrefix = - "23-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-"; + "24-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-"; const installPkgsCommand = "sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15"; @@ -476,7 +476,7 @@ const ci = { "~/.cargo/git/db", ].join("\n"), key: - "23-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}", + "24-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}", }, }, { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f2c788c25..6ccfbb2c51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -290,7 +290,7 @@ jobs: ~/.cargo/registry/index ~/.cargo/registry/cache ~/.cargo/git/db - key: '23-cargo-home-${{ matrix.os }}-${{ hashFiles(''Cargo.lock'') }}' + key: '24-cargo-home-${{ matrix.os }}-${{ hashFiles(''Cargo.lock'') }}' if: '!(github.event_name == ''pull_request'' && matrix.skip_pr)' - name: Restore cache build output (PR) uses: actions/cache/restore@v3 @@ -302,7 +302,7 @@ jobs: !./target/*/*.zip !./target/*/*.tar.gz key: never_saved - restore-keys: '23-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-' + restore-keys: '24-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-' - name: Apply and update mtime cache if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (!startsWith(github.ref, ''refs/tags/''))' uses: ./.github/mtime_cache @@ -583,7 +583,7 @@ jobs: !./target/*/gn_out !./target/*/*.zip !./target/*/*.tar.gz - key: '23-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-${{ github.sha }}' + key: '24-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-${{ github.sha }}' publish-canary: name: publish canary runs-on: ubuntu-22.04 diff --git a/Cargo.lock b/Cargo.lock index 88452bb6b9..be34a16a2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1102,9 +1102,9 @@ dependencies = [ [[package]] name = "deno_lockfile" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e88b89dc19bc7b0c28297c9fde36dc999a04c19b6d01ff061ae30dc9119488c8" +checksum = "54cecfa877ecd31bb7f694826a2b6566ff77515f527bddae296aff455e6999c2" dependencies = [ "ring", "serde", @@ -5118,22 +5118,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.38" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0" +checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.38" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f" +checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" dependencies = [ "proc-macro2 1.0.56", "quote 1.0.26", - "syn 1.0.109", + "syn 2.0.13", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 194cce09bb..7bcb59a750 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ deno_runtime = { version = "0.111.0", path = "./runtime" } napi_sym = { version = "0.33.0", path = "./cli/napi/sym" } deno_bench_util = { version = "0.97.0", path = "./bench_util" } test_util = { path = "./test_util" } -deno_lockfile = "0.13.0" +deno_lockfile = "0.14.0" deno_media_type = { version = "0.1.0", features = ["module_specifier"] } deno_npm = "0.3.0" deno_semver = "0.2.1" @@ -132,7 +132,7 @@ smallvec = "1.8" socket2 = "0.4.7" tar = "=0.4.38" tempfile = "3.4.0" -thiserror = "=1.0.38" +thiserror = "1.0.40" tokio = { version = "1.28.1", features = ["full"] } tikv-jemallocator = "0.5.0" tikv-jemalloc-sys = "0.5.3"