tweag / nix_bazel_codelab

Nix+Bazel Codelab
Apache License 2.0
50 stars 4 forks source link

Fix npm #50

Open rtacconi opened 7 months ago

rtacconi commented 7 months ago

When I try to run a build I get this error:

ERROR: Failed to load Starlark extension '@npm//@bazel/labs:package.bzl'.
Cycle in the workspace file detected. This indicates that a repository is used prior to being defined.
The following chain of repository dependencies lead to the missing definition.
 - @npm
 - @nodejs_darwin_arm64

It seems that after Bazel 5 that package is not available, see https://github.com/bazelbuild/rules_nodejs/issues/3262#issuecomment-1016370486.

I added the extension as local dependency and updated the WORKSPACE file.