Skip to content

Commit e119534

Browse files
evie404pcj
authored andcommitted
fix http archive (#76)
1 parent 1c60708 commit e119534

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

node/internal/node_repositories.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
18+
1719
"""Install NodeJS when the user runs node_repositories() from their WORKSPACE.
1820
1921
We fetch a specific version of Node, to ensure builds are hermetic.
@@ -105,7 +107,7 @@ def node_repositories(yarn_version="v1.0.1",
105107
yarn_sha256="6b00b5e0a7074a512d39d2d91ba6262dde911d452617939ca4be4a700dd77cf1",
106108
**kwargs):
107109

108-
native.new_http_archive(
110+
http_archive(
109111
name = "yarn",
110112
url = "https://github.com/yarnpkg/yarn/releases/download/{yarn_version}/yarn-{yarn_version}.tar.gz".format(
111113
yarn_version = yarn_version,
@@ -115,7 +117,7 @@ def node_repositories(yarn_version="v1.0.1",
115117
build_file_content = YARN_BUILD_FILE_CONTENT,
116118
)
117119

118-
native.new_http_archive(
120+
http_archive(
119121
name = "yarnpkg_lockfile",
120122
url = "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.0.0.tgz",
121123
sha256 = "472add7ad141c75811f93dca421e2b7456045504afacec814b0565f092156250",

0 commit comments

Comments
 (0)