workspace, third_party/rules_zig: adjust ZLS to require --version as the first parameter and add missing keys to the BuildConfig object for code completion
This commit is contained in:
parent
b67fd2367d
commit
efcf955a4e
@ -21,7 +21,7 @@ bazel_dep(name = "rules_proto", version = "7.1.0")
|
|||||||
bazel_dep(name = "rules_python", version = "0.40.0")
|
bazel_dep(name = "rules_python", version = "0.40.0")
|
||||||
bazel_dep(name = "rules_rust", version = "0.57.1")
|
bazel_dep(name = "rules_rust", version = "0.57.1")
|
||||||
bazel_dep(name = "rules_uv", version = "0.53.0")
|
bazel_dep(name = "rules_uv", version = "0.53.0")
|
||||||
bazel_dep(name = "rules_zig", version = "20240913.0-1957d05")
|
bazel_dep(name = "rules_zig", version = "20250314.0-b9739c6")
|
||||||
bazel_dep(name = "sentencepiece", version = "20240618.0-d7ace0a")
|
bazel_dep(name = "sentencepiece", version = "20240618.0-d7ace0a")
|
||||||
bazel_dep(name = "stablehlo", version = "20250217.0-4598975")
|
bazel_dep(name = "stablehlo", version = "20250217.0-4598975")
|
||||||
bazel_dep(name = "toolchains_protoc", version = "0.3.7")
|
bazel_dep(name = "toolchains_protoc", version = "0.3.7")
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,77 +0,0 @@
|
|||||||
{
|
|
||||||
"release_date": "2024-12-02",
|
|
||||||
"release_label": "9.6.0",
|
|
||||||
"release_product": "cudnn",
|
|
||||||
"cudnn": {
|
|
||||||
"name": "NVIDIA CUDA Deep Neural Network library",
|
|
||||||
"license": "cudnn",
|
|
||||||
"license_path": "cudnn/LICENSE.txt",
|
|
||||||
"version": "9.6.0.74",
|
|
||||||
"linux-x86_64": {
|
|
||||||
"cuda11": {
|
|
||||||
"relative_path": "cudnn/linux-x86_64/cudnn-linux-x86_64-9.6.0.74_cuda11-archive.tar.xz",
|
|
||||||
"sha256": "9717b0022d4f5ea88ccd9796bef7ad1cc5d04b3bd53f690041767aabfb98d14d",
|
|
||||||
"md5": "aa68c3eda5ad616c0eead9f646d4885b",
|
|
||||||
"size": "655044868"
|
|
||||||
},
|
|
||||||
"cuda12": {
|
|
||||||
"relative_path": "cudnn/linux-x86_64/cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz",
|
|
||||||
"sha256": "72595f0d17d952cf568c1d76e370a9c303bb08c2f80888a8cf33e316a65d46a8",
|
|
||||||
"md5": "16afe7a88f576525d45d9e00c4ac4277",
|
|
||||||
"size": "662367552"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cuda_variant": [
|
|
||||||
"11",
|
|
||||||
"12"
|
|
||||||
],
|
|
||||||
"linux-sbsa": {
|
|
||||||
"cuda11": {
|
|
||||||
"relative_path": "cudnn/linux-sbsa/cudnn-linux-sbsa-9.6.0.74_cuda11-archive.tar.xz",
|
|
||||||
"sha256": "5f7440fd8269f7a7986bff89dd6924e4145644a94958ab49f146b6f8c0230d46",
|
|
||||||
"md5": "b125b9988b0c71592561163e6c64d8c6",
|
|
||||||
"size": "653894704"
|
|
||||||
},
|
|
||||||
"cuda12": {
|
|
||||||
"relative_path": "cudnn/linux-sbsa/cudnn-linux-sbsa-9.6.0.74_cuda12-archive.tar.xz",
|
|
||||||
"sha256": "f71fb008833fa92f9eac02c0b786a21f5e383470235ddeb1eee98fe370148ace",
|
|
||||||
"md5": "9a35d77abda9f279b3fe32023d3b2e47",
|
|
||||||
"size": "661271556"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"windows-x86_64": {
|
|
||||||
"cuda11": {
|
|
||||||
"relative_path": "cudnn/windows-x86_64/cudnn-windows-x86_64-9.6.0.74_cuda11-archive.zip",
|
|
||||||
"sha256": "388cce5d31919ef41a4231d21ed3fb7b60609d0bd6baaf6173cd9583a00b25c9",
|
|
||||||
"md5": "6a8c3bea2bad7ca83f356a7832f3671f",
|
|
||||||
"size": "492545214"
|
|
||||||
},
|
|
||||||
"cuda12": {
|
|
||||||
"relative_path": "cudnn/windows-x86_64/cudnn-windows-x86_64-9.6.0.74_cuda12-archive.zip",
|
|
||||||
"sha256": "65ca0f2d77a46de1def35e289780b8d8729ef2fa39cf8dd0c8448e381dd2978c",
|
|
||||||
"md5": "b969339363b43cc80f6184929a6633fa",
|
|
||||||
"size": "495911494"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"linux-aarch64": {
|
|
||||||
"cuda12": {
|
|
||||||
"relative_path": "cudnn/linux-aarch64/cudnn-linux-aarch64-9.6.0.74_cuda12-archive.tar.xz",
|
|
||||||
"sha256": "6f907bf97731d30ffd55dcc53fe8aa666b583b2c0c6b20e88c7341f98bb0b594",
|
|
||||||
"md5": "751f516ce47fb0e504b878bfc97176e4",
|
|
||||||
"size": "766134984"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cudnn_samples": {
|
|
||||||
"name": "NVIDIA cuDNN samples",
|
|
||||||
"license": "cudnn",
|
|
||||||
"license_path": "cudnn_samples/LICENSE.txt",
|
|
||||||
"version": "9.6.0.74",
|
|
||||||
"source": {
|
|
||||||
"relative_path": "cudnn_samples/source/cudnn_samples-source-9.6.0.74-archive.tar.xz",
|
|
||||||
"sha256": "2cad2fb38ef359a1956daf73b6b4c0faf826a865fcc3dc791437ca83863a6cb9",
|
|
||||||
"md5": "8e46375025bdd14ba55a695e12ee3694",
|
|
||||||
"size": "1667016"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
68
third_party/modules/rules_zig/20250314.0-b9739c6/MODULE.bazel
vendored
Normal file
68
third_party/modules/rules_zig/20250314.0-b9739c6/MODULE.bazel
vendored
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
module(
|
||||||
|
name = "rules_zig",
|
||||||
|
version = "20250314.0-b9739c6",
|
||||||
|
compatibility_level = 1,
|
||||||
|
)
|
||||||
|
|
||||||
|
bazel_dep(name = "aspect_bazel_lib", version = "2.8.1")
|
||||||
|
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
||||||
|
bazel_dep(name = "platforms", version = "0.0.10")
|
||||||
|
|
||||||
|
zig = use_extension("//zig:extensions.bzl", "zig")
|
||||||
|
zig.index(file = "//zig/private:versions.json")
|
||||||
|
use_repo(zig, "zig_toolchains")
|
||||||
|
|
||||||
|
register_toolchains("@rules_zig//zig/target:all")
|
||||||
|
|
||||||
|
register_toolchains("@zig_toolchains//:all")
|
||||||
|
|
||||||
|
zig_dev = use_extension(
|
||||||
|
"//zig:extensions.bzl",
|
||||||
|
"zig",
|
||||||
|
dev_dependency = True,
|
||||||
|
)
|
||||||
|
zig_dev.toolchain(zig_version = "0.13.0")
|
||||||
|
zig_dev.toolchain(zig_version = "0.12.1")
|
||||||
|
zig_dev.toolchain(zig_version = "0.12.0")
|
||||||
|
zig_dev.toolchain(zig_version = "0.11.0")
|
||||||
|
|
||||||
|
bazel_dep(name = "rules_cc", version = "0.0.9")
|
||||||
|
bazel_dep(name = "stardoc", version = "0.7.0", dev_dependency = True, repo_name = "io_bazel_stardoc")
|
||||||
|
bazel_dep(name = "gazelle", version = "0.38.0", dev_dependency = True, repo_name = "bazel_gazelle")
|
||||||
|
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True)
|
||||||
|
bazel_dep(
|
||||||
|
name = "buildifier_prebuilt",
|
||||||
|
version = "7.3.1",
|
||||||
|
dev_dependency = True,
|
||||||
|
)
|
||||||
|
bazel_dep(name = "rules_multirun", version = "0.9.0", dev_dependency = True)
|
||||||
|
bazel_dep(name = "rules_python", version = "0.35.0", dev_dependency = True)
|
||||||
|
bazel_dep(
|
||||||
|
name = "rules_bazel_integration_test",
|
||||||
|
version = "0.25.0",
|
||||||
|
dev_dependency = True,
|
||||||
|
)
|
||||||
|
|
||||||
|
bazel_binaries = use_extension(
|
||||||
|
"@rules_bazel_integration_test//:extensions.bzl",
|
||||||
|
"bazel_binaries",
|
||||||
|
dev_dependency = True,
|
||||||
|
)
|
||||||
|
|
||||||
|
# NOTE: Keep in sync with WORKSPACE.
|
||||||
|
bazel_binaries.download(version_file = "//:.bazelversion")
|
||||||
|
bazel_binaries.download(version = "7.0.0")
|
||||||
|
use_repo(
|
||||||
|
bazel_binaries,
|
||||||
|
"bazel_binaries",
|
||||||
|
"bazel_binaries_bazelisk",
|
||||||
|
"build_bazel_bazel_.bazelversion",
|
||||||
|
"build_bazel_bazel_7_0_0",
|
||||||
|
)
|
||||||
|
|
||||||
|
# TODO[AH] Should be an implicit transitive dependency through rules_bazel_integration_test.
|
||||||
|
# However, if we do not include it explicitly, then the runfiles resolution for
|
||||||
|
# cgrindel_bazel_starlib/shlib/lib/message.sh fails in
|
||||||
|
# rules_bazel_integration_test/tools/update_deleted_packages.sh when invoked
|
||||||
|
# through the rules_multirun target //util:update.
|
||||||
|
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.21.0", dev_dependency = True)
|
||||||
5
third_party/modules/rules_zig/20250314.0-b9739c6/source.json
vendored
Normal file
5
third_party/modules/rules_zig/20250314.0-b9739c6/source.json
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"strip_prefix": "rules_zig-b9739c615ce62b64ee595ac4bcd9ee7cc06b0422",
|
||||||
|
"url": "https://github.com/zml/rules_zig/archive/b9739c615ce62b64ee595ac4bcd9ee7cc06b0422.tar.gz",
|
||||||
|
"integrity": "sha256-p1rYD9gvYS3DgBjN6jo1pB86Kr4k2wojKjVpYRTZ3Us="
|
||||||
|
}
|
||||||
3
third_party/modules/rules_zig/metadata.json
vendored
3
third_party/modules/rules_zig/metadata.json
vendored
@ -14,7 +14,8 @@
|
|||||||
"20240904.0-010da15",
|
"20240904.0-010da15",
|
||||||
"20240909.0-37f17ff",
|
"20240909.0-37f17ff",
|
||||||
"20240912.0-41bfe84",
|
"20240912.0-41bfe84",
|
||||||
"20240913.0-1957d05"
|
"20240913.0-1957d05",
|
||||||
|
"20250314.0-b9739c6"
|
||||||
],
|
],
|
||||||
"yanked_versions": {}
|
"yanked_versions": {}
|
||||||
}
|
}
|
||||||
|
|||||||
2
third_party/zls/zls.bzl
vendored
2
third_party/zls/zls.bzl
vendored
@ -128,7 +128,7 @@ cat <<EOF > ${{json_config}}
|
|||||||
}}
|
}}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
exec {zls} --config-path "${{json_config}}" "${{@}}"
|
exec {zls} "${{@}}" --config-path "${{json_config}}"
|
||||||
""".format(
|
""".format(
|
||||||
zig_lib_path = zig_lib_path,
|
zig_lib_path = zig_lib_path,
|
||||||
zig_exe_path = zig_exe_path,
|
zig_exe_path = zig_exe_path,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user