From 58a154c58fd5ebe185100665e390783c195b62d5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 20 Mar 2021 10:56:20 +1000 Subject: [PATCH] Revert "update Svelte" This reverts commit 0ca9a6b0097157c6d511958fe52006d28c3d7b3f. Unfortunately this is breaking the Windows build. It doesn't seem to break other platforms, so I'm wondering if maybe it's the Windows path name or some Windows-specific handling in rules_nodejs that is to blame: (08:31:03) ERROR: C:/buildkite-agent/builds/win-ci/ankitects/anki-ci/ts/graphs/BUILD.bazel:21:15: Svelte ts/graphs/FutureDue.svelte.mjs failed: (Exit 1): bash.exe failed: error executing command C:/msys64/usr/bin/bash.exe -c ... (remaining 1 argument(s) skipped) Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: C:\bazel\ankici\base\external\build_bazel_rules_svelte_deps\node_modules\svelte\compiler.mjs at Object.Module._extensions..mjs (internal/modules/cjs/loader.js:1007:9) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Module.require (internal/modules/cjs/loader.js:849:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (C:\bazel\ankici\base\external\build_bazel_rules_svelte\internal\svelte.js:10:16) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) --- repos.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repos.bzl b/repos.bzl index d6da8ff6b..37ebae38e 100644 --- a/repos.bzl +++ b/repos.bzl @@ -120,11 +120,11 @@ def register_repos(): maybe( http_archive, name = "build_bazel_rules_svelte", - strip_prefix = "rules_svelte-anki-2021-03-20", + strip_prefix = "rules_svelte-anki-2021-02-06", urls = [ - "https://github.com/ankitects/rules_svelte/archive/anki-2021-03-20.tar.gz", + "https://github.com/ankitects/rules_svelte/archive/anki-2021-02-06.tar.gz", ], - sha256 = "88e2f5660e3738bacac5eeb297ce268cc3c8dd4c1e3b99d5bb0f5762bd6c1596", + sha256 = "f77a96ae5a354f8c3c24045f3bee8521bfe56224292d4f71184a3382784640eb", ) # translations