From f1bbcea302a44165d2165443e3a7bea136ca7b6c Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Fri, 17 Nov 2023 17:52:52 +0000 Subject: [PATCH] Switch to consuming `commons` from the Ruby CNB `main` branch (#725) Since the feature branch no longer exists. This will fix Dependabot erroring out with: ``` Errored with the message "Dependabot couldn't fetch the branch/reference for commons" ``` This also required adding `fun_run` as an explicit dependency, due to: https://github.com/heroku/buildpacks-ruby/pull/232 --- Cargo.lock | 458 +++++++----------- Cargo.toml | 2 +- buildpacks/nodejs-npm-engine/Cargo.toml | 1 + .../src/layers/npm_engine.rs | 6 +- buildpacks/nodejs-npm-engine/src/main.rs | 2 +- buildpacks/nodejs-npm-engine/src/node.rs | 2 +- buildpacks/nodejs-npm-engine/src/npm.rs | 2 +- buildpacks/nodejs-npm-install/Cargo.toml | 1 + buildpacks/nodejs-npm-install/src/errors.rs | 2 +- buildpacks/nodejs-npm-install/src/main.rs | 2 +- buildpacks/nodejs-npm-install/src/npm.rs | 2 +- 11 files changed, 191 insertions(+), 289 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b0697ff6..fa81b259 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,9 +109,9 @@ dependencies = [ [[package]] name = "bstr" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c79ad7fb2dd38f3dabd76b09c6a5a20c038fc0213ef1e9afd30eb777f120f019" +checksum = "542f33a8835a0884b006a0c3df3dadd99c0c3f296ed26c2fdc8028e01ad6230c" dependencies = [ "memchr", "serde", @@ -135,9 +135,9 @@ dependencies = [ [[package]] name = "bytecount" -version = "0.6.5" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1a12477b7237a01c11a80a51278165f9ba0edd28fa6db00a65ab230320dc58c" +checksum = "e1e5f035d16fc623ae5f74981db80a439803888314e3a555fd6f04acd51a3205" [[package]] name = "camino" @@ -157,20 +157,6 @@ dependencies = [ "serde", ] -[[package]] -name = "cargo_metadata" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7daec1a2a2129eeba1644b220b4647ec537b0b5d4bfd6876fcc5a540056b592" -dependencies = [ - "camino", - "cargo-platform", - "semver", - "serde", - "serde_json", - "thiserror", -] - [[package]] name = "cargo_metadata" version = "0.18.1" @@ -217,27 +203,27 @@ dependencies = [ [[package]] name = "commons" -version = "0.1.0" -source = "git+https://github.com/heroku/buildpacks-ruby?branch=schneems/logging-state-machine-continued#bf253a115546d106caae13c5358be05ec999d5ba" +version = "1.0.0" +source = "git+https://github.com/heroku/buildpacks-ruby?branch=main#38e164a50db7139a66515c5f8629f7b166d270ec" dependencies = [ "ascii_table", "byte-unit", "const_format", - "fancy-regex", + "fancy-regex 0.12.0", "fs-err", "fs_extra", + "fun_run", "glob", "indoc", "lazy_static", - "libcnb 0.14.0", - "libherokubuildpack 0.14.0", + "libcnb 0.16.0", + "libherokubuildpack 0.16.0", "regex", "serde", "sha2", "tempfile", "thiserror", "walkdir", - "which_problem", ] [[package]] @@ -268,9 +254,9 @@ checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "cpufeatures" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fbc60abd742b35f2492f808e1abbb83d45f72db402e14c55057edc9c7b1e9e4" +checksum = "ce420fe07aecd3e67c5f910618fe65e94158f6dcc0adf44e00d69ce2bdfe0fd0" dependencies = [ "libc", ] @@ -294,30 +280,6 @@ dependencies = [ "crossbeam-utils", ] -[[package]] -name = "crossbeam-deque" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" -dependencies = [ - "cfg-if", - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" -dependencies = [ - "autocfg", - "cfg-if", - "crossbeam-utils", - "memoffset", - "scopeguard", -] - [[package]] name = "crossbeam-utils" version = "0.8.16" @@ -361,9 +323,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.5" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3e13f66a2f95e32a39eaa81f6b95d42878ca0e1db0c7543723dfe12557e860" +checksum = "f258a7194e7f7c2a7837a8913aeab7fd8c383457034fa20ce4dd3dcb813e8eb8" dependencies = [ "libc", "windows-sys", @@ -379,6 +341,16 @@ dependencies = [ "regex", ] +[[package]] +name = "fancy-regex" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7493d4c459da9f84325ad297371a6b2b8a162800873a22e3b6b6512e61d18c05" +dependencies = [ + "bit-set", + "regex", +] + [[package]] name = "fastrand" version = "2.0.1" @@ -393,7 +365,7 @@ checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.3.5", "windows-sys", ] @@ -431,9 +403,12 @@ dependencies = [ [[package]] name = "fs-err" -version = "2.9.0" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0845fa252299212f0389d64ba26f34fa32cfe41588355f21ed507c59a0f64541" +checksum = "fb5fd9bcbe8b1087cbd395b51498c01bc997cef73e778a80b77a811af5e2d29f" +dependencies = [ + "autocfg", +] [[package]] name = "fs_extra" @@ -441,26 +416,36 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" +[[package]] +name = "fun_run" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f1c09c4db8c8f60b5ab97bddf2e93a458ee43d65c6e02f9a4643b07159d4962" +dependencies = [ + "lazy_static", + "regex", +] + [[package]] name = "futures-channel" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" +checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb" dependencies = [ "futures-core", ] [[package]] name = "futures-core" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" +checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" [[package]] name = "futures-executor" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" +checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc" dependencies = [ "futures-core", "futures-task", @@ -469,9 +454,9 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" +checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb" dependencies = [ "proc-macro2", "quote", @@ -480,21 +465,21 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" +checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" [[package]] name = "futures-task" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" +checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2" [[package]] name = "futures-util" -version = "0.3.28" +version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" +checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104" dependencies = [ "futures-core", "futures-macro", @@ -517,9 +502,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" +checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" dependencies = [ "cfg-if", "libc", @@ -586,7 +571,7 @@ dependencies = [ "tempfile", "test_support", "thiserror", - "toml 0.8.4", + "toml", "ureq", ] @@ -606,7 +591,7 @@ dependencies = [ "tempfile", "test_support", "thiserror", - "toml 0.8.4", + "toml", "ureq", ] @@ -621,7 +606,7 @@ dependencies = [ "libherokubuildpack 0.15.0", "serde", "test_support", - "toml 0.8.4", + "toml", "ureq", ] @@ -643,7 +628,7 @@ dependencies = [ "serde_json", "tempfile", "thiserror", - "toml 0.8.4", + "toml", "ureq", "url", ] @@ -660,7 +645,7 @@ dependencies = [ "tempfile", "test_support", "thiserror", - "toml 0.8.4", + "toml", "ureq", ] @@ -669,6 +654,7 @@ name = "heroku-npm-engine-buildpack" version = "0.0.0" dependencies = [ "commons", + "fun_run", "heroku-nodejs-utils", "indoc", "libcnb 0.15.0", @@ -678,7 +664,7 @@ dependencies = [ "serde_json", "tempfile", "test_support", - "toml 0.8.4", + "toml", ] [[package]] @@ -686,6 +672,7 @@ name = "heroku-npm-install-buildpack" version = "0.0.0" dependencies = [ "commons", + "fun_run", "heroku-nodejs-utils", "indoc", "libcnb 0.15.0", @@ -694,7 +681,7 @@ dependencies = [ "serde", "serde_json", "test_support", - "toml 0.8.4", + "toml", "ureq", ] @@ -775,9 +762,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.0.2" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897" +checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ "equivalent", "hashbrown 0.14.2", @@ -789,24 +776,6 @@ version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8" -[[package]] -name = "is_executable" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa9acdc6d67b75e626ad644734e8bc6df893d9cd2a834129065d3dd6158ea9c8" -dependencies = [ - "winapi", -] - -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - [[package]] name = "itoa" version = "1.0.9" @@ -815,9 +784,9 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "js-sys" -version = "0.3.64" +version = "0.3.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" +checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8" dependencies = [ "wasm-bindgen", ] @@ -830,35 +799,36 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.149" +version = "0.2.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" +checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" [[package]] name = "libcnb" -version = "0.14.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5132851c82d808e6b42edd1cc9e7cb9b16b0274c325b25fdb42660fae9b2e88b" +checksum = "460e3b9d5b51eee9b9eb154e8bece15b77fff8b287457c09699a609c977003c9" dependencies = [ - "libcnb-data 0.14.0", - "libcnb-proc-macros 0.14.0", + "libcnb-common 0.15.0", + "libcnb-data 0.15.0", + "libcnb-proc-macros 0.15.0", "serde", "thiserror", - "toml 0.7.8", + "toml", ] [[package]] name = "libcnb" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "460e3b9d5b51eee9b9eb154e8bece15b77fff8b287457c09699a609c977003c9" +checksum = "38a2e51407d50a9cad2c86831998d769a80bd7ff4ac7a189a7ec39f010389d1c" dependencies = [ - "libcnb-common", - "libcnb-data 0.15.0", - "libcnb-proc-macros 0.15.0", + "libcnb-common 0.16.0", + "libcnb-data 0.16.0", + "libcnb-proc-macros 0.16.0", "serde", "thiserror", - "toml 0.8.4", + "toml", ] [[package]] @@ -869,21 +839,18 @@ checksum = "53c4c77089f294316c1d8a285d0ed9973e796a2653c676b22b3f7703d73aa828" dependencies = [ "serde", "thiserror", - "toml 0.8.4", + "toml", ] [[package]] -name = "libcnb-data" -version = "0.14.0" +name = "libcnb-common" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bed8b0f2676aebeb216a7f7872151fbf74ff3706c7027449573c03c9d7f3393" +checksum = "d05538b99137a5cf3077f5b9858081d478d08576ee08896344804f6e555a0670" dependencies = [ - "fancy-regex", - "libcnb-proc-macros 0.14.0", "serde", "thiserror", - "toml 0.7.8", - "uriparse", + "toml", ] [[package]] @@ -892,11 +859,25 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f35c4af3b47b67257263f0504897cf4db263b407b3e367971fc0b60ada69ce2" dependencies = [ - "fancy-regex", + "fancy-regex 0.11.0", "libcnb-proc-macros 0.15.0", "serde", "thiserror", - "toml 0.8.4", + "toml", + "uriparse", +] + +[[package]] +name = "libcnb-data" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bc8b6f026254bc08ee3fb3b65d99c5b35be02c6c131f21c0c2ea02eecebdfbd" +dependencies = [ + "fancy-regex 0.12.0", + "libcnb-proc-macros 0.16.0", + "serde", + "thiserror", + "toml", "uriparse", ] @@ -906,9 +887,9 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5ee4c1ac95fc5f71b0f8901d62644f9d39dad0be9d1a5bf23fae173aaf2a46c" dependencies = [ - "cargo_metadata 0.18.1", + "cargo_metadata", "ignore", - "libcnb-common", + "libcnb-common 0.15.0", "libcnb-data 0.15.0", "petgraph", "thiserror", @@ -918,24 +899,24 @@ dependencies = [ [[package]] name = "libcnb-proc-macros" -version = "0.14.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c715cec438b3a02c3564e9b9c20a78c54b9c71874249bec1e3d45fcd2537cfcf" +checksum = "5effc8c71a7401899ea2885681b213b779449dc0f581663ea850d9de0718434c" dependencies = [ - "cargo_metadata 0.17.0", - "fancy-regex", + "cargo_metadata", + "fancy-regex 0.11.0", "quote", "syn", ] [[package]] name = "libcnb-proc-macros" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5effc8c71a7401899ea2885681b213b779449dc0f581663ea850d9de0718434c" +checksum = "d7940af79192ed4043e2520231fa0162045296f6c601fe22f547b5f220ff4661" dependencies = [ - "cargo_metadata 0.18.1", - "fancy-regex", + "cargo_metadata", + "fancy-regex 0.12.0", "quote", "syn", ] @@ -948,7 +929,7 @@ checksum = "b88d0682a1abd6261f406f52214272c09738ddae239cc5d38159dfa7a53e2e63" dependencies = [ "fastrand", "fs_extra", - "libcnb-common", + "libcnb-common 0.15.0", "libcnb-data 0.15.0", "libcnb-package", "tempfile", @@ -956,37 +937,37 @@ dependencies = [ [[package]] name = "libherokubuildpack" -version = "0.14.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "999689d1a9f8cbea478ae7c4ce6136601e7abe9512ccfc0409f5525949a41457" +checksum = "2c01b437767257854de9a8011c6f7e265dc6ebc344cc122ffef2464f3e10bfc8" dependencies = [ "crossbeam-utils", "flate2", - "libcnb 0.14.0", + "libcnb 0.15.0", "pathdiff", "sha2", "tar", "termcolor", "thiserror", - "toml 0.7.8", + "toml", "ureq", ] [[package]] name = "libherokubuildpack" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c01b437767257854de9a8011c6f7e265dc6ebc344cc122ffef2464f3e10bfc8" +checksum = "dc729606f6a6fd916631054c5f4d40c3ee6d7b1fbce337ccb6c7a95fba297419" dependencies = [ "crossbeam-utils", "flate2", - "libcnb 0.15.0", + "libcnb 0.16.0", "pathdiff", "sha2", "tar", "termcolor", "thiserror", - "toml 0.8.4", + "toml", "ureq", ] @@ -1003,9 +984,9 @@ dependencies = [ [[package]] name = "linux-raw-sys" -version = "0.4.10" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" +checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" [[package]] name = "log" @@ -1019,15 +1000,6 @@ version = "2.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" -[[package]] -name = "memoffset" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" -dependencies = [ - "autocfg", -] - [[package]] name = "miette" version = "5.10.0" @@ -1191,7 +1163,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", - "indexmap 2.0.2", + "indexmap 2.1.0", ] [[package]] @@ -1267,30 +1239,19 @@ dependencies = [ ] [[package]] -name = "rayon" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.12.0" +name = "redox_syscall" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed" +checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" dependencies = [ - "crossbeam-deque", - "crossbeam-utils", + "bitflags 1.3.2", ] [[package]] name = "redox_syscall" -version = "0.3.5" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ "bitflags 1.3.2", ] @@ -1326,24 +1287,23 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "ring" -version = "0.16.20" +version = "0.17.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b" dependencies = [ "cc", + "getrandom", "libc", - "once_cell", "spin", "untrusted", - "web-sys", - "winapi", + "windows-sys", ] [[package]] name = "rustix" -version = "0.38.20" +version = "0.38.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67ce50cb2e16c2903e30d1cbccfd8387a74b9d4c938b6a4c5ec6cc7556f7a8a0" +checksum = "9ad981d6c340a49cdc40a1028d9c6084ec7e9fa33fcb839cab656a267071e234" dependencies = [ "bitflags 2.4.1", "errno", @@ -1354,9 +1314,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.21.7" +version = "0.21.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd8d6c9f025a446bc4d18ad9632e69aec8f287aa84499ee335599fabd20c3fd8" +checksum = "629648aced5775d558af50b2b4c7b02983a04b312126d45eeead26e7caa498b9" dependencies = [ "log", "ring", @@ -1366,9 +1326,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.101.6" +version = "0.101.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c7d5dece342910d9ba34d259310cae3e0154b873b35408b787b59bce53d34fe" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" dependencies = [ "ring", "untrusted", @@ -1389,17 +1349,11 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "scopeguard" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" - [[package]] name = "sct" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ "ring", "untrusted", @@ -1416,9 +1370,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.189" +version = "1.0.192" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e422a44e74ad4001bdc8eede9a4570ab52f71190e9c076d14369f38b9200537" +checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001" dependencies = [ "serde_derive", ] @@ -1437,9 +1391,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.189" +version = "1.0.192" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e48d1f918009ce3145511378cf68d613e3b3d9137d67272562080d68a2b32d5" +checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1" dependencies = [ "proc-macro2", "quote", @@ -1448,9 +1402,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.107" +version = "1.0.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" dependencies = [ "itoa", "ryu", @@ -1488,21 +1442,15 @@ dependencies = [ [[package]] name = "spin" -version = "0.5.2" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" - -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "syn" -version = "2.0.38" +version = "2.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" dependencies = [ "proc-macro2", "quote", @@ -1521,22 +1469,22 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.8.0" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" +checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" dependencies = [ "cfg-if", "fastrand", - "redox_syscall", + "redox_syscall 0.4.1", "rustix", "windows-sys", ] [[package]] name = "termcolor" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6093bad37da69aab9d123a8091e4be0aa4a03e4d601ec641c327398315f62b64" +checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449" dependencies = [ "winapi-util", ] @@ -1599,26 +1547,14 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "toml" -version = "0.7.8" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257" +checksum = "a1a195ec8c9da26928f773888e0742ca3ca1040c6cd859c919c9f59c1954ab35" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.19.15", -] - -[[package]] -name = "toml" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ef75d881185fd2df4a040793927c153d863651108a93c7e17a9e591baa95cc6" -dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit 0.20.4", + "toml_edit", ] [[package]] @@ -1632,24 +1568,11 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.19.15" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03" dependencies = [ - "indexmap 2.0.2", - "serde", - "serde_spanned", - "toml_datetime", - "winnow", -] - -[[package]] -name = "toml_edit" -version = "0.20.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "380f9e8120405471f7c9ad1860a713ef5ece6a670c7eae39225e477340f32fc4" -dependencies = [ - "indexmap 2.0.2", + "indexmap 2.1.0", "serde", "serde_spanned", "toml_datetime", @@ -1697,9 +1620,9 @@ checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "untrusted" -version = "0.7.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "ureq" @@ -1782,9 +1705,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" +checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1792,9 +1715,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" +checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217" dependencies = [ "bumpalo", "log", @@ -1807,9 +1730,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" +checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1817,9 +1740,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" +checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907" dependencies = [ "proc-macro2", "quote", @@ -1830,19 +1753,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.87" +version = "0.2.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" - -[[package]] -name = "web-sys" -version = "0.3.64" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" -dependencies = [ - "js-sys", - "wasm-bindgen", -] +checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b" [[package]] name = "webpki-roots" @@ -1862,19 +1775,6 @@ dependencies = [ "rustix", ] -[[package]] -name = "which_problem" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a68ac9b870fb8707f12778b31fb122ec6cf1fc693af5be5fddaeb5341c0a7a4a" -dependencies = [ - "is_executable", - "itertools", - "ordered-float", - "rayon", - "strsim", -] - [[package]] name = "winapi" version = "0.3.9" @@ -1983,9 +1883,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "winnow" -version = "0.5.17" +version = "0.5.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3b801d0e0a6726477cc207f60162da452f3a95adb368399bef20a946e06f65c" +checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b" dependencies = [ "memchr", ] diff --git a/Cargo.toml b/Cargo.toml index df8add2d..f95ba8f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ edition = "2021" publish = false [workspace.dependencies] -commons = { git = "https://github.com/heroku/buildpacks-ruby", branch = "schneems/logging-state-machine-continued" } +commons = { git = "https://github.com/heroku/buildpacks-ruby", branch = "main" } heroku-nodejs-utils = { path = "./common/nodejs-utils" } indoc = "2" # libcnb has a much bigger impact on buildpack behaviour than any other dependencies, diff --git a/buildpacks/nodejs-npm-engine/Cargo.toml b/buildpacks/nodejs-npm-engine/Cargo.toml index b7a685e4..d80408f6 100644 --- a/buildpacks/nodejs-npm-engine/Cargo.toml +++ b/buildpacks/nodejs-npm-engine/Cargo.toml @@ -8,6 +8,7 @@ publish.workspace = true [dependencies] commons.workspace = true +fun_run = "0.1" heroku-nodejs-utils.workspace = true libcnb.workspace = true libherokubuildpack.workspace = true diff --git a/buildpacks/nodejs-npm-engine/src/layers/npm_engine.rs b/buildpacks/nodejs-npm-engine/src/layers/npm_engine.rs index 8288d436..6633b6a6 100644 --- a/buildpacks/nodejs-npm-engine/src/layers/npm_engine.rs +++ b/buildpacks/nodejs-npm-engine/src/layers/npm_engine.rs @@ -1,8 +1,8 @@ use crate::errors::NpmEngineBuildpackError; use crate::NpmEngineBuildpack; -use commons::fun_run::CommandWithName; use commons::output::fmt; use commons::output::section_log::{log_step, log_step_timed, SectionLogger}; +use fun_run::CommandWithName; use heroku_nodejs_utils::inv::Release; use heroku_nodejs_utils::vrs::Version; use libcnb::build::BuildContext; @@ -165,8 +165,8 @@ pub(crate) enum NpmEngineLayerError { Download(DownloadError), OpenTarball(std::io::Error), DecompressTarball(std::io::Error), - RemoveExistingNpmInstall(commons::fun_run::CmdError), - InstallNpm(commons::fun_run::CmdError), + RemoveExistingNpmInstall(fun_run::CmdError), + InstallNpm(fun_run::CmdError), } impl From for NpmEngineBuildpackError { diff --git a/buildpacks/nodejs-npm-engine/src/main.rs b/buildpacks/nodejs-npm-engine/src/main.rs index f1fe66ee..3aa71f60 100644 --- a/buildpacks/nodejs-npm-engine/src/main.rs +++ b/buildpacks/nodejs-npm-engine/src/main.rs @@ -5,10 +5,10 @@ mod npm; use crate::errors::NpmEngineBuildpackError; use crate::layers::npm_engine::NpmEngineLayer; -use commons::fun_run::CommandWithName; use commons::output::build_log::{BuildLog, Logger, SectionLogger}; use commons::output::fmt; use commons::output::section_log::log_step; +use fun_run::CommandWithName; use heroku_nodejs_utils::inv::{Inventory, Release}; use heroku_nodejs_utils::package_json::PackageJson; use heroku_nodejs_utils::vrs::{Requirement, Version}; diff --git a/buildpacks/nodejs-npm-engine/src/node.rs b/buildpacks/nodejs-npm-engine/src/node.rs index 19818026..cb5448d9 100644 --- a/buildpacks/nodejs-npm-engine/src/node.rs +++ b/buildpacks/nodejs-npm-engine/src/node.rs @@ -1,4 +1,4 @@ -use commons::fun_run::CmdError; +use fun_run::CmdError; use libcnb::Env; use std::process::Command; diff --git a/buildpacks/nodejs-npm-engine/src/npm.rs b/buildpacks/nodejs-npm-engine/src/npm.rs index 95ae3b48..b8be9bcf 100644 --- a/buildpacks/nodejs-npm-engine/src/npm.rs +++ b/buildpacks/nodejs-npm-engine/src/npm.rs @@ -1,4 +1,4 @@ -use commons::fun_run::CmdError; +use fun_run::CmdError; use libcnb::Env; use std::process::Command; diff --git a/buildpacks/nodejs-npm-install/Cargo.toml b/buildpacks/nodejs-npm-install/Cargo.toml index a1aac45b..c1fbac73 100644 --- a/buildpacks/nodejs-npm-install/Cargo.toml +++ b/buildpacks/nodejs-npm-install/Cargo.toml @@ -8,6 +8,7 @@ publish.workspace = true [dependencies] commons.workspace = true +fun_run = "0.1" heroku-nodejs-utils.workspace = true libcnb.workspace = true libherokubuildpack.workspace = true diff --git a/buildpacks/nodejs-npm-install/src/errors.rs b/buildpacks/nodejs-npm-install/src/errors.rs index bae19476..b8e35030 100644 --- a/buildpacks/nodejs-npm-install/src/errors.rs +++ b/buildpacks/nodejs-npm-install/src/errors.rs @@ -1,9 +1,9 @@ use crate::npm; use crate::BUILDPACK_NAME; -use commons::fun_run::CmdError; use commons::output::build_log::{BuildLog, Logger, StartedLogger}; use commons::output::fmt; use commons::output::fmt::DEBUG_INFO; +use fun_run::CmdError; use heroku_nodejs_utils::application; use heroku_nodejs_utils::package_json::PackageJsonError; use indoc::formatdoc; diff --git a/buildpacks/nodejs-npm-install/src/main.rs b/buildpacks/nodejs-npm-install/src/main.rs index 02baa0f6..8e1b7b8c 100644 --- a/buildpacks/nodejs-npm-install/src/main.rs +++ b/buildpacks/nodejs-npm-install/src/main.rs @@ -4,11 +4,11 @@ mod npm; use crate::errors::NpmInstallBuildpackError; use crate::layers::npm_cache::NpmCacheLayer; -use commons::fun_run::CommandWithName; use commons::output::build_log::{BuildLog, Logger, SectionLogger}; use commons::output::fmt; use commons::output::section_log::{log_step, log_step_stream}; use commons::output::warn_later::WarnGuard; +use fun_run::CommandWithName; use heroku_nodejs_utils::application; use heroku_nodejs_utils::package_json::PackageJson; use heroku_nodejs_utils::package_manager::PackageManager; diff --git a/buildpacks/nodejs-npm-install/src/npm.rs b/buildpacks/nodejs-npm-install/src/npm.rs index a6b24589..9b83893f 100644 --- a/buildpacks/nodejs-npm-install/src/npm.rs +++ b/buildpacks/nodejs-npm-install/src/npm.rs @@ -1,4 +1,4 @@ -use commons::fun_run::CmdError; +use fun_run::CmdError; use libcnb::Env; use std::path::PathBuf; use std::process::Command;