This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Description
It is my first time here, and I already read the contribution guideline. So I hope creating an issue is an appropriate step for this discussion.
I am working on a bazel workspace that needs to import and build both gflags and glog from source. I would like to build glog using the version of gflags in my workspace, instead of the one specified in glog WORKSPACE file. Hence, would the following change work and be accepted?
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_gflags_gflags",
strip_prefix = "gflags-2.2.2",
urls = [
"https://mirror.bazel.build/github.com/gflags/gflags/archive/v2.2.2.tar.gz",
"https://github.com/gflags/gflags/archive/v2.2.2.tar.gz",
],
)
to:
if "com_github_gflags_gflags" not in native.existing_rules():
http_archive(
name = "com_github_gflags_gflags",
strip_prefix = "gflags-2.2.2",
urls = [
"https://mirror.bazel.build/github.com/gflags/gflags/archive/v2.2.2.tar.gz",
"https://github.com/gflags/gflags/archive/v2.2.2.tar.gz",
],
)