From 944c7b045fccee8c9805d91463f2bacead9ae4d9 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 30 Dec 2023 14:08:17 -0500 Subject: [PATCH] feat: add aarch64_unknown-linux-gnu build (#70) --- .github/workflows/ci.generate.ts | 35 ++++- .github/workflows/ci.yml | 41 ++++- deno.lock | 262 +++++++++++-------------------- plugin/build.rs | 26 +-- 4 files changed, 183 insertions(+), 181 deletions(-) diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index f62f0cc..0d0c89a 100644 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -12,6 +12,7 @@ interface ProfileData { os: OperatingSystem; target: string; runTests?: boolean; + cross?: boolean; } const profileDataItems: ProfileData[] = [{ @@ -26,6 +27,11 @@ const profileDataItems: ProfileData[] = [{ os: OperatingSystem.Linux, target: "x86_64-unknown-linux-gnu", runTests: true, +}, { + os: OperatingSystem.Linux, + target: "aarch64-unknown-linux-gnu", + runTests: false, + cross: true, }]; const profiles = profileDataItems.map((profile) => { return { @@ -56,6 +62,7 @@ const ci = { config: profiles.map((profile) => ({ os: profile.os, run_tests: (profile.runTests ?? false).toString(), + cross: (profile.cross ?? false).toString(), target: profile.target, })), }, @@ -79,7 +86,7 @@ const ci = { name: "Cache cargo", uses: "Swatinem/rust-cache@v2", with: { - "prefix-key": "v3-rust", + "prefix-key": "v3-${{matrix.config.target}}", "save-if": "${{ github.ref == 'refs/heads/main' }}", }, }, @@ -94,16 +101,38 @@ const ci = { name: "npm install", run: "cd js/node && npm ci", }, + { + name: "Setup cross", + if: "matrix.config.cross == 'true'", + run: [ + "deno task build", + "cargo install cross --git https://github.com/cross-rs/cross --rev 44011c8854cb2eaac83b173cc323220ccdff18ea", + ].join("\n"), + }, { name: "Build (Debug)", - if: "!startsWith(github.ref, 'refs/tags/')", + if: "matrix.config.cross != 'true' && !startsWith(github.ref, 'refs/tags/')", run: "cargo build --locked --all-targets --target ${{matrix.config.target}}", }, { name: "Build release", - if: "startsWith(github.ref, 'refs/tags/')", + if: "matrix.config.cross != 'true' && startsWith(github.ref, 'refs/tags/')", run: "cargo build --locked --all-targets --target ${{matrix.config.target}} --release", }, + { + name: "Build cross (Debug)", + if: "matrix.config.cross == 'true' && !startsWith(github.ref, 'refs/tags/')", + run: [ + "cross build --locked --target ${{matrix.config.target}}", + ].join("\n"), + }, + { + name: "Build cross (Release)", + if: "matrix.config.cross == 'true' && startsWith(github.ref, 'refs/tags/')", + run: [ + "cross build --locked --target ${{matrix.config.target}} --release", + ].join("\n"), + }, { name: "Lint", if: "!startsWith(github.ref, 'refs/tags/') && matrix.config.target == 'x86_64-unknown-linux-gnu'", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d1408a..c97731b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,17 +22,25 @@ jobs: config: - os: macOS-latest run_tests: "true" + cross: "false" target: x86_64-apple-darwin - os: windows-latest run_tests: "true" + cross: "false" target: x86_64-pc-windows-msvc - os: ubuntu-20.04 run_tests: "true" + cross: "false" target: x86_64-unknown-linux-gnu + - os: ubuntu-20.04 + run_tests: "false" + cross: "true" + target: aarch64-unknown-linux-gnu outputs: ZIP_CHECKSUM_X86_64_APPLE_DARWIN: "${{steps.pre_release_x86_64_apple_darwin.outputs.ZIP_CHECKSUM}}" ZIP_CHECKSUM_X86_64_PC_WINDOWS_MSVC: "${{steps.pre_release_x86_64_pc_windows_msvc.outputs.ZIP_CHECKSUM}}" ZIP_CHECKSUM_X86_64_UNKNOWN_LINUX_GNU: "${{steps.pre_release_x86_64_unknown_linux_gnu.outputs.ZIP_CHECKSUM}}" + ZIP_CHECKSUM_AARCH64_UNKNOWN_LINUX_GNU: "${{steps.pre_release_aarch64_unknown_linux_gnu.outputs.ZIP_CHECKSUM}}" env: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: full @@ -42,7 +50,7 @@ jobs: - name: Cache cargo uses: Swatinem/rust-cache@v2 with: - prefix-key: v3-rust + prefix-key: "v3-${{matrix.config.target}}" save-if: "${{ github.ref == 'refs/heads/main' }}" - uses: denoland/setup-deno@v1 - uses: actions/setup-node@v3 @@ -50,12 +58,23 @@ jobs: node-version: 18 - name: npm install run: cd js/node && npm ci + - name: Setup cross + if: matrix.config.cross == 'true' + run: |- + deno task build + cargo install cross --git https://github.com/cross-rs/cross --rev 44011c8854cb2eaac83b173cc323220ccdff18ea - name: Build (Debug) - if: "!startsWith(github.ref, 'refs/tags/')" + if: "matrix.config.cross != 'true' && !startsWith(github.ref, 'refs/tags/')" run: "cargo build --locked --all-targets --target ${{matrix.config.target}}" - name: Build release - if: "startsWith(github.ref, 'refs/tags/')" + if: "matrix.config.cross != 'true' && startsWith(github.ref, 'refs/tags/')" run: "cargo build --locked --all-targets --target ${{matrix.config.target}} --release" + - name: Build cross (Debug) + if: "matrix.config.cross == 'true' && !startsWith(github.ref, 'refs/tags/')" + run: "cross build --locked --target ${{matrix.config.target}}" + - name: Build cross (Release) + if: "matrix.config.cross == 'true' && startsWith(github.ref, 'refs/tags/')" + run: "cross build --locked --target ${{matrix.config.target}} --release" - name: Lint if: "!startsWith(github.ref, 'refs/tags/') && matrix.config.target == 'x86_64-unknown-linux-gnu'" run: cargo clippy @@ -85,6 +104,13 @@ jobs: cd target/x86_64-unknown-linux-gnu/release zip -r dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip dprint-plugin-prettier echo "::set-output name=ZIP_CHECKSUM::$(shasum -a 256 dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip | awk '{print $1}')" + - name: Pre-release (aarch64-unknown-linux-gnu) + id: pre_release_aarch64_unknown_linux_gnu + if: "matrix.config.target == 'aarch64-unknown-linux-gnu' && startsWith(github.ref, 'refs/tags/')" + run: |- + cd target/aarch64-unknown-linux-gnu/release + zip -r dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip dprint-plugin-prettier + echo "::set-output name=ZIP_CHECKSUM::$(shasum -a 256 dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip | awk '{print $1}')" - name: Upload artifacts (x86_64-apple-darwin) if: "matrix.config.target == 'x86_64-apple-darwin' && startsWith(github.ref, 'refs/tags/')" uses: actions/upload-artifact@v2 @@ -103,6 +129,12 @@ jobs: with: name: x86_64-unknown-linux-gnu-artifacts path: target/x86_64-unknown-linux-gnu/release/dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip + - name: Upload artifacts (aarch64-unknown-linux-gnu) + if: "matrix.config.target == 'aarch64-unknown-linux-gnu' && startsWith(github.ref, 'refs/tags/')" + uses: actions/upload-artifact@v2 + with: + name: aarch64-unknown-linux-gnu-artifacts + path: target/aarch64-unknown-linux-gnu/release/dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip draft_release: name: draft_release if: "startsWith(github.ref, 'refs/tags/')" @@ -119,11 +151,13 @@ jobs: mv x86_64-apple-darwin-artifacts/dprint-plugin-prettier-x86_64-apple-darwin.zip . mv x86_64-pc-windows-msvc-artifacts/dprint-plugin-prettier-x86_64-pc-windows-msvc.zip . mv x86_64-unknown-linux-gnu-artifacts/dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip . + mv aarch64-unknown-linux-gnu-artifacts/dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip . - name: Output checksums run: |- echo "dprint-plugin-prettier-x86_64-apple-darwin.zip: ${{needs.build.outputs.ZIP_CHECKSUM_X86_64_APPLE_DARWIN}}" echo "dprint-plugin-prettier-x86_64-pc-windows-msvc.zip: ${{needs.build.outputs.ZIP_CHECKSUM_X86_64_PC_WINDOWS_MSVC}}" echo "dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip: ${{needs.build.outputs.ZIP_CHECKSUM_X86_64_UNKNOWN_LINUX_GNU}}" + echo "dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip: ${{needs.build.outputs.ZIP_CHECKSUM_AARCH64_UNKNOWN_LINUX_GNU}}" - name: Create plugin file run: deno run -A scripts/create_plugin_file.ts - name: Get tag version @@ -141,6 +175,7 @@ jobs: dprint-plugin-prettier-x86_64-apple-darwin.zip dprint-plugin-prettier-x86_64-pc-windows-msvc.zip dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip + dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip plugin.json body: | ## Install diff --git a/deno.lock b/deno.lock index 346814c..ddca15c 100644 --- a/deno.lock +++ b/deno.lock @@ -1,39 +1,6 @@ { "version": "3", "remote": { - "https://deno.land/std@0.147.0/_deno_unstable.ts": "be3276fd42cffb49f51b705c4b0aa8656aaf2a34be22d769455c8e50ea38e51a", - "https://deno.land/std@0.147.0/_util/assert.ts": "e94f2eb37cebd7f199952e242c77654e43333c1ac4c5c700e929ea3aa5489f74", - "https://deno.land/std@0.147.0/_util/os.ts": "3b4c6e27febd119d36a416d7a97bd3b0251b77c88942c8f16ee5953ea13e2e49", - "https://deno.land/std@0.147.0/bytes/bytes_list.ts": "aba5e2369e77d426b10af1de0dcc4531acecec27f9b9056f4f7bfbf8ac147ab4", - "https://deno.land/std@0.147.0/bytes/equals.ts": "3c3558c3ae85526f84510aa2b48ab2ad7bdd899e2e0f5b7a8ffc85acb3a6043a", - "https://deno.land/std@0.147.0/bytes/mod.ts": "763f97d33051cc3f28af1a688dfe2830841192a9fea0cbaa55f927b49d49d0bf", - "https://deno.land/std@0.147.0/fmt/colors.ts": "6f9340b7fb8cc25a993a99e5efc56fe81bb5af284ff412129dd06df06f53c0b4", - "https://deno.land/std@0.147.0/fs/_util.ts": "2cf50bfb1081c2d5f2efec10ac19abbc2baf478e51cd1b057d0da2f30585b6ba", - "https://deno.land/std@0.147.0/fs/copy.ts": "9248d1492599957af8c693ceb10a432b09f0b0b61c60a4d6aff29b0c7d3a17b3", - "https://deno.land/std@0.147.0/fs/empty_dir.ts": "7274d87160de34cbed0531e284df383045cf43543bbeadeb97feac598bd8f3c5", - "https://deno.land/std@0.147.0/fs/ensure_dir.ts": "9dc109c27df4098b9fc12d949612ae5c9c7169507660dcf9ad90631833209d9d", - "https://deno.land/std@0.147.0/fs/ensure_file.ts": "7d353e64fee3d4d1e7c6b6726a2a5e987ba402c15fb49566309042887349c545", - "https://deno.land/std@0.147.0/fs/ensure_link.ts": "489e23df9fe3e6636048b5830ddf0f111eb29621eb85719255ad9bd645f3471b", - "https://deno.land/std@0.147.0/fs/ensure_symlink.ts": "88dc83de1bc90ed883dd458c2d2eae3d5834a4617d12925734836e1f0803b274", - "https://deno.land/std@0.147.0/fs/eol.ts": "b92f0b88036de507e7e6fbedbe8f666835ea9dcbf5ac85917fa1fadc919f83a5", - "https://deno.land/std@0.147.0/fs/exists.ts": "cb734d872f8554ea40b8bff77ad33d4143c1187eac621a55bf37781a43c56f6d", - "https://deno.land/std@0.147.0/fs/expand_glob.ts": "143400698822117018c3646f4b7d2d418bc5cdede1ec837a8c70013b7711c761", - "https://deno.land/std@0.147.0/fs/mod.ts": "7111008fcdf935f1bfdf07f881f4d1e152063d146025e9622ae12d1fd5f4d7b8", - "https://deno.land/std@0.147.0/fs/move.ts": "0573cedcf583f09a9494f2dfccbf67de68a93629942d6b5e6e74a9e45d4e8a2e", - "https://deno.land/std@0.147.0/fs/walk.ts": "6ce8d87fbaeda23383e979599ad27f3f94b3e5ff0c0cd976b5fc5c2aa0df7d92", - "https://deno.land/std@0.147.0/io/buffer.ts": "bd0c4bf53db4b4be916ca5963e454bddfd3fcd45039041ea161dbf826817822b", - "https://deno.land/std@0.147.0/io/types.d.ts": "0cae3a62da7a37043661746c65c021058bae020b54e50c0e774916e5d4baee43", - "https://deno.land/std@0.147.0/path/_constants.ts": "df1db3ffa6dd6d1252cc9617e5d72165cd2483df90e93833e13580687b6083c3", - "https://deno.land/std@0.147.0/path/_interface.ts": "ee3b431a336b80cf445441109d089b70d87d5e248f4f90ff906820889ecf8d09", - "https://deno.land/std@0.147.0/path/_util.ts": "c1e9686d0164e29f7d880b2158971d805b6e0efc3110d0b3e24e4b8af2190d2b", - "https://deno.land/std@0.147.0/path/common.ts": "bee563630abd2d97f99d83c96c2fa0cca7cee103e8cb4e7699ec4d5db7bd2633", - "https://deno.land/std@0.147.0/path/glob.ts": "cb5255638de1048973c3e69e420c77dc04f75755524cb3b2e160fe9277d939ee", - "https://deno.land/std@0.147.0/path/mod.ts": "4945b430b759b0b3d98f2a278542cbcf95e0ad2bd8eaaed3c67322b306b2b346", - "https://deno.land/std@0.147.0/path/posix.ts": "c1f7afe274290ea0b51da07ee205653b2964bd74909a82deb07b69a6cc383aaa", - "https://deno.land/std@0.147.0/path/separator.ts": "fe1816cb765a8068afb3e8f13ad272351c85cbc739af56dacfc7d93d710fe0f9", - "https://deno.land/std@0.147.0/path/win32.ts": "bd7549042e37879c68ff2f8576a25950abbfca1d696d41d82c7bca0b7e6f452c", - "https://deno.land/std@0.147.0/streams/conversion.ts": "fc3db02026183da795fa32ac7549868e9f19c75ba029d4b4c3739af62b48517a", - "https://deno.land/std@0.153.0/semver/mod.ts": "25f6d286ab714096bc278babbf8d7c7d51ce790c83805fd7e1e2bd6a18b5f2e2", "https://deno.land/std@0.170.0/_util/asserts.ts": "d0844e9b62510f89ce1f9878b046f6a57bf88f208a10304aab50efcb48365272", "https://deno.land/std@0.170.0/bytes/bytes_list.ts": "aba5e2369e77d426b10af1de0dcc4531acecec27f9b9056f4f7bfbf8ac147ab4", "https://deno.land/std@0.170.0/bytes/concat.ts": "97a1274e117510ffffc9499c4debb9541e408732bab2e0ca624869ae13103c10", @@ -80,139 +47,102 @@ "https://deno.land/std@0.170.0/io/read_delim.ts": "6bff17d31730eeab402633ee53701ac16e7b575a343c432acf7bd61bd649fd05", "https://deno.land/std@0.170.0/io/read_lines.ts": "51e2841394effe1473f588de2a87d62b1c2deb63ce869115506324e228f9e67b", "https://deno.land/std@0.170.0/io/read_string_delim.ts": "70b20eebd853269252d4a833834a2677b711f216842709d11005ba291d822a0a", - "https://deno.land/std@0.182.0/_util/asserts.ts": "178dfc49a464aee693a7e285567b3d0b555dc805ff490505a8aae34f9cfb1462", - "https://deno.land/std@0.182.0/_util/os.ts": "d932f56d41e4f6a6093d56044e29ce637f8dcc43c5a90af43504a889cf1775e3", - "https://deno.land/std@0.182.0/bytes/copy.ts": "939d89e302a9761dcf1d9c937c7711174ed74c59eef40a1e4569a05c9de88219", - "https://deno.land/std@0.182.0/fmt/colors.ts": "d67e3cd9f472535241a8e410d33423980bec45047e343577554d3356e1f0ef4e", - "https://deno.land/std@0.182.0/fs/_util.ts": "65381f341af1ff7f40198cee15c20f59951ac26e51ddc651c5293e24f9ce6f32", - "https://deno.land/std@0.182.0/fs/copy.ts": "14214efd94fc3aa6db1e4af2b4b9578e50f7362b7f3725d5a14ad259a5df26c8", - "https://deno.land/std@0.182.0/fs/empty_dir.ts": "c3d2da4c7352fab1cf144a1ecfef58090769e8af633678e0f3fabaef98594688", - "https://deno.land/std@0.182.0/fs/ensure_dir.ts": "dc64c4c75c64721d4e3fb681f1382f803ff3d2868f08563ff923fdd20d071c40", - "https://deno.land/std@0.182.0/fs/ensure_file.ts": "c38602670bfaf259d86ca824a94e6cb9e5eb73757fefa4ebf43a90dd017d53d9", - "https://deno.land/std@0.182.0/fs/ensure_link.ts": "c0f5b2f0ec094ed52b9128eccb1ee23362a617457aa0f699b145d4883f5b2fb4", - "https://deno.land/std@0.182.0/fs/ensure_symlink.ts": "5006ab2f458159c56d689b53b1e48d57e05eeb1eaf64e677f7f76a30bc4fdba1", - "https://deno.land/std@0.182.0/fs/eol.ts": "f1f2eb348a750c34500741987b21d65607f352cf7205f48f4319d417fff42842", - "https://deno.land/std@0.182.0/fs/exists.ts": "29c26bca8584a22876be7cb8844f1b6c8fc35e9af514576b78f5c6884d7ed02d", - "https://deno.land/std@0.182.0/fs/expand_glob.ts": "e4f56259a0a70fe23f05215b00de3ac5e6ba46646ab2a06ebbe9b010f81c972a", - "https://deno.land/std@0.182.0/fs/mod.ts": "bc3d0acd488cc7b42627044caf47d72019846d459279544e1934418955ba4898", - "https://deno.land/std@0.182.0/fs/move.ts": "4cb47f880e3f0582c55e71c9f8b1e5e8cfaacb5e84f7390781dd563b7298ec19", - "https://deno.land/std@0.182.0/fs/walk.ts": "920be35a7376db6c0b5b1caf1486fb962925e38c9825f90367f8f26b5e5d0897", - "https://deno.land/std@0.182.0/io/buf_reader.ts": "abeb92b18426f11d72b112518293a96aef2e6e55f80b84235e8971ac910affb5", - "https://deno.land/std@0.182.0/io/buffer.ts": "17f4410eaaa60a8a85733e8891349a619eadfbbe42e2f319283ce2b8f29723ab", - "https://deno.land/std@0.182.0/path/_constants.ts": "e49961f6f4f48039c0dfed3c3f93e963ca3d92791c9d478ac5b43183413136e0", - "https://deno.land/std@0.182.0/path/_interface.ts": "6471159dfbbc357e03882c2266d21ef9afdb1e4aa771b0545e90db58a0ba314b", - "https://deno.land/std@0.182.0/path/_util.ts": "d7abb1e0dea065f427b89156e28cdeb32b045870acdf865833ba808a73b576d0", - "https://deno.land/std@0.182.0/path/common.ts": "ee7505ab01fd22de3963b64e46cff31f40de34f9f8de1fff6a1bd2fe79380000", - "https://deno.land/std@0.182.0/path/glob.ts": "d479e0a695621c94d3fd7fe7abd4f9499caf32a8de13f25073451c6ef420a4e1", - "https://deno.land/std@0.182.0/path/mod.ts": "bf718f19a4fdd545aee1b06409ca0805bd1b68ecf876605ce632e932fe54510c", - "https://deno.land/std@0.182.0/path/posix.ts": "8b7c67ac338714b30c816079303d0285dd24af6b284f7ad63da5b27372a2c94d", - "https://deno.land/std@0.182.0/path/separator.ts": "0fb679739d0d1d7bf45b68dacfb4ec7563597a902edbaf3c59b50d5bcadd93b1", - "https://deno.land/std@0.182.0/path/win32.ts": "d186344e5583bcbf8b18af416d13d82b35a317116e6460a5a3953508c3de5bba", - "https://deno.land/std@0.182.0/streams/read_all.ts": "ee319772fb0fd28302f97343cc48dfcf948f154fd0d755d8efe65814b70533be", - "https://deno.land/std@0.182.0/streams/reader_from_stream_reader.ts": "fa4971e5615a010e49492c5d1688ca1a4d17472a41e98b498ab89a64ebd7ac73", - "https://deno.land/std@0.182.0/streams/write_all.ts": "aec90152978581ea62d56bb53a5cbf487e6a89c902f87c5969681ffbdf32b998", - "https://deno.land/std@0.192.0/semver/_shared.ts": "7101b4118e96b8c7b600d54a8455d93afd96eaf43a69a3bff34513890ac264ae", - "https://deno.land/std@0.192.0/semver/cmp.ts": "4faca58ad459a8c7663ac84ed8410fb5cf932042969f5c25d285f319456d55c1", - "https://deno.land/std@0.192.0/semver/comparator_format.ts": "329e05d914c064590ded4801fc601bf1c5d0f461c5524b1578e10f180551ef6f", - "https://deno.land/std@0.192.0/semver/comparator_intersects.ts": "61920121a6c1600306dbcf8944c4cc55e45c3a1bdbefe41b79a0884bf02d9e1b", - "https://deno.land/std@0.192.0/semver/comparator_max.ts": "f4cc5f528abd8aab68c66bbead732e3c59102b13a318cd8e4f8a47aa3debec76", - "https://deno.land/std@0.192.0/semver/comparator_min.ts": "eea382428ebf0c50168f780898df8519c88da5a10d1f8babbfebdc89fb75942e", - "https://deno.land/std@0.192.0/semver/compare.ts": "503bb7b0ca67b722a0a8a5570486c20eb27ed9bc2316f25699fbd6317a3233ac", - "https://deno.land/std@0.192.0/semver/compare_build.ts": "dc315387ffba691206be83bb4195dff23af6df9983cf8dfb91c29e3f62b9bdca", - "https://deno.land/std@0.192.0/semver/constants.ts": "bb0c7652c433c7ec1dad5bf18c7e7e1557efe9ddfd5e70aa6305153e76dc318c", - "https://deno.land/std@0.192.0/semver/difference.ts": "b86b72f75308c0ab78a41bc676bdca0d933d75e0be8b06dafdc393689e70497f", - "https://deno.land/std@0.192.0/semver/eq.ts": "b8fc7184507423a2448f4b052fc4d9090bf316807b3c9c930afc3775d7a3f3a5", - "https://deno.land/std@0.192.0/semver/format.ts": "236cc8b5d2e8031258dcff3ca89e14ba926434d5b789730e2c781db172e76bd9", - "https://deno.land/std@0.192.0/semver/gt.ts": "2f20b21456179b3ac034656a09b5c259bf52dc2626a941ca038be5d201c415be", - "https://deno.land/std@0.192.0/semver/gte.ts": "d1ed0195a2b38ef0df586374eac4ad860d3b7e181ec1683e734912ce795aaddb", - "https://deno.land/std@0.192.0/semver/gtr.ts": "b0442acf1d52ceb337ec4f82afaa0da3b5251a9a08f4f0b8839ca4629d617078", - "https://deno.land/std@0.192.0/semver/increment.ts": "e41ffc906ea1d57e66987aa1b18ba1d0223d6fb0cd806448d012e4f8117e8513", - "https://deno.land/std@0.192.0/semver/is_semver.ts": "b21011d2afea366576bd283705df7515e8c85f5d03015aca83bc5a721f0cf344", - "https://deno.land/std@0.192.0/semver/is_semver_comparator.ts": "120ad68896e3481dbcda81ddd914c10d3fc891fe62cc99028cb69ebfa6c1427c", - "https://deno.land/std@0.192.0/semver/is_semver_range.ts": "0ea096e1edcb8e95200d3bee549c97b53e93ac60d4c2b3601ad7a01f27a0f4da", - "https://deno.land/std@0.192.0/semver/lt.ts": "c8711ffa1c40a3f98921b9bf0d80b59970d8cbc0a12696ebccacf6bccfa9dcc8", - "https://deno.land/std@0.192.0/semver/lte.ts": "721e5f9d353ecea757c1d5d42f4f6699d46cd24cdbd45b2bf88efdf82c0eaac4", - "https://deno.land/std@0.192.0/semver/ltr.ts": "2a10f426605408adcb6cb62e65e871eb6b235d74cbcc2160e58207751e7ca11d", - "https://deno.land/std@0.192.0/semver/max_satisfying.ts": "a8c550100582a9ad2f68026edef8a5ed09debbda0a65d28dceea302508aee41a", - "https://deno.land/std@0.192.0/semver/min_satisfying.ts": "04331cc956f55bc6d14f911ff2561dbab81e1218bfe6a080fe520b999e33e693", - "https://deno.land/std@0.192.0/semver/mod.ts": "79eaeb8015f3f34a34b1e2a98f524dbd5a9a5d7fa1d977cdfc5d6157965e8920", - "https://deno.land/std@0.192.0/semver/neq.ts": "c4116ac01149c4c090bdb5da2bbf946d1f9d74634c97486f3d7e55e75bb35bb0", - "https://deno.land/std@0.192.0/semver/outside.ts": "3ca074513c6f5ac4b3e9c0eda2deb3a83cdfcecc589f1ec69786d41f47885a89", - "https://deno.land/std@0.192.0/semver/parse.ts": "190dab1b5231da1fa6ec40567f58550209e7304dcb655fd8ae46eb7c2966a82b", - "https://deno.land/std@0.192.0/semver/parse_comparator.ts": "f07f9be8322b1f61a36b94c3c65a0dc4124958ee54cf744c92ca4028bf156d5e", - "https://deno.land/std@0.192.0/semver/parse_range.ts": "39a18608a8026004b218ef383e7ae624a9e663b82327948c1810f16d875113c2", - "https://deno.land/std@0.192.0/semver/range_format.ts": "3de31fd0b74dd565e052840e73a8e9ee1d9d289ca60b85749167710b978cc078", - "https://deno.land/std@0.192.0/semver/range_intersects.ts": "e646300d9a10868ae51dc70399c1eee31a503f24610506146eadbeac6bcc6777", - "https://deno.land/std@0.192.0/semver/range_max.ts": "9c10c65bbc7796347ce6f765a77865cead88870d17481ac78259400a2378af2e", - "https://deno.land/std@0.192.0/semver/range_min.ts": "b7849e70e0b0677b382eddaa822b6690521449a659c5b8ec84cbd438f6e6ca59", - "https://deno.land/std@0.192.0/semver/rcompare.ts": "fe4e95bf671bd119df89bc4dd9ceb3fdcc95bad543a78fa3b8ae67ce6b54bc03", - "https://deno.land/std@0.192.0/semver/rsort.ts": "d4bfa2b9fffa6e1afddeead68c7cb470ed932b3846acf45eccde2b46be021644", - "https://deno.land/std@0.192.0/semver/sort.ts": "301d18f7f96f9e46bb6d0327d3d97579fa2d49558c185a0a5035b8e6fbd4a73b", - "https://deno.land/std@0.192.0/semver/test_comparator.ts": "eff5394cb82d133ed18f96fe547de7e7264bf0d25d16cbc6126664aa06ef8f37", - "https://deno.land/std@0.192.0/semver/test_range.ts": "b236c276268e92bbbc65e7c4b4b6b685ea6b4534a71b2525b53093d094f631c6", - "https://deno.land/std@0.192.0/semver/try_parse.ts": "fc7eeafc18686563b0cc35b518eda57690e513e634527a0ff48c600ba7798ce4", - "https://deno.land/std@0.192.0/semver/try_parse_range.ts": "49be2271c4c07374fc2d986d5212fab7bb1f49daa485141e9bedd78d851ca5ca", - "https://deno.land/std@0.192.0/semver/types.ts": "d44f442c2f27dd89bd6695b369e310b80549746f03c38f241fe28a83b33dd429", - "https://deno.land/x/dax@0.10.0/lib/rs_lib.generated.js": "c4d29beff18383609dd91f23f2bf39617f4d3f350aabf4499f43fd95448fb651", - "https://deno.land/x/dax@0.10.0/mod.ts": "e30eadd6dd8a886432b664d6cc0cf96a6e35957c288ca76bcbd21c0bbb614d36", - "https://deno.land/x/dax@0.10.0/src/command.ts": "2d41891f10b68a2faf09dcaafa0cc723ca7c6da8702f034e0eb2c11e66fd3068", - "https://deno.land/x/dax@0.10.0/src/command_handler.ts": "b4e9ad8a95015a926c93e467a074574b2f98e7209e4d48439cfb4bfd9be4946e", - "https://deno.land/x/dax@0.10.0/src/commands/cd.ts": "15a75fb42646445fb6a061af1f52c63253c7c45accdbc801a92a5b00f1cf212c", - "https://deno.land/x/dax@0.10.0/src/commands/echo.ts": "2af0b8f33a688a972540848487cb6a045debe504edcc5eb40bd9eb4aad6058c4", - "https://deno.land/x/dax@0.10.0/src/commands/exit.ts": "36759cba6494062891216794bffa61803a6d547fe05a5a5da76a7daa31b8968a", - "https://deno.land/x/dax@0.10.0/src/commands/export.ts": "b7fd3e55e744d83735013c8c35e629ff4533b0d5929cc1d0d60af68718ff902d", - "https://deno.land/x/dax@0.10.0/src/commands/sleep.ts": "63805137d7113314e4c104d87a102ca50b55642d6cf450cba1533f973c81123a", - "https://deno.land/x/dax@0.10.0/src/commands/test.ts": "50ccc3fc02a6d3c01700f93a70b42594e2e6bc41955ed0f5b06eb6da8eb8335b", - "https://deno.land/x/dax@0.10.0/src/common.ts": "cb00a20e264e4a48d3e8261617c270677a62fbdf082358aaca9c907073e58d03", - "https://deno.land/x/dax@0.10.0/src/deps.ts": "a6ad51c3ca8d4411e5768ce4e943349d272c43a1e943fdb46f2f62dc59a91155", - "https://deno.land/x/dax@0.10.0/src/pipes.ts": "84eda4be883b90fc950e54770e1c809a68d395790da3e4064c6f7b28702bf354", - "https://deno.land/x/dax@0.10.0/src/request.ts": "aa25ac908adb33d8e8ec45cfded9387959667c1b565da75a5df93f357d9c1080", - "https://deno.land/x/dax@0.10.0/src/result.ts": "c0cd24e377548990f3de240606bd1a205c0428c0252bd7c5ef9be92a93d54ffc", - "https://deno.land/x/dax@0.10.0/src/shell.ts": "91eb5c784adac96874ceb9e7e0737faf6c23a78df5b17fbb6fa776c27a2eabe0", - "https://deno.land/x/dax@0.33.0/mod.ts": "ca356a821da3039e1e6752d4c2d3912d2849c03d86ed98bd6a989c8e707c193b", - "https://deno.land/x/dax@0.33.0/src/command.ts": "69b326593f3d652c4696563f238c621c25b1bb3604c5aec2cfdecb430175e140", - "https://deno.land/x/dax@0.33.0/src/command_handler.ts": "6c420ce69da8aaa20dd02df072d9d697691d9789bf35c22420d487227db561a1", - "https://deno.land/x/dax@0.33.0/src/commands/args.ts": "a138aef24294e3cbf13cef08f4836d018e8dd99fd06ad82e7e7f08ef680bbc1d", - "https://deno.land/x/dax@0.33.0/src/commands/cat.ts": "229dc854f80ea8f1ebd811190fc31e5cf0fe39f76c2de1c27e256cb831237cb0", - "https://deno.land/x/dax@0.33.0/src/commands/cd.ts": "239fee1606881dbc3f778a761d1d4557c21a63063c15ab58883a32e7466b7177", - "https://deno.land/x/dax@0.33.0/src/commands/cp_mv.ts": "58205a82a9404e444c7c5caf98b5dd2b350c668c0b421546a038b76ea8b6a53d", - "https://deno.land/x/dax@0.33.0/src/commands/echo.ts": "247909de5b8ea20218daab419f3aad37b69763052272aca3633fe8e7f83148cd", - "https://deno.land/x/dax@0.33.0/src/commands/exit.ts": "c619e52d744dfa3e8fa954026f1c5302d8be991c775553efc85a0f224b77b6ff", - "https://deno.land/x/dax@0.33.0/src/commands/export.ts": "b6ecad1203cfe606d69da6c16736f31acf211e864e6822484d85cea1cb7d5528", - "https://deno.land/x/dax@0.33.0/src/commands/mkdir.ts": "9381ecdc0e0203d941f89027b6ef2865393bf0a66670bf5f5aaa6a49669244c7", - "https://deno.land/x/dax@0.33.0/src/commands/printenv.ts": "473c39b457cae91e9ca029ad420642b9a410257fb699674660c886c6ebe72ebc", - "https://deno.land/x/dax@0.33.0/src/commands/pwd.ts": "5438aea979027bfa5c64c2a7f1073389735ea986f6abe2174ec21bcb70a2156f", - "https://deno.land/x/dax@0.33.0/src/commands/rm.ts": "d911ff4e2e0b3d3c5d426c7b735313741ad762d9e25a743f101a1b05447eecf8", - "https://deno.land/x/dax@0.33.0/src/commands/sleep.ts": "c3d232085ad5b035bae0367defbe8b742dd005ec3926196ea8f1bea7e13d7a03", - "https://deno.land/x/dax@0.33.0/src/commands/test.ts": "a221f82c209fd53756e9c02c475b9d5833284513853e90fdaaf0c1e1d9cfbf30", - "https://deno.land/x/dax@0.33.0/src/commands/touch.ts": "5953dbde8732da47ade9b7554a638ea06a8b67a59842e638fb79f7aebe392650", - "https://deno.land/x/dax@0.33.0/src/commands/unset.ts": "8d4abb29f53c3de0c10ba6d51e3d55bce745160f7430396ede58156e8f2b747c", - "https://deno.land/x/dax@0.33.0/src/common.ts": "c0e809c591400dbadb25197f2819c59fec6b897c94c1aba6a026d5d1eee9cb53", - "https://deno.land/x/dax@0.33.0/src/console/confirm.ts": "d9128d10b77fcc0a8df2784f71c79df68f5c8e00a34b04547b9ba9ddf1c97f96", - "https://deno.land/x/dax@0.33.0/src/console/logger.ts": "e0ab5025915cef70df03681c756e211f25bb2e4331f82ed4256b17ddd9e794ea", - "https://deno.land/x/dax@0.33.0/src/console/mod.ts": "29ae1f8250b74a477e26a3b6ccf647badf5d8f8e2a9e6c4aa0d5df9e3bbbb273", - "https://deno.land/x/dax@0.33.0/src/console/multiSelect.ts": "31003744e58f45f720271bd034d8cfba1055c954ba02d77a2f2eb21e4c1ed55a", - "https://deno.land/x/dax@0.33.0/src/console/progress/format.ts": "15ddbb8051580f88ed499281e12ca6f881f875ab73268d7451d7113ee130bd7d", - "https://deno.land/x/dax@0.33.0/src/console/progress/interval.ts": "80188d980a27c2eb07c31324365118af549641442f0752fe7c3b0c91832e5046", - "https://deno.land/x/dax@0.33.0/src/console/progress/mod.ts": "70080a5d06ab2c58e948225e1e5144458fbc36fbfa61672ac82bb2f6c6991bad", - "https://deno.land/x/dax@0.33.0/src/console/prompt.ts": "78c645b41a7562133d05a10901ae4d682cb22bfaf0b5a21cc8475ca2a946aee1", - "https://deno.land/x/dax@0.33.0/src/console/select.ts": "c9d7124d975bf34d52ea1ac88fd610ed39db8ee6505b9bb53f371cef2f56c6ab", - "https://deno.land/x/dax@0.33.0/src/console/utils.ts": "954c99397dcd2cb3f1ccf50055085f17c9ffb31b25b3c5719776de81e23935f4", - "https://deno.land/x/dax@0.33.0/src/deps.ts": "336856548060686f715492d6e00de3a422c29c6b89e491573936a8d5b0e3f975", - "https://deno.land/x/dax@0.33.0/src/lib/mod.ts": "c8e9ca527dacf1e5a0132f07c6d0e4b4bc6f86b6c83694316fb5805f325dd9fe", - "https://deno.land/x/dax@0.33.0/src/lib/rs_lib.generated.js": "22f6813fc63f7ae7f01f2fdec892f66831d858fc376fd57ab018be9a78bbb5fd", - "https://deno.land/x/dax@0.33.0/src/path.ts": "a959803a78695d134db5d872d55b06e0e1c5ae1e2bee4ebcafc4fcfa2be62b74", - "https://deno.land/x/dax@0.33.0/src/pipes.ts": "3aa984c0d031f4221953e228ba89452a86068a80d2811fddb9c60737cd4ab174", - "https://deno.land/x/dax@0.33.0/src/request.ts": "5ae93f6cc49a2e143c1cf3cece5564f2bfa4db56a9d8165668ea42ba056efec2", - "https://deno.land/x/dax@0.33.0/src/result.ts": "0908b69c16b25c3b258f6b2ada12e124686df5f7ea2b98daa27a83973c7b118c", - "https://deno.land/x/dax@0.33.0/src/shell.ts": "eed95aac668e915e4ba4a433ecb0789a2a7417cc597b181ff73de7ab8f3fe5f4", - "https://deno.land/x/dir@1.5.1/data_local_dir/mod.ts": "91eb1c4bfadfbeda30171007bac6d85aadacd43224a5ed721bbe56bc64e9eb66", + "https://deno.land/std@0.201.0/assert/assert.ts": "9a97dad6d98c238938e7540736b826440ad8c1c1e54430ca4c4e623e585607ee", + "https://deno.land/std@0.201.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", + "https://deno.land/std@0.201.0/bytes/copy.ts": "939d89e302a9761dcf1d9c937c7711174ed74c59eef40a1e4569a05c9de88219", + "https://deno.land/std@0.201.0/fmt/colors.ts": "87544aa2bc91087bb37f9c077970c85bfb041b48e4c37356129d7b450a415b6f", + "https://deno.land/std@0.201.0/fs/_util.ts": "fbf57dcdc9f7bc8128d60301eece608246971a7836a3bb1e78da75314f08b978", + "https://deno.land/std@0.201.0/fs/copy.ts": "23cc1c465babe5ca4d69778821e2f8addc44593e30a5ca0b902b3784eed75bb6", + "https://deno.land/std@0.201.0/fs/empty_dir.ts": "2e52cd4674d18e2e007175c80449fc3d263786a1361e858d9dfa9360a6581b47", + "https://deno.land/std@0.201.0/fs/ensure_dir.ts": "dc64c4c75c64721d4e3fb681f1382f803ff3d2868f08563ff923fdd20d071c40", + "https://deno.land/std@0.201.0/fs/ensure_file.ts": "39ac83cc283a20ec2735e956adf5de3e8a3334e0b6820547b5772f71c49ae083", + "https://deno.land/std@0.201.0/fs/ensure_link.ts": "c15e69c48556d78aae31b83e0c0ece04b7b8bc0951412f5b759aceb6fde7f0ac", + "https://deno.land/std@0.201.0/fs/ensure_symlink.ts": "b389c8568f0656d145ac7ece472afe710815cccbb2ebfd19da7978379ae143fe", + "https://deno.land/std@0.201.0/fs/eol.ts": "f1f2eb348a750c34500741987b21d65607f352cf7205f48f4319d417fff42842", + "https://deno.land/std@0.201.0/fs/exists.ts": "cb59a853d84871d87acab0e7936a4dac11282957f8e195102c5a7acb42546bb8", + "https://deno.land/std@0.201.0/fs/expand_glob.ts": "52b8b6f5b1fa585c348250da1c80ce5d820746cb4a75d874b3599646f677d3a7", + "https://deno.land/std@0.201.0/fs/mod.ts": "bc3d0acd488cc7b42627044caf47d72019846d459279544e1934418955ba4898", + "https://deno.land/std@0.201.0/fs/move.ts": "b4f8f46730b40c32ea3c0bc8eb0fd0e8139249a698883c7b3756424cf19785c9", + "https://deno.land/std@0.201.0/fs/walk.ts": "a16146724a6aaf9efdb92023a74e9805195c3469900744ce5de4113b07b29779", + "https://deno.land/std@0.201.0/io/buf_reader.ts": "0bd8ad26255945b5f418940db23db03bee0c160dbb5ae4627e2c0be3b361df6a", + "https://deno.land/std@0.201.0/io/buffer.ts": "4d6883daeb2e698579c4064170515683d69f40f3de019bfe46c5cf31e74ae793", + "https://deno.land/std@0.201.0/path/_basename.ts": "057d420c9049821f983f784fd87fa73ac471901fb628920b67972b0f44319343", + "https://deno.land/std@0.201.0/path/_constants.ts": "e49961f6f4f48039c0dfed3c3f93e963ca3d92791c9d478ac5b43183413136e0", + "https://deno.land/std@0.201.0/path/_dirname.ts": "355e297236b2218600aee7a5301b937204c62e12da9db4b0b044993d9e658395", + "https://deno.land/std@0.201.0/path/_extname.ts": "eaaa5aae1acf1f03254d681bd6a8ce42a9cb5b7ff2213a9d4740e8ab31283664", + "https://deno.land/std@0.201.0/path/_format.ts": "4a99270d6810f082e614309164fad75d6f1a483b68eed97c830a506cc589f8b4", + "https://deno.land/std@0.201.0/path/_from_file_url.ts": "6eadfae2e6f63ad9ee46b26db4a1b16583055c0392acedfb50ed2fc694b6f581", + "https://deno.land/std@0.201.0/path/_interface.ts": "6471159dfbbc357e03882c2266d21ef9afdb1e4aa771b0545e90db58a0ba314b", + "https://deno.land/std@0.201.0/path/_is_absolute.ts": "05dac10b5e93c63198b92e3687baa2be178df5321c527dc555266c0f4f51558c", + "https://deno.land/std@0.201.0/path/_join.ts": "815f5e85b042285175b1492dd5781240ce126c23bd97bad6b8211fe7129c538e", + "https://deno.land/std@0.201.0/path/_normalize.ts": "a19ec8706b2707f9dd974662a5cd89fad438e62ab1857e08b314a8eb49a34d81", + "https://deno.land/std@0.201.0/path/_os.ts": "d932f56d41e4f6a6093d56044e29ce637f8dcc43c5a90af43504a889cf1775e3", + "https://deno.land/std@0.201.0/path/_parse.ts": "0f9b0ff43682dd9964eb1c4398610c4e165d8db9d3ac9d594220217adf480cfa", + "https://deno.land/std@0.201.0/path/_relative.ts": "27bdeffb5311a47d85be26d37ad1969979359f7636c5cd9fcf05dcd0d5099dc5", + "https://deno.land/std@0.201.0/path/_resolve.ts": "7a3616f1093735ed327e758313b79c3c04ea921808ca5f19ddf240cb68d0adf6", + "https://deno.land/std@0.201.0/path/_to_file_url.ts": "a141e4a525303e1a3a0c0571fd024552b5f3553a2af7d75d1ff3a503dcbb66d8", + "https://deno.land/std@0.201.0/path/_to_namespaced_path.ts": "0d5f4caa2ed98ef7a8786286df6af804b50e38859ae897b5b5b4c8c5930a75c8", + "https://deno.land/std@0.201.0/path/_util.ts": "4e191b1bac6b3bf0c31aab42e5ca2e01a86ab5a0d2e08b75acf8585047a86221", + "https://deno.land/std@0.201.0/path/basename.ts": "bdfa5a624c6a45564dc6758ef2077f2822978a6dbe77b0a3514f7d1f81362930", + "https://deno.land/std@0.201.0/path/common.ts": "ee7505ab01fd22de3963b64e46cff31f40de34f9f8de1fff6a1bd2fe79380000", + "https://deno.land/std@0.201.0/path/dirname.ts": "b6533f4ee4174a526dec50c279534df5345836dfdc15318400b08c62a62a39dd", + "https://deno.land/std@0.201.0/path/extname.ts": "62c4b376300795342fe1e4746c0de518b4dc9c4b0b4617bfee62a2973a9555cf", + "https://deno.land/std@0.201.0/path/format.ts": "110270b238514dd68455a4c54956215a1aff7e37e22e4427b7771cefe1920aa5", + "https://deno.land/std@0.201.0/path/from_file_url.ts": "9f5cb58d58be14c775ec2e57fc70029ac8b17ed3bd7fe93e475b07280adde0ac", + "https://deno.land/std@0.201.0/path/glob.ts": "593e2c3573883225c25c5a21aaa8e9382a696b8e175ea20a3b6a1471ad17aaed", + "https://deno.land/std@0.201.0/path/is_absolute.ts": "0b92eb35a0a8780e9f16f16bb23655b67dace6a8e0d92d42039e518ee38103c1", + "https://deno.land/std@0.201.0/path/join.ts": "31c5419f23d91655b08ec7aec403f4e4cd1a63d39e28f6e42642ea207c2734f8", + "https://deno.land/std@0.201.0/path/mod.ts": "6e1efb0b13121463aedb53ea51dabf5639a3172ab58c89900bbb72b486872532", + "https://deno.land/std@0.201.0/path/normalize.ts": "6ea523e0040979dd7ae2f1be5bf2083941881a252554c0f32566a18b03021955", + "https://deno.land/std@0.201.0/path/parse.ts": "be8de342bb9e1924d78dc4d93c45215c152db7bf738ec32475560424b119b394", + "https://deno.land/std@0.201.0/path/posix.ts": "0a1c1952d132323a88736d03e92bd236f3ed5f9f079e5823fae07c8d978ee61b", + "https://deno.land/std@0.201.0/path/relative.ts": "8bedac226afd360afc45d451a6c29fabceaf32978526bcb38e0c852661f66c61", + "https://deno.land/std@0.201.0/path/resolve.ts": "133161e4949fc97f9ca67988d51376b0f5eef8968a6372325ab84d39d30b80dc", + "https://deno.land/std@0.201.0/path/separator.ts": "40a3e9a4ad10bef23bc2cd6c610291b6c502a06237c2c4cd034a15ca78dedc1f", + "https://deno.land/std@0.201.0/path/to_file_url.ts": "00e6322373dd51ad109956b775e4e72e5f9fa68ce2c6b04e4af2a6eed3825d31", + "https://deno.land/std@0.201.0/path/to_namespaced_path.ts": "1b1db3055c343ab389901adfbda34e82b7386bcd1c744d54f9c1496ee0fd0c3d", + "https://deno.land/std@0.201.0/path/win32.ts": "8b3f80ef7a462511d5e8020ff490edcaa0a0d118f1b1e9da50e2916bdd73f9dd", + "https://deno.land/std@0.201.0/streams/read_all.ts": "ee319772fb0fd28302f97343cc48dfcf948f154fd0d755d8efe65814b70533be", + "https://deno.land/std@0.201.0/streams/reader_from_stream_reader.ts": "fa4971e5615a010e49492c5d1688ca1a4d17472a41e98b498ab89a64ebd7ac73", + "https://deno.land/std@0.201.0/streams/write_all.ts": "aec90152978581ea62d56bb53a5cbf487e6a89c902f87c5969681ffbdf32b998", + "https://deno.land/x/dax@0.35.0/mod.ts": "3fc382546bf3c7b90aa458aa144be7c6e8aed3e8c2680289f9c8694d986b7247", + "https://deno.land/x/dax@0.35.0/src/command.ts": "6e7db06015b4ad6decbf59cc5fcb6bd4b03a46276f7e3f3472204c11b2109e0e", + "https://deno.land/x/dax@0.35.0/src/command_handler.ts": "841cee0ce12b19eea6c7fcaeaa40a9e3ef4bf50c36cf02afbe3ab7b41f8571eb", + "https://deno.land/x/dax@0.35.0/src/commands/args.ts": "a138aef24294e3cbf13cef08f4836d018e8dd99fd06ad82e7e7f08ef680bbc1d", + "https://deno.land/x/dax@0.35.0/src/commands/cat.ts": "229dc854f80ea8f1ebd811190fc31e5cf0fe39f76c2de1c27e256cb831237cb0", + "https://deno.land/x/dax@0.35.0/src/commands/cd.ts": "239fee1606881dbc3f778a761d1d4557c21a63063c15ab58883a32e7466b7177", + "https://deno.land/x/dax@0.35.0/src/commands/cp_mv.ts": "58205a82a9404e444c7c5caf98b5dd2b350c668c0b421546a038b76ea8b6a53d", + "https://deno.land/x/dax@0.35.0/src/commands/echo.ts": "247909de5b8ea20218daab419f3aad37b69763052272aca3633fe8e7f83148cd", + "https://deno.land/x/dax@0.35.0/src/commands/exit.ts": "c619e52d744dfa3e8fa954026f1c5302d8be991c775553efc85a0f224b77b6ff", + "https://deno.land/x/dax@0.35.0/src/commands/export.ts": "b6ecad1203cfe606d69da6c16736f31acf211e864e6822484d85cea1cb7d5528", + "https://deno.land/x/dax@0.35.0/src/commands/mkdir.ts": "9381ecdc0e0203d941f89027b6ef2865393bf0a66670bf5f5aaa6a49669244c7", + "https://deno.land/x/dax@0.35.0/src/commands/printenv.ts": "473c39b457cae91e9ca029ad420642b9a410257fb699674660c886c6ebe72ebc", + "https://deno.land/x/dax@0.35.0/src/commands/pwd.ts": "5438aea979027bfa5c64c2a7f1073389735ea986f6abe2174ec21bcb70a2156f", + "https://deno.land/x/dax@0.35.0/src/commands/rm.ts": "d911ff4e2e0b3d3c5d426c7b735313741ad762d9e25a743f101a1b05447eecf8", + "https://deno.land/x/dax@0.35.0/src/commands/sleep.ts": "d1183fa8e31ba85a7b88666e854c7aa6e53e1d4c65e39f20a05d8ea4b82efca3", + "https://deno.land/x/dax@0.35.0/src/commands/test.ts": "a221f82c209fd53756e9c02c475b9d5833284513853e90fdaaf0c1e1d9cfbf30", + "https://deno.land/x/dax@0.35.0/src/commands/touch.ts": "5953dbde8732da47ade9b7554a638ea06a8b67a59842e638fb79f7aebe392650", + "https://deno.land/x/dax@0.35.0/src/commands/unset.ts": "8d4abb29f53c3de0c10ba6d51e3d55bce745160f7430396ede58156e8f2b747c", + "https://deno.land/x/dax@0.35.0/src/common.ts": "c0e809c591400dbadb25197f2819c59fec6b897c94c1aba6a026d5d1eee9cb53", + "https://deno.land/x/dax@0.35.0/src/console/confirm.ts": "d9128d10b77fcc0a8df2784f71c79df68f5c8e00a34b04547b9ba9ddf1c97f96", + "https://deno.land/x/dax@0.35.0/src/console/logger.ts": "e0ab5025915cef70df03681c756e211f25bb2e4331f82ed4256b17ddd9e794ea", + "https://deno.land/x/dax@0.35.0/src/console/mod.ts": "29ae1f8250b74a477e26a3b6ccf647badf5d8f8e2a9e6c4aa0d5df9e3bbbb273", + "https://deno.land/x/dax@0.35.0/src/console/multiSelect.ts": "31003744e58f45f720271bd034d8cfba1055c954ba02d77a2f2eb21e4c1ed55a", + "https://deno.land/x/dax@0.35.0/src/console/progress/format.ts": "15ddbb8051580f88ed499281e12ca6f881f875ab73268d7451d7113ee130bd7d", + "https://deno.land/x/dax@0.35.0/src/console/progress/interval.ts": "80188d980a27c2eb07c31324365118af549641442f0752fe7c3b0c91832e5046", + "https://deno.land/x/dax@0.35.0/src/console/progress/mod.ts": "70080a5d06ab2c58e948225e1e5144458fbc36fbfa61672ac82bb2f6c6991bad", + "https://deno.land/x/dax@0.35.0/src/console/prompt.ts": "78c645b41a7562133d05a10901ae4d682cb22bfaf0b5a21cc8475ca2a946aee1", + "https://deno.land/x/dax@0.35.0/src/console/select.ts": "c9d7124d975bf34d52ea1ac88fd610ed39db8ee6505b9bb53f371cef2f56c6ab", + "https://deno.land/x/dax@0.35.0/src/console/utils.ts": "954c99397dcd2cb3f1ccf50055085f17c9ffb31b25b3c5719776de81e23935f4", + "https://deno.land/x/dax@0.35.0/src/deps.ts": "709fcfef942331cbc97c1faf37dbff8b97c411fac1d142106027ca5bbe64df59", + "https://deno.land/x/dax@0.35.0/src/lib/mod.ts": "c992db99c8259ae3bf2d35666585dfefda84cf7cf4e624e42ea2ac7367900fe0", + "https://deno.land/x/dax@0.35.0/src/lib/rs_lib.generated.js": "381f2f60b458bcb0a6fec1310c2c3b6447339f6995df206b9a4d0c3747ee8c36", + "https://deno.land/x/dax@0.35.0/src/path.ts": "5e1ea6139a975d31d6a5ca62c96c095ff7ddcf5c34ef8b75ab0ea04f87ac579b", + "https://deno.land/x/dax@0.35.0/src/pipes.ts": "3aa984c0d031f4221953e228ba89452a86068a80d2811fddb9c60737cd4ab174", + "https://deno.land/x/dax@0.35.0/src/request.ts": "a2b20859de7a0fbe10584a41de435942ee4726f0b637b1cb55d7f632f4efc74f", + "https://deno.land/x/dax@0.35.0/src/result.ts": "0908b69c16b25c3b258f6b2ada12e124686df5f7ea2b98daa27a83973c7b118c", + "https://deno.land/x/dax@0.35.0/src/shell.ts": "9475a015d5493197f9611b1259c5dd6d27c7c2ab9c3711606cd4b47412568ee1", "https://deno.land/x/outdent@v0.8.0/src/index.ts": "6dc3df4108d5d6fedcdb974844d321037ca81eaaa16be6073235ff3268841a22", - "https://deno.land/x/which@0.2.1/mod.ts": "2e076cb85aea9798662b355fb613d27eebcc78dfc8934ece4ae932f6303f6ca8", - "https://deno.land/x/which@0.3.0/mod.ts": "3e10d07953c14e4ddc809742a3447cef14202cdfe9be6678a1dfc8769c4487e6", - "https://raw.githubusercontent.com/dprint/automation/0.3.0/cargo.ts": "79798e8d86a413021cd52d1936ee853858cc04f9073fa6826e3c389970e18c81", - "https://raw.githubusercontent.com/dprint/automation/0.3.0/hash.ts": "b81cab5700a6d7b6a0a4ff5b60bf0e26a2827eafd747ddd4c10bc6a4887d8d94", - "https://raw.githubusercontent.com/dprint/automation/0.3.0/mod.ts": "a36d0be254bc0348e920eafd67054f5fa3102eaaa90021051d4f27569baf3b07", - "https://raw.githubusercontent.com/dprint/automation/0.3.0/process_plugin.ts": "74f35bec73cbc510f63ed3f234c695ebb7799548bab180a4031c89280f60fb25" + "https://deno.land/x/which@0.3.0/mod.ts": "3e10d07953c14e4ddc809742a3447cef14202cdfe9be6678a1dfc8769c4487e6" } } diff --git a/plugin/build.rs b/plugin/build.rs index 3ce9b45..ad27769 100644 --- a/plugin/build.rs +++ b/plugin/build.rs @@ -22,12 +22,17 @@ fn main() { let js_src_dir = js_dir.join("node").join("src"); let supported_extensions_path = out_dir.join("SUPPORTED_EXTENSIONS.json"); - let status = Command::new("deno") - .args(["task", "build"]) - .status() - .unwrap(); - if status.code() != Some(0) { - panic!("Error building."); + let build_result = Command::new("deno").args(["task", "build"]).status(); + match build_result { + Ok(status) => { + if status.code() != Some(0) { + panic!("Error building."); + } + } + Err(err) if err.kind() == std::io::ErrorKind::NotFound => { + eprintln!("Skipping build because deno executable not found."); + } + Err(err) => panic!("Error building to script: {}", err), } // ensure the build is invalidated if any of these files change @@ -48,7 +53,11 @@ fn main() { js_src_dir.join("shims/url.js").display() ); - create_snapshot(startup_snapshot_path.clone(), &js_dir); + let startup_code_path = js_dir.join("node/dist/main.js"); + if !startup_code_path.exists() { + panic!("Run `deno task build` first."); + } + create_snapshot(startup_snapshot_path.clone(), &startup_code_path); // serialize the supported extensions eprintln!("Creating runtime..."); @@ -74,8 +83,7 @@ fn main() { eprintln!("Done"); } -fn create_snapshot(snapshot_path: PathBuf, js_dir: &Path) { - let startup_code_path = js_dir.join("node/dist/main.js"); +fn create_snapshot(snapshot_path: PathBuf, startup_code_path: &Path) { let startup_text = std::fs::read_to_string(startup_code_path).unwrap(); dprint_plugin_deno_base::build::create_snapshot( dprint_plugin_deno_base::build::CreateSnapshotOptions {