rules_js icon indicating copy to clipboard operation
rules_js copied to clipboard

[Bug]: lock translation cache not busted causing crash

Open jbedard opened this issue 1 year ago • 0 comments

What happened?

Crashes in ways that imply the cache was not busted.

One example (>v1.39.0):

> bazel run //:gazelle
ERROR: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_.../external/aspect_rules_js~override/npm/extensions.bzl", line 104, column 66, in _extension_impl
		importers, packages = translate_to_transitive_closure(lock_importers, lock_packages, attr.prod, attr.dev, attr.no_optional)
	File "/private/var/tmp/_bazel_.../external/aspect_rules_js~override/npm/private/transitive_closure.bzl", line 185, column 71, in translate_to_transitive_closure
		package_info["transitive_closure"] = gather_transitive_closure(
	File "/private/var/tmp/_bazel_.../external/aspect_rules_js~override/npm/private/transitive_closure.bzl", line 54, column 40, in gather_transitive_closure
		package_info = packages[package_key]
Error: key "@smithy/node-http-handler/2.5.0" not found in dictionary

jbedard avatar Mar 22 '24 19:03 jbedard