You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running bazel build ... The following warning is output. It does not seem to have a negative impact on the build.
WARNING: The module extension @@aspect_rules_js~//npm:extensions.bzl%npm produced an invalid lockfile entry because it referenced @@[unknown repo '' requested from @@aspect_rules_js~]. Please report this issue to its maintainers.
Version
Development (host) and target OS/architectures:
Output of bazel --version: 7.4.1
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file: MODULE.bazel
Language(s) and/or frameworks involved:
How to reproduce
- `MODULE.bazel` aspect rules section below
- The warning was introduced with the last section for pinning a specific pnpm version to 9.7.1.
- The warning does NOT with bazel 7.3.0, though we are on 7.4.1 forsome experimental flags that don't existin previous versions.
- `pnpm-lock.yaml` is correctly versioned to 9
#------------------------------------------------------------------------------# Aspect Rules#------------------------------------------------------------------------------
bazel_dep(name = "aspect_rules_cypress", version = "0.7.0")
cypress = use_extension(
"@aspect_rules_cypress//cypress:extensions.bzl",
"cypress",
)
cypress.toolchain(
name = "cypress",
cypress_version = "13.6.6",
)
use_repo(cypress, "cypress_toolchains")
register_toolchains("@cypress_toolchains//:all")
bazel_dep(name = "aspect_bazel_lib", version = "2.13.0")
# aspect_rule_swc repo version 2.3.0 (latest as of 25-Feb-2025) doesn't fetch# correctly in arm64. So using previous version from# https://registry.bazel.build/modules/aspect_rules_swc
bazel_dep(name = "aspect_rules_swc", version = "2.0.1")
bazel_dep(name = "aspect_rules_ts", version = "3.5.0")
ts = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext")
ts.deps(ts_version_from = "//:package.json")
use_repo(ts, "npm_typescript")
bazel_dep(name = "aspect_rules_js", version = "2.2.0")
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
name = "npm",
data = [
"//:pnpm-workspace.yaml",
"//:package.json",
"//ports:package.json",
"//spectrum/auth:package.json",
"//spectrum/dashboard/ui:package.json",
"//spectrum/host-app:package.json",
"//spectrum/components:package.json",
"//spectrum/widget-core/ui:package.json",
"//spectrum/widgets/ui:package.json",
"//platform/platypus/ui:package.json",
"//skill/pipeline/ui:package.json",
# Include any other package.json files in your workspace
],
lifecycle_hooks_exclude = [
# Speed up installation by disabling cypress binary install. Optional."cypress",
],
no_optional = True,
npmrc = "@@//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
update_pnpm_lock = True,
verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
pnpm.pnpm(
name = "pnpm",
pnpm_version = "9.7.0",
)
use_repo(pnpm, "pnpm")
What happened?
When running
bazel build ...
The following warning is output. It does not seem to have a negative impact on the build.Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 7.4.1Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:MODULE.bazel
Language(s) and/or frameworks involved:
How to reproduce
Any other information?
relevant section from MODULE.bazel.lock
The text was updated successfully, but these errors were encountered: