-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introducing update-deps.py, migrating few deps
Copying the script from upstream, will simplify version management.
- Loading branch information
Showing
17 changed files
with
857 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "deps.schema.json", | ||
"repositories": [ | ||
{ | ||
"name": "bazel_skylib", | ||
"type": "github_release", | ||
"owner": "bazelbuild", | ||
"repo": "bazel-skylib", | ||
"file_regex": "\\.tar\\.gz$" | ||
}, | ||
{ | ||
"name": "rules_license", | ||
"type": "github_release", | ||
"owner": "bazelbuild", | ||
"repo": "rules_license", | ||
"file_regex": "\\.tar\\.gz$" | ||
}, | ||
{ | ||
"name": "rules_python", | ||
"type": "github_release", | ||
"owner": "bazelbuild", | ||
"repo": "rules_python", | ||
"file_regex": "\\.tar\\.gz$" | ||
}, | ||
{ | ||
// Needed for objc_library starting with bazel 7 | ||
"name": "build_bazel_apple_support", | ||
"type": "github_release", | ||
"owner": "bazelbuild", | ||
"repo": "apple_support", | ||
"file_regex": "\\.tar\\.gz$" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "deps.schema.json", | ||
"repositories": [ | ||
{ | ||
"name": "capnp-cpp", | ||
"type": "github_tarball", | ||
"owner": "capnproto", | ||
"repo": "capnproto", | ||
"branch": "v2", | ||
"extra_strip_prefix": "/c++" | ||
}, | ||
{ | ||
"name": "ssl", | ||
"type": "github_tarball", | ||
"owner": "google", | ||
"repo": "boringssl", | ||
"branch": "master-with-bazel" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://example.com/product.schema.json", | ||
"title": "Dependencies", | ||
"description": "Description of external dependencies for the project", | ||
"type": "object", | ||
"properties": { | ||
"repositories": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"const": "github_tarball" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"owner": { | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"type": "string" | ||
}, | ||
"freeze_commit": { | ||
"type": "string" | ||
}, | ||
"freeze_sha256": { | ||
"type": "string" | ||
}, | ||
"build_file": { | ||
"type": "string" | ||
}, | ||
"build_file_content": { | ||
"type": "string" | ||
}, | ||
"patches": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"repo_mapping": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
}, | ||
"branch": { | ||
"type": "string" | ||
}, | ||
"extra_strip_prefix": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"name", | ||
"owner", | ||
"repo" | ||
], | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"const": "github_release" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"owner": { | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"type": "string" | ||
}, | ||
"file_regex": { | ||
"type": "string" | ||
}, | ||
"file_type": { | ||
"type": "string", | ||
"enum": [ | ||
"archive", | ||
"executable" | ||
] | ||
}, | ||
"freeze_version": { | ||
"type": "string" | ||
}, | ||
"freeze_sha256": { | ||
"type": "string" | ||
}, | ||
"strip_prefix": { | ||
"type": "string" | ||
}, | ||
"build_file": { | ||
"type": "string" | ||
}, | ||
"build_file_content": { | ||
"type": "string" | ||
}, | ||
"patches": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"repo_mapping": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"name", | ||
"owner", | ||
"repo", | ||
"file_regex" | ||
], | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"const": "git_clone" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"url": { | ||
"type": "string" | ||
}, | ||
"branch": { | ||
"type": "string" | ||
}, | ||
"build_file": { | ||
"type": "string" | ||
}, | ||
"build_file_content": { | ||
"type": "string" | ||
}, | ||
"freeze_commit": { | ||
"type": "string" | ||
}, | ||
"patches": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"repo_mapping": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"name", | ||
"url" | ||
], | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"const": "crate" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"build_file": { | ||
"type": "string" | ||
}, | ||
"freeze_version": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"name", | ||
"build_file" | ||
], | ||
"additionalProperties": false | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"repositories" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# WARNING: THIS FILE IS AUTOGENERATED BY update-deps.py DO NOT EDIT | ||
|
||
load("@//build/deps:gen/dep_bazel_skylib.bzl", "dep_bazel_skylib") | ||
load("@//build/deps:gen/dep_build_bazel_apple_support.bzl", "dep_build_bazel_apple_support") | ||
load("@//build/deps:gen/dep_rules_license.bzl", "dep_rules_license") | ||
load("@//build/deps:gen/dep_rules_python.bzl", "dep_rules_python") | ||
|
||
def deps_gen(): | ||
dep_bazel_skylib() | ||
dep_rules_license() | ||
dep_rules_python() | ||
dep_build_bazel_apple_support() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# WARNING: THIS FILE IS AUTOGENERATED BY update-deps.py DO NOT EDIT | ||
|
||
load("@//:build/http.bzl", "http_archive") | ||
|
||
TAG_NAME = "1.7.1" | ||
URL = "https://api.github.com/repos/bazelbuild/bazel-skylib/tarball/1.7.1" | ||
STRIP_PREFIX = "bazelbuild-bazel-skylib-27d429d" | ||
SHA256 = "46e81737e39440cc0364d9ad14212c462b0b5b4395ab7ed0d73cb880604a7fe1" | ||
TYPE = "tgz" | ||
|
||
def dep_bazel_skylib(): | ||
http_archive( | ||
name = "bazel_skylib", | ||
url = URL, | ||
strip_prefix = STRIP_PREFIX, | ||
type = TYPE, | ||
sha256 = SHA256, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# WARNING: THIS FILE IS AUTOGENERATED BY update-deps.py DO NOT EDIT | ||
|
||
load("@//:build/http.bzl", "http_archive") | ||
|
||
TAG_NAME = "1.17.0" | ||
URL = "https://api.github.com/repos/bazelbuild/apple_support/tarball/1.17.0" | ||
STRIP_PREFIX = "bazelbuild-apple_support-07dd08d" | ||
SHA256 = "f90a92ad6bdb245523f63dae5e65ebaef7e0087c6651236fc83987cb03937dc3" | ||
TYPE = "tgz" | ||
|
||
def dep_build_bazel_apple_support(): | ||
http_archive( | ||
name = "build_bazel_apple_support", | ||
url = URL, | ||
strip_prefix = STRIP_PREFIX, | ||
type = TYPE, | ||
sha256 = SHA256, | ||
) |
Oops, something went wrong.