Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
91707246
Unverified
Commit
91707246
authored
Jun 23, 2018
by
Feng Xiao
Committed by
GitHub
Jun 23, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4168 from jin/master
Use versions module from Skylib for version checking
parents
f42d5923
b2a19083
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
WORKSPACE
WORKSPACE
+7
-0
protobuf.bzl
protobuf.bzl
+3
-4
No files found.
WORKSPACE
View file @
91707246
...
...
@@ -14,6 +14,13 @@ http_archive(
urls = ["https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55"],
)
http_archive(
name = "bazel_skylib",
sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
)
bind(
name = "python_headers",
actual = "//util/python:python_headers",
...
...
protobuf.bzl
View file @
91707246
load
(
"@bazel_skylib//:lib.bzl"
,
"versions"
)
def
_GetPath
(
ctx
,
path
):
if
ctx
.
label
.
workspace_root
:
return
ctx
.
label
.
workspace_root
+
'/'
+
path
...
...
@@ -411,7 +413,4 @@ def check_protobuf_required_bazel_version():
This
ensures
bazel
supports
our
approach
to
proto_library
()
depending
on
a
copied
filegroup
.
(
Fixed
in
bazel
0.5.4
)
"""
expected = apple_common.dotted_version("
0.5.4
")
current = apple_common.dotted_version(native.bazel_version)
if current.compare_to(expected) < 0:
fail("
Bazel
must
be
newer
than
0.5.4
")
versions.check(minimum_bazel_version = "
0.5.4
")
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment