File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 66)
77
88# Lower-bounds (minimum) versions for direct runtime dependencies
9- bazel_dep (name = "bazel_lib" , version = "3.0.0-beta.1 " )
9+ bazel_dep (name = "bazel_lib" , version = "3.0.0" )
1010bazel_dep (name = "bazel_skylib" , version = "1.4.1" )
11- bazel_dep (name = "platforms" , version = "0.0.5" )
11+ bazel_dep (name = "platforms" , version = "1.0.0" )
12+ bazel_dep (name = "rules_cc" , version = "0.2.16" ) # to expose headers
1213
1314# workaround for https://github.com/bazelbuild/bazel/issues/25124
1415bazel_dep (name = "zlib" , version = "1.3.1.bcr.6" , dev_dependency = True )
Original file line number Diff line number Diff line change 1414
1515"""Implementation of current_node_cc_headers rule."""
1616
17+ load ("@rules_cc//cc:defs.bzl" , "CcInfo" )
18+
1719def _current_node_cc_headers_impl (ctx ):
1820 return ctx .toolchains ["//nodejs:toolchain_type" ].nodeinfo .headers .providers_map .values ()
1921
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ filegroup(
259259
260260 if repository_ctx .attr .include_headers :
261261 build_content += """
262+ load("@rules_cc//cc:defs.bzl", "cc_library")
262263cc_library(
263264 name = "headers",
264265 hdrs = glob(
Original file line number Diff line number Diff line change 1515"""This module implements the node toolchain rule.
1616"""
1717
18+ load ("@rules_cc//cc:defs.bzl" , "CcInfo" )
19+
1820NodeInfo = provider (
1921 doc = "Information about how to invoke Node.js and npm." ,
2022 fields = {
You can’t perform that action at this time.
0 commit comments