From 9a351957173b6b0aa296ac02e99cce466c46172a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ol=C3=A1h?= Date: Thu, 17 Sep 2020 09:48:09 +0000 Subject: [PATCH] Add pull requests instead of using a local repository. - https://github.com/bazelbuild/rules_foreign_cc/pull/427 - https://github.com/bazelbuild/rules_foreign_cc/pull/428 --- WORKSPACE | 5 ----- package.bzl | 16 ++++++++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index a8be480a..5b75b916 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -2,11 +2,6 @@ workspace(name = "wasm") load("//:package.bzl", "register_dependencies", "register_repositories") -local_repository( - name = "rules_foreign_cc", - path = "../rules_foreign_cc", -) - register_dependencies() register_repositories() diff --git a/package.bzl b/package.bzl index d25ff853..ed423d1e 100644 --- a/package.bzl +++ b/package.bzl @@ -5,12 +5,16 @@ load("//lib:package.bzl", "download_lib") def register_dependencies(): """Set up dependencies of THIS workspace.""" - #_github_repository( - # project = "rules_foreign_cc", - # owner = "bazelbuild", - # commit = "ed95b95affecaa3ea3bf7bab3e0ab6aa847dfb06", - # shallow_since = "1599808059 +0200", - #) + _github_repository( + project = "rules_foreign_cc", + owner = "bazelbuild", + commit = "ed95b95affecaa3ea3bf7bab3e0ab6aa847dfb06", + shallow_since = "1599808059 +0200", + pull_requests = { + 427: "6172e0c838a06346c9aab7c76c5e0fccc8355c7a0fe63f57d2060c27869b12e8", + 428: "13ff5c01debb49816322ba1abd5af16059050f3bd43ba47c2972961dbc9f56da", + }, + ) http_archive( name = "platforms",