From 8dc9acb41242c0bf64454ae42cf55d095322338b Mon Sep 17 00:00:00 2001 From: John Bartholomew Date: Wed, 18 Feb 2026 21:52:23 +0000 Subject: [PATCH 1/4] chore: update Bazel, remove WORKSPACE etc, update Bazel lockfile --- .bazelversion | 2 +- MODULE.bazel | 9 +- MODULE.bazel.lock | 1420 ++++++++++------------------------------ Makefile | 2 +- README.md | 7 +- WORKSPACE | 17 - bazel/BUILD.bazel | 0 bazel/deps.bzl | 138 ---- bazel/repositories.bzl | 46 -- 9 files changed, 374 insertions(+), 1267 deletions(-) delete mode 100644 WORKSPACE delete mode 100644 bazel/BUILD.bazel delete mode 100644 bazel/deps.bzl delete mode 100644 bazel/repositories.bzl diff --git a/.bazelversion b/.bazelversion index 18bb4182d..f9c71a52e 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -7.5.0 +8.5.1 diff --git a/MODULE.bazel b/MODULE.bazel index bded2d4c2..f25c7fc66 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,10 +1,15 @@ -module(name = "jsonnet_go", version = "0.21.0") +module( + name = "jsonnet_go", + version = "0.21.0", +) http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # NB: update_cpp_jsonnet.sh looks for these. CPP_JSONNET_SHA256 = "bd0164015ad8f91fd1a879d46eef568aabea66f844ce5c264c375c89022aa1a1" + CPP_JSONNET_GITHASH = "3560b6d317b127dc901ad4674312bfd12d95a301" + CPP_JSONNET_RELEASE_VERSION = "" CPP_JSONNET_STRIP_PREFIX = ( @@ -12,6 +17,7 @@ CPP_JSONNET_STRIP_PREFIX = ( CPP_JSONNET_RELEASE_VERSION if CPP_JSONNET_RELEASE_VERSION else CPP_JSONNET_GITHASH ) ) + CPP_JSONNET_URL = ( "https://github.com/google/jsonnet/releases/download/%s/jsonnet-%s.tar.gz" % ( CPP_JSONNET_RELEASE_VERSION, @@ -31,6 +37,7 @@ http_archive( bazel_dep(name = "gazelle", version = "0.47.0", repo_name = "bazel_gazelle") bazel_dep(name = "rules_go", version = "0.59.0", repo_name = "io_bazel_rules_go") + # rules_cc is needed, because we pull in cpp_jsonnet Bazel module to get the standard library. bazel_dep(name = "rules_cc", version = "0.2.14") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index e0167cd45..6d8515db6 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,5 +1,5 @@ { - "lockFileVersion": 13, + "lockFileVersion": 24, "registryFileHashes": { "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", @@ -10,8 +10,6 @@ "https://bcr.bazel.build/modules/abseil-cpp/20230802.1/MODULE.bazel": "fa92e2eb41a04df73cdabeec37107316f7e5272650f81d6cc096418fe647b915", "https://bcr.bazel.build/modules/abseil-cpp/20240116.1/MODULE.bazel": "37bcdb4440fbb61df6a1c296ae01b327f19e9bb521f9b8e26ec854b6f97309ed", "https://bcr.bazel.build/modules/abseil-cpp/20240116.1/source.json": "9be551b8d4e3ef76875c0d744b5d6a504a27e3ae67bc6b28f46415fd2d2957da", - "https://bcr.bazel.build/modules/apple_support/1.5.0/MODULE.bazel": "50341a62efbc483e8a2a6aec30994a58749bd7b885e18dd96aa8c33031e558ef", - "https://bcr.bazel.build/modules/apple_support/1.5.0/source.json": "eb98a7627c0bc486b57f598ad8da50f6625d974c8f723e9ea71bd39f709c9862", "https://bcr.bazel.build/modules/bazel_features/1.1.0/MODULE.bazel": "cfd42ff3b815a5f39554d97182657f8c4b9719568eb7fded2b9135f084bf760b", "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", @@ -20,7 +18,8 @@ "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", - "https://bcr.bazel.build/modules/bazel_features/1.28.0/source.json": "16a3fc5b4483cb307643791f5a4b7365fa98d2e70da7c378cdbde55f0c0b32cf", + "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", + "https://bcr.bazel.build/modules/bazel_features/1.30.0/source.json": "b07e17f067fe4f69f90b03b36ef1e08fe0d1f3cac254c1241a1818773e3423bc", "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", @@ -54,19 +53,21 @@ "https://bcr.bazel.build/modules/package_metadata/0.0.5/MODULE.bazel": "ef4f9439e3270fdd6b9fd4dbc3d2f29d13888e44c529a1b243f7a31dfbc2e8e4", "https://bcr.bazel.build/modules/package_metadata/0.0.5/source.json": "2326db2f6592578177751c3e1f74786b79382cd6008834c9d01ec865b9126a85", "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", + "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", "https://bcr.bazel.build/modules/platforms/0.0.5/MODULE.bazel": "5733b54ea419d5eaf7997054bb55f6a1d0b5ff8aedf0176fef9eea44f3acda37", "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", - "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", "https://bcr.bazel.build/modules/platforms/1.0.0/MODULE.bazel": "f05feb42b48f1b3c225e4ccf351f367be0371411a803198ec34a389fb22aa580", "https://bcr.bazel.build/modules/platforms/1.0.0/source.json": "f4ff1fd412e0246fd38c82328eb209130ead81d62dcd5a9e40910f867f733d96", "https://bcr.bazel.build/modules/protobuf/21.7/MODULE.bazel": "a5a29bb89544f9b97edce05642fac225a808b5b7be74038ea3640fae2f8e66a7", "https://bcr.bazel.build/modules/protobuf/27.0/MODULE.bazel": "7873b60be88844a0a1d8f80b9d5d20cfbd8495a689b8763e76c6372998d3f64c", "https://bcr.bazel.build/modules/protobuf/27.1/MODULE.bazel": "703a7b614728bb06647f965264967a8ef1c39e09e8f167b3ca0bb1fd80449c0d", "https://bcr.bazel.build/modules/protobuf/29.0-rc2.bcr.1/MODULE.bazel": "52f4126f63a2f0bbf36b99c2a87648f08467a4eaf92ba726bc7d6a500bbf770c", - "https://bcr.bazel.build/modules/protobuf/29.0-rc2.bcr.1/source.json": "cfbee3381201f20e35c304041b4abb3b793e66c9b1829b5478d033ad4a5e3aef", + "https://bcr.bazel.build/modules/protobuf/29.0-rc2/MODULE.bazel": "6241d35983510143049943fc0d57937937122baf1b287862f9dc8590fc4c37df", + "https://bcr.bazel.build/modules/protobuf/29.0/MODULE.bazel": "319dc8bf4c679ff87e71b1ccfb5a6e90a6dbc4693501d471f48662ac46d04e4e", + "https://bcr.bazel.build/modules/protobuf/29.0/source.json": "b857f93c796750eef95f0d61ee378f3420d00ee1dd38627b27193aa482f4f981", "https://bcr.bazel.build/modules/protobuf/3.19.0/MODULE.bazel": "6b5fbb433f760a99a22b18b6850ed5784ef0e9928a72668b66e4d7ccd47db9b0", "https://bcr.bazel.build/modules/protobuf/3.19.2/MODULE.bazel": "532ffe5f2186b69fdde039efe6df13ba726ff338c6bc82275ad433013fa10573", "https://bcr.bazel.build/modules/protobuf/3.19.6/MODULE.bazel": "9233edc5e1f2ee276a60de3eaa47ac4132302ef9643238f23128fea53ea12858", @@ -79,12 +80,15 @@ "https://bcr.bazel.build/modules/rules_cc/0.0.1/MODULE.bazel": "cb2aa0747f84c6c3a78dad4e2049c154f08ab9d166b1273835a8174940365647", "https://bcr.bazel.build/modules/rules_cc/0.0.10/MODULE.bazel": "ec1705118f7eaedd6e118508d3d26deba2a4e76476ada7e0e3965211be012002", "https://bcr.bazel.build/modules/rules_cc/0.0.13/MODULE.bazel": "0e8529ed7b323dad0775ff924d2ae5af7640b23553dfcd4d34344c7e7a867191", + "https://bcr.bazel.build/modules/rules_cc/0.0.14/MODULE.bazel": "5e343a3aac88b8d7af3b1b6d2093b55c347b8eefc2e7d1442f7a02dc8fea48ac", "https://bcr.bazel.build/modules/rules_cc/0.0.15/MODULE.bazel": "6704c35f7b4a72502ee81f61bf88706b54f06b3cbe5558ac17e2e14666cd5dcc", + "https://bcr.bazel.build/modules/rules_cc/0.0.16/MODULE.bazel": "7661303b8fc1b4d7f532e54e9d6565771fea666fbdf839e0a86affcd02defe87", "https://bcr.bazel.build/modules/rules_cc/0.0.17/MODULE.bazel": "2ae1d8f4238ec67d7185d8861cb0a2cdf4bc608697c331b95bf990e69b62e64a", "https://bcr.bazel.build/modules/rules_cc/0.0.2/MODULE.bazel": "6915987c90970493ab97393024c156ea8fb9f3bea953b2f3ec05c34f19b5695c", "https://bcr.bazel.build/modules/rules_cc/0.0.6/MODULE.bazel": "abf360251023dfe3efcef65ab9d56beefa8394d4176dd29529750e1c57eaa33f", "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", + "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", "https://bcr.bazel.build/modules/rules_cc/0.1.5/MODULE.bazel": "88dfc9361e8b5ae1008ac38f7cdfd45ad738e4fa676a3ad67d19204f045a1fd8", "https://bcr.bazel.build/modules/rules_cc/0.2.14/MODULE.bazel": "353c99ed148887ee89c54a17d4100ae7e7e436593d104b668476019023b58df8", "https://bcr.bazel.build/modules/rules_cc/0.2.14/source.json": "55d0a4587c5592fad350f6e698530f4faf0e7dd15e69d43f8d87e220c78bea54", @@ -99,18 +103,24 @@ "https://bcr.bazel.build/modules/rules_go/0.59.0/source.json": "1df17bb7865cfc029492c30163cee891d0dd8658ea0d5bfdf252c4b6db5c1ef6", "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", + "https://bcr.bazel.build/modules/rules_java/6.0.0/MODULE.bazel": "8a43b7df601a7ec1af61d79345c17b31ea1fedc6711fd4abfd013ea612978e39", + "https://bcr.bazel.build/modules/rules_java/6.4.0/MODULE.bazel": "e986a9fe25aeaa84ac17ca093ef13a4637f6107375f64667a15999f77db6c8f6", "https://bcr.bazel.build/modules/rules_java/6.5.2/MODULE.bazel": "1d440d262d0e08453fa0c4d8f699ba81609ed0e9a9a0f02cd10b3e7942e61e31", "https://bcr.bazel.build/modules/rules_java/7.10.0/MODULE.bazel": "530c3beb3067e870561739f1144329a21c851ff771cd752a49e06e3dc9c2e71a", "https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6", - "https://bcr.bazel.build/modules/rules_java/7.12.2/source.json": "b0890f9cda8ff1b8e691a3ac6037b5c14b7fd4134765a3946b89f31ea02e5884", "https://bcr.bazel.build/modules/rules_java/7.2.0/MODULE.bazel": "06c0334c9be61e6cef2c8c84a7800cef502063269a5af25ceb100b192453d4ab", + "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2", "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", - "https://bcr.bazel.build/modules/rules_java/7.6.5/MODULE.bazel": "481164be5e02e4cab6e77a36927683263be56b7e36fef918b458d7a8a1ebadb1", + "https://bcr.bazel.build/modules/rules_java/8.14.0/MODULE.bazel": "717717ed40cc69994596a45aec6ea78135ea434b8402fb91b009b9151dd65615", + "https://bcr.bazel.build/modules/rules_java/8.14.0/source.json": "8a88c4ca9e8759da53cddc88123880565c520503321e2566b4e33d0287a3d4bc", "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel": "a56b85e418c83eb1839819f0b515c431010160383306d13ec21959ac412d2fe7", "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel": "33f6f999e03183f7d088c9be518a63467dfd0be94a11d0055fe2d210f89aa909", "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", + "https://bcr.bazel.build/modules/rules_jvm_external/5.3/MODULE.bazel": "bf93870767689637164657731849fb887ad086739bd5d360d90007a581d5527d", + "https://bcr.bazel.build/modules/rules_jvm_external/6.1/MODULE.bazel": "75b5fec090dbd46cf9b7d8ea08cf84a0472d92ba3585b476f44c326eda8059c4", "https://bcr.bazel.build/modules/rules_jvm_external/6.3/MODULE.bazel": "c998e060b85f71e00de5ec552019347c8bca255062c990ac02d051bb80a38df0", "https://bcr.bazel.build/modules/rules_jvm_external/6.3/source.json": "6f5f5a5a4419ae4e37c35a5bb0a6ae657ed40b7abc5a5189111b47fcebe43197", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.0/MODULE.bazel": "ef85697305025e5a61f395d4eaede272a5393cee479ace6686dba707de804d59", "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/MODULE.bazel": "d269a01a18ee74d0335450b10f62c9ed81f2321d7958a2934e44272fe82dcef3", "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/source.json": "2faa4794364282db7c06600b7e5e34867a564ae91bda7cae7c29c64e9466b7d5", "https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0", @@ -127,67 +137,41 @@ "https://bcr.bazel.build/modules/rules_proto/7.0.2/MODULE.bazel": "bf81793bd6d2ad89a37a40693e56c61b0ee30f7a7fdbaf3eabbf5f39de47dea2", "https://bcr.bazel.build/modules/rules_proto/7.0.2/source.json": "1e5e7260ae32ef4f2b52fd1d0de8d03b606a44c91b694d2f1afb1d3b28a48ce1", "https://bcr.bazel.build/modules/rules_python/0.10.2/MODULE.bazel": "cc82bc96f2997baa545ab3ce73f196d040ffb8756fd2d66125a530031cd90e5f", - "https://bcr.bazel.build/modules/rules_python/0.22.1/MODULE.bazel": "26114f0c0b5e93018c0c066d6673f1a2c3737c7e90af95eff30cfee38d0bbac7", "https://bcr.bazel.build/modules/rules_python/0.23.1/MODULE.bazel": "49ffccf0511cb8414de28321f5fcf2a31312b47c40cc21577144b7447f2bf300", "https://bcr.bazel.build/modules/rules_python/0.25.0/MODULE.bazel": "72f1506841c920a1afec76975b35312410eea3aa7b63267436bfb1dd91d2d382", "https://bcr.bazel.build/modules/rules_python/0.28.0/MODULE.bazel": "cba2573d870babc976664a912539b320cbaa7114cd3e8f053c720171cde331ed", "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel": "93a43dc47ee570e6ec9f5779b2e64c1476a6ce921c48cc9a1678a91dd5f8fd58", - "https://bcr.bazel.build/modules/rules_python/0.31.0/source.json": "a41c836d4065888eef4377f2f27b6eea0fedb9b5adb1bab1970437373fe90dc7", "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel": "9208ee05fd48bf09ac60ed269791cf17fb343db56c8226a720fbb1cdf467166c", + "https://bcr.bazel.build/modules/rules_python/0.40.0/MODULE.bazel": "9d1a3cd88ed7d8e39583d9ffe56ae8a244f67783ae89b60caafc9f5cf318ada7", + "https://bcr.bazel.build/modules/rules_python/0.40.0/source.json": "939d4bd2e3110f27bfb360292986bb79fd8dcefb874358ccd6cdaa7bda029320", "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", "https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b", "https://bcr.bazel.build/modules/rules_shell/0.3.0/source.json": "c55ed591aa5009401ddf80ded9762ac32c358d2517ee7820be981e2de9756cf3", "https://bcr.bazel.build/modules/stardoc/0.5.1/MODULE.bazel": "1a05d92974d0c122f5ccf09291442580317cdd859f07a8655f1db9a60374f9f8", "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", + "https://bcr.bazel.build/modules/stardoc/0.5.6/MODULE.bazel": "c43dabc564990eeab55e25ed61c07a1aadafe9ece96a4efabb3f8bf9063b71ef", "https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c", + "https://bcr.bazel.build/modules/stardoc/0.7.1/MODULE.bazel": "3548faea4ee5dda5580f9af150e79d0f6aea934fc60c1cc50f4efdd9420759e7", + "https://bcr.bazel.build/modules/stardoc/0.7.1/source.json": "b6500ffcd7b48cd72c29bb67bcac781e12701cc0d6d55d266a652583cfcdab01", "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "7298990c00040a0e2f121f6c32544bab27d4452f80d9ce51349b1a28f3005c43", "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", "https://bcr.bazel.build/modules/zlib/1.2.12/MODULE.bazel": "3b1a8834ada2a883674be8cbd36ede1b6ec481477ada359cd2d3ddc562340b27", - "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.3/MODULE.bazel": "af322bc08976524477c79d1e45e241b6efbeb918c497e8840b8ab116802dda79", - "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.3/source.json": "2be409ac3c7601245958cd4fcdff4288be79ed23bd690b4b951f500d54ee6e7d", + "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", + "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/source.json": "22bc55c47af97246cfc093d0acf683a7869377de362b5d1c552c2c2e16b7a806", "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198" }, "selectedYankedVersions": {}, "moduleExtensions": { - "@@apple_support~//crosstool:setup.bzl%apple_cc_configure_extension": { + "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { "general": { - "bzlTransitiveDigest": "PjIds3feoYE8SGbbIq2SFTZy3zmxeO2tQevJZNDo7iY=", - "usagesDigest": "+hz7IHWN6A1oVJJWNDB6yZRG+RYhF76wAYItpAeIUIg=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "local_config_apple_cc_toolchains": { - "bzlFile": "@@apple_support~//crosstool:setup.bzl", - "ruleClassName": "_apple_cc_autoconf_toolchains", - "attributes": {} - }, - "local_config_apple_cc": { - "bzlFile": "@@apple_support~//crosstool:setup.bzl", - "ruleClassName": "_apple_cc_autoconf", - "attributes": {} - } - }, - "recordedRepoMappingEntries": [ - [ - "apple_support~", - "bazel_tools", - "bazel_tools" - ] - ] - } - }, - "@@rules_kotlin~//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { - "general": { - "bzlTransitiveDigest": "fus14IFJ/1LGWWGKPH/U18VnJCoMjfDt1ckahqCnM0A=", - "usagesDigest": "aJF6fLy82rR95Ff5CZPAqxNoFgOMLMN5ImfBS0nhnkg=", + "bzlTransitiveDigest": "rL/34P1aFDq2GqVC2zCFgQ8nTuOC6ziogocpvG50Qz8=", + "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, "generatedRepoSpecs": { "com_github_jetbrains_kotlin_git": { - "bzlFile": "@@rules_kotlin~//src/main/starlark/core/repositories:compiler.bzl", - "ruleClassName": "kotlin_compiler_git_repository", + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_compiler_git_repository", "attributes": { "urls": [ "https://github.com/JetBrains/kotlin/releases/download/v1.9.23/kotlin-compiler-1.9.23.zip" @@ -196,16 +180,14 @@ } }, "com_github_jetbrains_kotlin": { - "bzlFile": "@@rules_kotlin~//src/main/starlark/core/repositories:compiler.bzl", - "ruleClassName": "kotlin_capabilities_repository", + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_capabilities_repository", "attributes": { "git_repository_name": "com_github_jetbrains_kotlin_git", "compiler_version": "1.9.23" } }, "com_github_google_ksp": { - "bzlFile": "@@rules_kotlin~//src/main/starlark/core/repositories:ksp.bzl", - "ruleClassName": "ksp_compiler_plugin_repository", + "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:ksp.bzl%ksp_compiler_plugin_repository", "attributes": { "urls": [ "https://github.com/google/ksp/releases/download/1.9.23-1.0.20/artifacts.zip" @@ -215,8 +197,7 @@ } }, "com_github_pinterest_ktlint": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_file", + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_file", "attributes": { "sha256": "01b2e0ef893383a50dbeb13970fe7fa3be36ca3e83259e01649945b09d736985", "urls": [ @@ -226,8 +207,7 @@ } }, "rules_android": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { "sha256": "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", "strip_prefix": "rules_android-0.1.1", @@ -239,1016 +219,342 @@ }, "recordedRepoMappingEntries": [ [ - "rules_kotlin~", + "rules_kotlin+", "bazel_tools", "bazel_tools" ] ] } - }, - "@@rules_python~//python/extensions:python.bzl%python": { - "general": { - "bzlTransitiveDigest": "8vDKUdCc6qEk2/YsFiPsFO1Jqgl+XPFRklapOxMAbE8=", - "usagesDigest": "dhjp1hteIlxSdhYDivRRdp1JyPeEip+5RuKlqD4X27w=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": { - "RULES_PYTHON_BZLMOD_DEBUG": null - }, - "generatedRepoSpecs": { - "python_3_8_aarch64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "1825b1f7220bc93ff143f2e70b5c6a79c6469e0eeb40824e07a7277f59aabfda", - "patches": [], - "platform": "aarch64-apple-darwin", - "python_version": "3.8.18", - "release_filename": "20231002/cpython-3.8.18+20231002-aarch64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.8.18+20231002-aarch64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_8_aarch64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "236a300f386ead02ca98dbddbc026ff4ef4de6701a394106e291ff8b75445ee1", - "patches": [], - "platform": "aarch64-unknown-linux-gnu", - "python_version": "3.8.18", - "release_filename": "20231002/cpython-3.8.18+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.8.18+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_8_x86_64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "fcf04532e644644213977242cd724fe5e84c0a5ac92ae038e07f1b01b474fca3", - "patches": [], - "platform": "x86_64-apple-darwin", - "python_version": "3.8.18", - "release_filename": "20231002/cpython-3.8.18+20231002-x86_64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.8.18+20231002-x86_64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_8_x86_64-pc-windows-msvc": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "a9d203e78caed94de368d154e841610cef6f6b484738573f4ae9059d37e898a5", - "patches": [], - "platform": "x86_64-pc-windows-msvc", - "python_version": "3.8.18", - "release_filename": "20231002/cpython-3.8.18+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.8.18+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_8_x86_64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "1e8a3babd1500111359b0f5675d770984bcbcb2cc8890b117394f0ed342fb9ec", - "patches": [], - "platform": "x86_64-unknown-linux-gnu", - "python_version": "3.8.18", - "release_filename": "20231002/cpython-3.8.18+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.8.18+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_8_host": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "host_toolchain", - "attributes": { - "python_version": "3.8.18", - "user_repository_name": "python_3_8", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_8": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "toolchain_aliases", - "attributes": { - "python_version": "3.8.18", - "user_repository_name": "python_3_8", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_9_aarch64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "fdc4054837e37b69798c2ef796222a480bc1f80e8ad3a01a95d0168d8282a007", - "patches": [], - "platform": "aarch64-apple-darwin", - "python_version": "3.9.18", - "release_filename": "20231002/cpython-3.9.18+20231002-aarch64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.9.18+20231002-aarch64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_9_aarch64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "1e0a3e8ce8e58901a259748c0ab640d2b8294713782d14229e882c6898b2fb36", - "patches": [], - "platform": "aarch64-unknown-linux-gnu", - "python_version": "3.9.18", - "release_filename": "20231002/cpython-3.9.18+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.9.18+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_9_ppc64le-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "101c38b22fb2f5a0945156da4259c8e9efa0c08de9d7f59afa51e7ce6e22a1cc", - "patches": [], - "platform": "ppc64le-unknown-linux-gnu", - "python_version": "3.9.18", - "release_filename": "20231002/cpython-3.9.18+20231002-ppc64le-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.9.18+20231002-ppc64le-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_9_s390x-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "eee31e55ffbc1f460d7b17f05dd89e45a2636f374a6f8dc29ea13d0497f7f586", - "patches": [], - "platform": "s390x-unknown-linux-gnu", - "python_version": "3.9.18", - "release_filename": "20231002/cpython-3.9.18+20231002-s390x-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.9.18+20231002-s390x-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_9_x86_64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "82231cb77d4a5c8081a1a1d5b8ae440abe6993514eb77a926c826e9a69a94fb1", - "patches": [], - "platform": "x86_64-apple-darwin", - "python_version": "3.9.18", - "release_filename": "20231002/cpython-3.9.18+20231002-x86_64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.9.18+20231002-x86_64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_9_x86_64-pc-windows-msvc": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "02ea7bb64524886bd2b05d6b6be4401035e4ba4319146f274f0bcd992822cd75", - "patches": [], - "platform": "x86_64-pc-windows-msvc", - "python_version": "3.9.18", - "release_filename": "20231002/cpython-3.9.18+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.9.18+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_9_x86_64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "f3ff38b1ccae7dcebd8bbf2e533c9a984fac881de0ffd1636fbb61842bd924de", - "patches": [], - "platform": "x86_64-unknown-linux-gnu", - "python_version": "3.9.18", - "release_filename": "20231002/cpython-3.9.18+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.9.18+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_9_host": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "host_toolchain", - "attributes": { - "python_version": "3.9.18", - "user_repository_name": "python_3_9", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_9": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "toolchain_aliases", - "attributes": { - "python_version": "3.9.18", - "user_repository_name": "python_3_9", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_10_aarch64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "fd027b1dedf1ea034cdaa272e91771bdf75ddef4c8653b05d224a0645aa2ca3c", - "patches": [], - "platform": "aarch64-apple-darwin", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-aarch64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-aarch64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_aarch64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "8675915ff454ed2f1597e27794bc7df44f5933c26b94aa06af510fe91b58bb97", - "patches": [], - "platform": "aarch64-unknown-linux-gnu", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_ppc64le-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "f3f9c43eec1a0c3f72845d0b705da17a336d3906b7df212d2640b8f47e8ff375", - "patches": [], - "platform": "ppc64le-unknown-linux-gnu", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-ppc64le-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-ppc64le-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_s390x-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "859f6cfe9aedb6e8858892fdc124037e83ab05f28d42a7acd314c6a16d6bd66c", - "patches": [], - "platform": "s390x-unknown-linux-gnu", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-s390x-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-s390x-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_x86_64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "be0b19b6af1f7d8c667e5abef5505ad06cf72e5a11bb5844970c395a7e5b1275", - "patches": [], - "platform": "x86_64-apple-darwin", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-x86_64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-x86_64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_x86_64-pc-windows-msvc": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "b8d930ce0d04bda83037ad3653d7450f8907c88e24bb8255a29b8dab8930d6f1", - "patches": [], - "platform": "x86_64-pc-windows-msvc", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_x86_64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "5d0429c67c992da19ba3eb58b3acd0b35ec5e915b8cae9a4aa8ca565c423847a", - "patches": [], - "platform": "x86_64-unknown-linux-gnu", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_host": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "host_toolchain", - "attributes": { - "python_version": "3.10.13", - "user_repository_name": "python_3_10", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_10": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "toolchain_aliases", - "attributes": { - "python_version": "3.10.13", - "user_repository_name": "python_3_10", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_11_aarch64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "b042c966920cf8465385ca3522986b12d745151a72c060991088977ca36d3883", - "patches": [], - "platform": "aarch64-apple-darwin", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-aarch64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-aarch64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11_aarch64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "b102eaf865eb715aa98a8a2ef19037b6cc3ae7dfd4a632802650f29de635aa13", - "patches": [], - "platform": "aarch64-unknown-linux-gnu", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-aarch64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-aarch64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11_ppc64le-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "b44e1b74afe75c7b19143413632c4386708ae229117f8f950c2094e9681d34c7", - "patches": [], - "platform": "ppc64le-unknown-linux-gnu", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11_s390x-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "49520e3ff494708020f306e30b0964f079170be83e956be4504f850557378a22", - "patches": [], - "platform": "s390x-unknown-linux-gnu", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-s390x-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-s390x-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11_x86_64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "a0e615eef1fafdc742da0008425a9030b7ea68a4ae4e73ac557ef27b112836d4", - "patches": [], - "platform": "x86_64-apple-darwin", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11_x86_64-pc-windows-msvc": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "67077e6fa918e4f4fd60ba169820b00be7c390c497bf9bc9cab2c255ea8e6f3e", - "patches": [], - "platform": "x86_64-pc-windows-msvc", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11_x86_64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "4a51ce60007a6facf64e5495f4cf322e311ba9f39a8cd3f3e4c026eae488e140", - "patches": [], - "platform": "x86_64-unknown-linux-gnu", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11_host": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "host_toolchain", - "attributes": { - "python_version": "3.11.7", - "user_repository_name": "python_3_11", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_11": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "toolchain_aliases", - "attributes": { - "python_version": "3.11.7", - "user_repository_name": "python_3_11", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_12_aarch64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "f93f8375ca6ac0a35d58ff007043cbd3a88d9609113f1cb59cf7c8d215f064af", - "patches": [], - "platform": "aarch64-apple-darwin", - "python_version": "3.12.1", - "release_filename": "20240107/cpython-3.12.1+20240107-aarch64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.12.1+20240107-aarch64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_12_aarch64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "236533ef20e665007a111c2f36efb59c87ae195ad7dca223b6dc03fb07064f0b", - "patches": [], - "platform": "aarch64-unknown-linux-gnu", - "python_version": "3.12.1", - "release_filename": "20240107/cpython-3.12.1+20240107-aarch64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.12.1+20240107-aarch64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_12_ppc64le-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "78051f0d1411ee62bc2af5edfccf6e8400ac4ef82887a2affc19a7ace6a05267", - "patches": [], - "platform": "ppc64le-unknown-linux-gnu", - "python_version": "3.12.1", - "release_filename": "20240107/cpython-3.12.1+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.12.1+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_12_s390x-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "60631211c701f8d2c56e5dd7b154e68868128a019b9db1d53a264f56c0d4aee2", - "patches": [], - "platform": "s390x-unknown-linux-gnu", - "python_version": "3.12.1", - "release_filename": "20240107/cpython-3.12.1+20240107-s390x-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.12.1+20240107-s390x-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_12_x86_64-apple-darwin": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "eca96158c1568dedd9a0b3425375637a83764d1fa74446438293089a8bfac1f8", - "patches": [], - "platform": "x86_64-apple-darwin", - "python_version": "3.12.1", - "release_filename": "20240107/cpython-3.12.1+20240107-x86_64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.12.1+20240107-x86_64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_12_x86_64-pc-windows-msvc": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "fd5a9e0f41959d0341246d3643f2b8794f638adc0cec8dd5e1b6465198eae08a", - "patches": [], - "platform": "x86_64-pc-windows-msvc", - "python_version": "3.12.1", - "release_filename": "20240107/cpython-3.12.1+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.12.1+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_12_x86_64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "sha256": "74e330b8212ca22fd4d9a2003b9eec14892155566738febc8e5e572f267b9472", - "patches": [], - "platform": "x86_64-unknown-linux-gnu", - "python_version": "3.12.1", - "release_filename": "20240107/cpython-3.12.1+20240107-x86_64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.12.1+20240107-x86_64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_12_host": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "host_toolchain", - "attributes": { - "python_version": "3.12.1", - "user_repository_name": "python_3_12", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_12": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "toolchain_aliases", - "attributes": { - "python_version": "3.12.1", - "user_repository_name": "python_3_12", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "pythons_hub": { - "bzlFile": "@@rules_python~//python/private/bzlmod:pythons_hub.bzl", - "ruleClassName": "hub_repo", - "attributes": { - "default_python_version": "3.11", - "toolchain_prefixes": [ - "_0000_python_3_8_", - "_0001_python_3_9_", - "_0002_python_3_10_", - "_0003_python_3_12_", - "_0004_python_3_11_" - ], - "toolchain_python_versions": [ - "3.8", - "3.9", - "3.10", - "3.12", - "3.11" - ], - "toolchain_set_python_version_constraints": [ - "True", - "True", - "True", - "True", - "False" - ], - "toolchain_user_repository_names": [ - "python_3_8", - "python_3_9", - "python_3_10", - "python_3_12", - "python_3_11" - ] - } - }, - "python_versions": { - "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", - "ruleClassName": "multi_toolchain_aliases", - "attributes": { - "python_versions": { - "3.8": "python_3_8", - "3.9": "python_3_9", - "3.10": "python_3_10", - "3.11": "python_3_11", - "3.12": "python_3_12" - } - } - } - }, - "recordedRepoMappingEntries": [ - [ - "rules_python~", - "bazel_skylib", - "bazel_skylib~" - ], - [ - "rules_python~", - "bazel_tools", - "bazel_tools" - ] + } + }, + "facts": { + "@@rules_go+//go:extensions.bzl%go_sdk": { + "1.23.12": { + "aix_ppc64": [ + "go1.23.12.aix-ppc64.tar.gz", + "06a0d2885778ebaa7b25cf56d851f59e58488837c4e2a7eef970862253166301" + ], + "darwin_amd64": [ + "go1.23.12.darwin-amd64.tar.gz", + "0f6efdc3ffc6f03b230016acca0aef43c229de022d0ff401e7aa4ad4862eca8e" + ], + "darwin_arm64": [ + "go1.23.12.darwin-arm64.tar.gz", + "5bfa117e401ae64e7ffb960243c448b535fe007e682a13ff6c7371f4a6f0ccaa" + ], + "dragonfly_amd64": [ + "go1.23.12.dragonfly-amd64.tar.gz", + "6492fe23109886c05fc699cc781335de82951955d2915c79389d49ecf0175d48" + ], + "freebsd_386": [ + "go1.23.12.freebsd-386.tar.gz", + "e7f933268ef3e730b1a24fffdb2698b07bba20bebaf818b7143cffdc546190e8" + ], + "freebsd_amd64": [ + "go1.23.12.freebsd-amd64.tar.gz", + "c9d7029ae11a6680fba97ac63defa3d0d00220728d6c41186b2517da4b3cd0ea" + ], + "freebsd_arm": [ + "go1.23.12.freebsd-arm.tar.gz", + "1361b7ad1d608216d159fc1e2f488ae26032093e6e2517539368d02d8ea81111" + ], + "freebsd_arm64": [ + "go1.23.12.freebsd-arm64.tar.gz", + "e06eaa4d8547f94c26b195dbb89d2a5c0875b8bb0499dd738a34951303f8fd43" + ], + "freebsd_riscv64": [ + "go1.23.12.freebsd-riscv64.tar.gz", + "2c8f77038019cb9001383bcf92ce646f24ff1ea9e8d2fd62202400177cc5a484" + ], + "illumos_amd64": [ + "go1.23.12.illumos-amd64.tar.gz", + "19478b228c99d7cc307d9d581b30e83d50455b83d59b2f2444c4500fa57942c1" + ], + "linux_386": [ + "go1.23.12.linux-386.tar.gz", + "3b2fd446e26642555d1446a38ccbefb2a30bba3179d3ef132ed64d3c63b0c42a" + ], + "linux_amd64": [ + "go1.23.12.linux-amd64.tar.gz", + "d3847fef834e9db11bf64e3fb34db9c04db14e068eeb064f49af747010454f90" + ], + "linux_arm64": [ + "go1.23.12.linux-arm64.tar.gz", + "52ce172f96e21da53b1ae9079808560d49b02ac86cecfa457217597f9bc28ab3" + ], + "linux_armv6l": [ + "go1.23.12.linux-armv6l.tar.gz", + "9704eba01401a3793f54fac162164b9c5d8cc6f3cab5cee72684bb72294d9f41" + ], + "linux_loong64": [ + "go1.23.12.linux-loong64.tar.gz", + "5261b3e2f913d2718c5e8b848323e1b62d89131b4f875fcafa1d25c55608e7c3" + ], + "linux_mips": [ + "go1.23.12.linux-mips.tar.gz", + "060947068c9db56e197f9bdda1702f4a627410b6bd0ff5115ea8e1bac218a0cf" + ], + "linux_mips64": [ + "go1.23.12.linux-mips64.tar.gz", + "502dbc8081f05c4d109295bd597a7df0837c09edd22cd97dbca065243cda2e41" + ], + "linux_mips64le": [ + "go1.23.12.linux-mips64le.tar.gz", + "d686184c7b374d1a5048aef5dc26b7b6061e532f402361f300e809e00da2e76a" + ], + "linux_mipsle": [ + "go1.23.12.linux-mipsle.tar.gz", + "f06029f535ac41f024b6318d86c5c9a88b3460f2f9ab4ed04a6fa3df36e202fa" + ], + "linux_ppc64": [ + "go1.23.12.linux-ppc64.tar.gz", + "675bc262957c8d45493dc0c19d9165bb4003aaab1b4c8999a60899d26f433bd7" + ], + "linux_ppc64le": [ + "go1.23.12.linux-ppc64le.tar.gz", + "1a7cc5f7baeaf39125dce5d660a39438e7f0e04d13d3498590d240aae976b565" + ], + "linux_riscv64": [ + "go1.23.12.linux-riscv64.tar.gz", + "5798eda8c167dd620feb54e1bcca1b4cc014a529821d8c01f31d7e17a43cb8ed" + ], + "linux_s390x": [ + "go1.23.12.linux-s390x.tar.gz", + "2f43708aa0922d692da0a1fc775475c343907610bec77002de1bbe37601ea338" + ], + "netbsd_386": [ + "go1.23.12.netbsd-386.tar.gz", + "29cc7f60a238c1befd1cccca19946ecb39fd8236dbc9bc66bc364782b07f336f" + ], + "netbsd_amd64": [ + "go1.23.12.netbsd-amd64.tar.gz", + "8ffc136b2f28223ff0f7a695f62a8829d89a44c1e913ec08773f00f6e3560c0a" + ], + "netbsd_arm": [ + "go1.23.12.netbsd-arm.tar.gz", + "dd51a09192e83416bafd43f817f95f9c894723a665af800c04d7540eb6fcb9aa" + ], + "netbsd_arm64": [ + "go1.23.12.netbsd-arm64.tar.gz", + "3bce84af0eebfbab721c97ae615b51ca7515a8c1a712dab4bac6086ab489d79c" + ], + "openbsd_386": [ + "go1.23.12.openbsd-386.tar.gz", + "0adced642f95f21b514024ebd3f32e75cb6c3e32adb00ae36c2f190af2253463" + ], + "openbsd_amd64": [ + "go1.23.12.openbsd-amd64.tar.gz", + "3c426ed20ac99caf00c2386305445e0168773b35481405fbede849a294b81b2c" + ], + "openbsd_arm": [ + "go1.23.12.openbsd-arm.tar.gz", + "52ba8915d8f96fd8e68e1e9297276f681525d3692dc59d3963375fd97b1fee5e" + ], + "openbsd_arm64": [ + "go1.23.12.openbsd-arm64.tar.gz", + "cc0fa225e71dc82743d3d3ad4498292e06bf954f67ae51c5556980ed2aaa01b3" + ], + "openbsd_ppc64": [ + "go1.23.12.openbsd-ppc64.tar.gz", + "319cbab901ab98048c3bea3dc71fdcfd0267b226f393f71df9dcf62f4a8b73c7" + ], + "openbsd_riscv64": [ + "go1.23.12.openbsd-riscv64.tar.gz", + "cce3074760dad73d1bc76ec2ba15bd03ba0d619a467126274e1dabbe2289a38c" + ], + "plan9_386": [ + "go1.23.12.plan9-386.tar.gz", + "0869d54fc1b22e19e2f8b0b200bc4c46afe5e0d5d66f589f2314adbd42b74840" + ], + "plan9_amd64": [ + "go1.23.12.plan9-amd64.tar.gz", + "8b2ee04b5dcda87c420acbf6d21808bacecfe01b1ad66260b195d120ce0a63bb" + ], + "plan9_arm": [ + "go1.23.12.plan9-arm.tar.gz", + "f2d5a740bbbac8aeb5e5ab5633c43c3bcf854b0e239bf63895d96b4e76225c6a" + ], + "solaris_amd64": [ + "go1.23.12.solaris-amd64.tar.gz", + "dfaa93b66d7b07d102499a2912293bba94959785fa1a9d34dc79a99f44d02a27" + ], + "windows_386": [ + "go1.23.12.windows-386.zip", + "9be6415e04270cdd35761f97bcab6506feb421715dc6453dd1322c8e7bcde67a" + ], + "windows_amd64": [ + "go1.23.12.windows-amd64.zip", + "07c35866cdd864b81bb6f1cfbf25ac7f87ddc3a976ede1bf5112acbb12dfe6dc" + ], + "windows_arm": [ + "go1.23.12.windows-arm.zip", + "69866907e4f80368d21a3be3e6733a3f60b14934df29f571a8d9a9ab58cf6d65" + ], + "windows_arm64": [ + "go1.23.12.windows-arm64.zip", + "22a5da4989e57ee4b0fb106429ffadc3bc2357b268885720025be5b0877d6fe9" ] - } - }, - "@@rules_python~//python/private/bzlmod:internal_deps.bzl%internal_deps": { - "general": { - "bzlTransitiveDigest": "7yogJIhmw7i9Wq/n9sQB8N0F84220dJbw64SjOwrmQk=", - "usagesDigest": "r7vtlnQfWxEwrL+QFXux06yzeWEkq/hrcwAssoCoSLY=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "rules_python_internal": { - "bzlFile": "@@rules_python~//python/private:internal_config_repo.bzl", - "ruleClassName": "internal_config_repo", - "attributes": {} - }, - "pypi__build": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/58/91/17b00d5fac63d3dca605f1b8269ba3c65e98059e1fd99d00283e42a454f0/build-0.10.0-py3-none-any.whl", - "sha256": "af266720050a66c893a6096a2f410989eeac74ff9a68ba194b3f6473e8e26171", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__click": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl", - "sha256": "ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__colorama": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", - "sha256": "4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__importlib_metadata": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/cc/37/db7ba97e676af155f5fcb1a35466f446eadc9104e25b83366e8088c9c926/importlib_metadata-6.8.0-py3-none-any.whl", - "sha256": "3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__installer": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/e5/ca/1172b6638d52f2d6caa2dd262ec4c811ba59eee96d54a7701930726bce18/installer-0.7.0-py3-none-any.whl", - "sha256": "05d1933f0a5ba7d8d6296bb6d5018e7c94fa473ceb10cf198a92ccea19c27b53", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__more_itertools": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/5a/cb/6dce742ea14e47d6f565589e859ad225f2a5de576d7696e0623b784e226b/more_itertools-10.1.0-py3-none-any.whl", - "sha256": "64e0735fcfdc6f3464ea133afe8ea4483b1c5fe3a3d69852e6503b43a0b222e6", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__packaging": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/ab/c3/57f0601a2d4fe15de7a553c00adbc901425661bf048f2a22dfc500caf121/packaging-23.1-py3-none-any.whl", - "sha256": "994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__pep517": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/ee/2f/ef63e64e9429111e73d3d6cbee80591672d16f2725e648ebc52096f3d323/pep517-0.13.0-py3-none-any.whl", - "sha256": "4ba4446d80aed5b5eac6509ade100bff3e7943a8489de249654a5ae9b33ee35b", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__pip": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/50/c2/e06851e8cc28dcad7c155f4753da8833ac06a5c704c109313b8d5a62968a/pip-23.2.1-py3-none-any.whl", - "sha256": "7ccf472345f20d35bdc9d1841ff5f313260c2c33fe417f48c30ac46cccabf5be", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__pip_tools": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/e8/df/47e6267c6b5cdae867adbdd84b437393e6202ce4322de0a5e0b92960e1d6/pip_tools-7.3.0-py3-none-any.whl", - "sha256": "8717693288720a8c6ebd07149c93ab0be1fced0b5191df9e9decd3263e20d85e", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__pyproject_hooks": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/d5/ea/9ae603de7fbb3df820b23a70f6aff92bf8c7770043254ad8d2dc9d6bcba4/pyproject_hooks-1.0.0-py3-none-any.whl", - "sha256": "283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__setuptools": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/4f/ab/0bcfebdfc3bfa8554b2b2c97a555569c4c1ebc74ea288741ea8326c51906/setuptools-68.1.2-py3-none-any.whl", - "sha256": "3d8083eed2d13afc9426f227b24fd1659489ec107c0e86cec2ffdde5c92e790b", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__tomli": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl", - "sha256": "939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__wheel": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/b8/8b/31273bf66016be6ad22bb7345c37ff350276cfd46e389a0c2ac5da9d9073/wheel-0.41.2-py3-none-any.whl", - "sha256": "75909db2664838d015e3d9139004ee16711748a52c8f336b52882266540215d8", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - }, - "pypi__zipp": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "url": "https://files.pythonhosted.org/packages/8c/08/d3006317aefe25ea79d3b76c9650afabaf6d63d1c8443b236e7405447503/zipp-3.16.2-py3-none-any.whl", - "sha256": "679e51dd4403591b2d6838a48de3d283f3d188412a9782faadf845f298736ba0", - "type": "zip", - "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" - } - } - }, - "recordedRepoMappingEntries": [ - [ - "rules_python~", - "bazel_tools", - "bazel_tools" - ] + }, + "1.25.0": { + "aix_ppc64": [ + "go1.25.0.aix-ppc64.tar.gz", + "e5234a7dac67bc86c528fe9752fc9d63557918627707a733ab4cac1a6faed2d4" + ], + "darwin_amd64": [ + "go1.25.0.darwin-amd64.tar.gz", + "5bd60e823037062c2307c71e8111809865116714d6f6b410597cf5075dfd80ef" + ], + "darwin_arm64": [ + "go1.25.0.darwin-arm64.tar.gz", + "544932844156d8172f7a28f77f2ac9c15a23046698b6243f633b0a0b00c0749c" + ], + "dragonfly_amd64": [ + "go1.25.0.dragonfly-amd64.tar.gz", + "5ed3cf9a810a1483822538674f1336c06b51aa1b94d6d545a1a0319a48177120" + ], + "freebsd_386": [ + "go1.25.0.freebsd-386.tar.gz", + "abea5d5c6697e6b5c224731f2158fe87c602996a2a233ac0c4730cd57bf8374e" + ], + "freebsd_amd64": [ + "go1.25.0.freebsd-amd64.tar.gz", + "86e6fe0a29698d7601c4442052dac48bd58d532c51cccb8f1917df648138730b" + ], + "freebsd_arm": [ + "go1.25.0.freebsd-arm.tar.gz", + "d90b78e41921f72f30e8bbc81d9dec2cff7ff384a33d8d8debb24053e4336bfe" + ], + "freebsd_arm64": [ + "go1.25.0.freebsd-arm64.tar.gz", + "451d0da1affd886bfb291b7c63a6018527b269505db21ce6e14724f22ab0662e" + ], + "freebsd_riscv64": [ + "go1.25.0.freebsd-riscv64.tar.gz", + "7b565f76bd8bda46549eeaaefe0e53b251e644c230577290c0f66b1ecdb3cdbe" + ], + "illumos_amd64": [ + "go1.25.0.illumos-amd64.tar.gz", + "b1e1fdaab1ad25aa1c08d7a36c97d45d74b98b89c3f78c6d2145f77face54a2c" + ], + "linux_386": [ + "go1.25.0.linux-386.tar.gz", + "8c602dd9d99bc9453b3995d20ce4baf382cc50855900a0ece5de9929df4a993a" + ], + "linux_amd64": [ + "go1.25.0.linux-amd64.tar.gz", + "2852af0cb20a13139b3448992e69b868e50ed0f8a1e5940ee1de9e19a123b613" + ], + "linux_arm64": [ + "go1.25.0.linux-arm64.tar.gz", + "05de75d6994a2783699815ee553bd5a9327d8b79991de36e38b66862782f54ae" + ], + "linux_armv6l": [ + "go1.25.0.linux-armv6l.tar.gz", + "a5a8f8198fcf00e1e485b8ecef9ee020778bf32a408a4e8873371bfce458cd09" + ], + "linux_loong64": [ + "go1.25.0.linux-loong64.tar.gz", + "cab86b1cf761b1cb3bac86a8877cfc92e7b036fc0d3084123d77013d61432afc" + ], + "linux_mips": [ + "go1.25.0.linux-mips.tar.gz", + "d66b6fb74c3d91b9829dc95ec10ca1f047ef5e89332152f92e136cf0e2da5be1" + ], + "linux_mips64": [ + "go1.25.0.linux-mips64.tar.gz", + "4082e4381a8661bc2a839ff94ba3daf4f6cde20f8fb771b5b3d4762dc84198a2" + ], + "linux_mips64le": [ + "go1.25.0.linux-mips64le.tar.gz", + "70002c299ec7f7175ac2ef673b1b347eecfa54ae11f34416a6053c17f855afcc" + ], + "linux_mipsle": [ + "go1.25.0.linux-mipsle.tar.gz", + "b00a3a39eff099f6df9f1c7355bf28e4589d0586f42d7d4a394efb763d145a73" + ], + "linux_ppc64": [ + "go1.25.0.linux-ppc64.tar.gz", + "df166f33bd98160662560a72ff0b4ba731f969a80f088922bddcf566a88c1ec1" + ], + "linux_ppc64le": [ + "go1.25.0.linux-ppc64le.tar.gz", + "0f18a89e7576cf2c5fa0b487a1635d9bcbf843df5f110e9982c64df52a983ad0" + ], + "linux_riscv64": [ + "go1.25.0.linux-riscv64.tar.gz", + "c018ff74a2c48d55c8ca9b07c8e24163558ffec8bea08b326d6336905d956b67" + ], + "linux_s390x": [ + "go1.25.0.linux-s390x.tar.gz", + "34e5a2e19f2292fbaf8783e3a241e6e49689276aef6510a8060ea5ef54eee408" + ], + "netbsd_386": [ + "go1.25.0.netbsd-386.tar.gz", + "f8586cdb7aa855657609a5c5f6dbf523efa00c2bbd7c76d3936bec80aa6c0aba" + ], + "netbsd_amd64": [ + "go1.25.0.netbsd-amd64.tar.gz", + "ae8dc1469385b86a157a423bb56304ba45730de8a897615874f57dd096db2c2a" + ], + "netbsd_arm": [ + "go1.25.0.netbsd-arm.tar.gz", + "1ff7e4cc764425fc9dd6825eaee79d02b3c7cafffbb3691687c8d672ade76cb7" + ], + "netbsd_arm64": [ + "go1.25.0.netbsd-arm64.tar.gz", + "e1b310739f26724216aa6d7d7208c4031f9ff54c9b5b9a796ddc8bebcb4a5f16" + ], + "openbsd_386": [ + "go1.25.0.openbsd-386.tar.gz", + "4802a9b20e533da91adb84aab42e94aa56cfe3e5475d0550bed3385b182e69d8" + ], + "openbsd_amd64": [ + "go1.25.0.openbsd-amd64.tar.gz", + "c016cd984bebe317b19a4f297c4f50def120dc9788490540c89f28e42f1dabe1" + ], + "openbsd_arm": [ + "go1.25.0.openbsd-arm.tar.gz", + "a1e31d0bf22172ddde42edf5ec811ef81be43433df0948ece52fecb247ccfd8d" + ], + "openbsd_arm64": [ + "go1.25.0.openbsd-arm64.tar.gz", + "343ea8edd8c218196e15a859c6072d0dd3246fbbb168481ab665eb4c4140458d" + ], + "openbsd_ppc64": [ + "go1.25.0.openbsd-ppc64.tar.gz", + "694c14da1bcaeb5e3332d49bdc2b6d155067648f8fe1540c5de8f3cf8e157154" + ], + "openbsd_riscv64": [ + "go1.25.0.openbsd-riscv64.tar.gz", + "aa510ad25cf54c06cd9c70b6d80ded69cb20188ac6e1735655eef29ff7e7885f" + ], + "plan9_386": [ + "go1.25.0.plan9-386.tar.gz", + "46f8cef02086cf04bf186c5912776b56535178d4cb319cd19c9fdbdd29231986" + ], + "plan9_amd64": [ + "go1.25.0.plan9-amd64.tar.gz", + "29b34391d84095e44608a228f63f2f88113a37b74a79781353ec043dfbcb427b" + ], + "plan9_arm": [ + "go1.25.0.plan9-arm.tar.gz", + "0a047107d13ebe7943aaa6d54b1d7bbd2e45e68ce449b52915a818da715799c2" + ], + "solaris_amd64": [ + "go1.25.0.solaris-amd64.tar.gz", + "9977f9e4351984364a3b2b78f8b88bfd1d339812356d5237678514594b7d3611" + ], + "windows_386": [ + "go1.25.0.windows-386.zip", + "df9f39db82a803af0db639e3613a36681ab7a42866b1384b3f3a1045663961a7" + ], + "windows_amd64": [ + "go1.25.0.windows-amd64.zip", + "89efb4f9b30812eee083cc1770fdd2913c14d301064f6454851428f9707d190b" + ], + "windows_arm64": [ + "go1.25.0.windows-arm64.zip", + "27bab004c72b3d7bd05a69b6ec0fc54a309b4b78cc569dd963d8b3ec28bfdb8c" ] } } diff --git a/Makefile b/Makefile index cc20aa32b..3d4178711 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ generate.stdlib: tidy: go mod tidy - bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=bazel/deps.bzl%jsonnet_go_dependencies + bazel run //:gazelle -- update .PHONY: tidy gazelle: diff --git a/README.md b/README.md index 51d6b33e7..38d5eeff5 100644 --- a/README.md +++ b/README.md @@ -226,12 +226,7 @@ The above command creates the _astgen/stdast.go_ file which puts the desugared s ## Keeping the Bazel files up to date Note that we maintain the Go-related Bazel targets with [the Gazelle tool](https://github.com/bazelbuild/bazel-gazelle). The Go module (_go.mod_ in the root directory) remains the primary source of truth. Gazelle analyzes both that file and the rest of the Go files in the repository to create and adjust appropriate Bazel targets for building Go packages and executable programs. -After changing any dependencies within the files covered by this Go module, it is helpful to run _go mod tidy_ to ensure that the module declarations match the state of the Go source code. In order to synchronize the Bazel rules with material changes to the Go module, run the following command to invoke [Gazelle's `update-repos` command](https://github.com/bazelbuild/bazel-gazelle#update-repos): -```bash -bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=bazel/deps.bzl%jsonnet_go_dependencies -``` - -Similarly, after adding or removing Go source files, it may be necessary to synchronize the Bazel rules by running the following command: +After changing any dependencies within the files covered by this Go module, it is helpful to run _go mod tidy_ to ensure that the module declarations match the state of the Go source code. In order to synchronize the Bazel rules with material changes to the Go module, run the gazelle command: ```bash bazel run //:gazelle ``` diff --git a/WORKSPACE b/WORKSPACE deleted file mode 100644 index f9adaeb84..000000000 --- a/WORKSPACE +++ /dev/null @@ -1,17 +0,0 @@ -workspace(name = "google_jsonnet_go") - -load( - "@google_jsonnet_go//bazel:repositories.bzl", - "jsonnet_go_repositories", -) - -jsonnet_go_repositories() - -load( - "@google_jsonnet_go//bazel:deps.bzl", - "jsonnet_go_dependencies", -) - -jsonnet_go_dependencies() - -#gazelle:repository_macro bazel/deps.bzl%jsonnet_go_dependencies diff --git a/bazel/BUILD.bazel b/bazel/BUILD.bazel deleted file mode 100644 index e69de29bb..000000000 diff --git a/bazel/deps.bzl b/bazel/deps.bzl deleted file mode 100644 index b5bfd10f3..000000000 --- a/bazel/deps.bzl +++ /dev/null @@ -1,138 +0,0 @@ -load( - "@bazel_gazelle//:deps.bzl", - "gazelle_dependencies", - "go_repository", -) -load( - "@io_bazel_rules_go//go:deps.bzl", - "go_register_toolchains", - "go_rules_dependencies", -) - -def jsonnet_go_dependencies(go_sdk_version = "host"): - gazelle_dependencies() - go_register_toolchains(version = go_sdk_version) - go_repository( - name = "com_github_davecgh_go_spew", - importpath = "github.com/davecgh/go-spew", - sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=", - version = "v1.1.1", - ) - go_repository( - name = "com_github_fatih_color", - build_external = "external", - importpath = "github.com/fatih/color", - sum = "h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=", - version = "v1.18.0", - ) - go_repository( - name = "com_github_google_go_cmp", - importpath = "github.com/google/go-cmp", - sum = "h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=", - version = "v0.5.9", - ) - go_repository( - name = "com_github_kr_pretty", - importpath = "github.com/kr/pretty", - sum = "h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_kr_pty", - importpath = "github.com/kr/pty", - sum = "h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=", - version = "v1.1.1", - ) - go_repository( - name = "com_github_kr_text", - importpath = "github.com/kr/text", - sum = "h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_mattn_go_colorable", - build_external = "external", - importpath = "github.com/mattn/go-colorable", - sum = "h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=", - version = "v0.1.13", - ) - go_repository( - name = "com_github_mattn_go_isatty", - build_external = "external", - importpath = "github.com/mattn/go-isatty", - sum = "h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=", - version = "v0.0.20", - ) - go_repository( - name = "com_github_pmezard_go_difflib", - importpath = "github.com/pmezard/go-difflib", - sum = "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=", - version = "v1.0.0", - ) - go_repository( - name = "com_github_sergi_go_diff", - importpath = "github.com/sergi/go-diff", - sum = "h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=", - version = "v1.3.1", - ) - go_repository( - name = "com_github_stretchr_objx", - importpath = "github.com/stretchr/objx", - sum = "h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_stretchr_testify", - importpath = "github.com/stretchr/testify", - sum = "h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=", - version = "v1.4.0", - ) - go_repository( - name = "in_gopkg_check_v1", - importpath = "gopkg.in/check.v1", - sum = "h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=", - version = "v1.0.0-20190902080502-41f04d3bba15", - ) - go_repository( - name = "in_gopkg_yaml_v2", - importpath = "gopkg.in/yaml.v2", - sum = "h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=", - version = "v2.4.0", - ) - go_repository( - name = "io_k8s_sigs_yaml", - importpath = "sigs.k8s.io/yaml", - sum = "h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=", - version = "v1.4.0", - ) - go_repository( - name = "org_golang_x_crypto", - importpath = "golang.org/x/crypto", - sum = "h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=", - version = "v0.36.0", - ) - go_repository( - name = "org_golang_x_net", - importpath = "golang.org/x/net", - sum = "h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=", - version = "v0.21.0", - ) - go_repository( - name = "org_golang_x_sys", - importpath = "golang.org/x/sys", - sum = "h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=", - version = "v0.31.0", - ) - go_repository( - name = "org_golang_x_term", - importpath = "golang.org/x/term", - sum = "h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y=", - version = "v0.30.0", - ) - go_repository( - name = "org_golang_x_text", - importpath = "golang.org/x/text", - sum = "h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=", - version = "v0.23.0", - ) - go_rules_dependencies() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl deleted file mode 100644 index 6e7e491ea..000000000 --- a/bazel/repositories.bzl +++ /dev/null @@ -1,46 +0,0 @@ -load( - "@bazel_tools//tools/build_defs/repo:http.bzl", - "http_archive", -) - -# NB: update_cpp_jsonnet.sh looks for these. -CPP_JSONNET_SHA256 = "bd0164015ad8f91fd1a879d46eef568aabea66f844ce5c264c375c89022aa1a1" -CPP_JSONNET_GITHASH = "3560b6d317b127dc901ad4674312bfd12d95a301" -CPP_JSONNET_RELEASE_VERSION = "" - -CPP_JSONNET_STRIP_PREFIX = ( - "jsonnet-" + ( - CPP_JSONNET_RELEASE_VERSION if CPP_JSONNET_RELEASE_VERSION else CPP_JSONNET_GITHASH - ) -) -CPP_JSONNET_URL = ( - "https://github.com/google/jsonnet/releases/download/%s/jsonnet-%s.tar.gz" % ( - CPP_JSONNET_RELEASE_VERSION, - CPP_JSONNET_RELEASE_VERSION, - ) if CPP_JSONNET_RELEASE_VERSION else "https://github.com/google/jsonnet/archive/%s.tar.gz" % CPP_JSONNET_GITHASH -) - -def jsonnet_go_repositories(): - http_archive( - name = "io_bazel_rules_go", - sha256 = "b78f77458e77162f45b4564d6b20b6f92f56431ed59eaaab09e7819d1d850313", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.53.0/rules_go-v0.53.0.zip", - "https://github.com/bazelbuild/rules_go/releases/download/v0.53.0/rules_go-v0.53.0.zip", - ], - ) - - http_archive( - name = "bazel_gazelle", - sha256 = "5d80e62a70314f39cc764c1c3eaa800c5936c9f1ea91625006227ce4d20cd086", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.42.0/bazel-gazelle-v0.42.0.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.42.0/bazel-gazelle-v0.42.0.tar.gz", - ], - ) - http_archive( - name = "cpp_jsonnet", - sha256 = CPP_JSONNET_SHA256, - strip_prefix = CPP_JSONNET_STRIP_PREFIX, - urls = [CPP_JSONNET_URL], - ) From 71c8de23c20df32ddd17ffe03a5dfa8183426130 Mon Sep 17 00:00:00 2001 From: John Bartholomew Date: Wed, 18 Feb 2026 22:24:53 +0000 Subject: [PATCH 2/4] chore: regenerate Bazel files, use go.mod to specify Go SDK version This brings things more into line with modern conventions for build target names, and means we have fewer sources of truth for the minimum Go version that's needed. --- BUILD.bazel | 42 ++++--- MODULE.bazel | 12 +- MODULE.bazel.lock | 166 +++++++++++++------------- ast/BUILD.bazel | 8 +- astgen/BUILD.bazel | 10 +- c-bindings/BUILD.bazel | 21 +--- cmd/BUILD.bazel | 0 cmd/dumpstdlibast/BUILD.bazel | 14 +-- cmd/internal/BUILD.bazel | 0 cmd/internal/cmd/BUILD.bazel | 10 +- cmd/jsonnet-deps/BUILD.bazel | 12 +- cmd/jsonnet-lint/BUILD.bazel | 14 +-- cmd/jsonnet/BUILD.bazel | 12 +- cmd/jsonnetfmt/BUILD.bazel | 14 +-- cmd/wasm/BUILD.bazel | 12 +- examples/bazel/BUILD.bazel | 2 +- examples/bazel/MODULE.bazel | 2 +- formatter/BUILD.bazel | 22 ++-- internal/dump/BUILD.bazel | 10 +- internal/errors/BUILD.bazel | 8 +- internal/formatter/BUILD.bazel | 12 +- internal/parser/BUILD.bazel | 14 +-- internal/pass/BUILD.bazel | 8 +- internal/program/BUILD.bazel | 16 +-- internal/testutils/BUILD.bazel | 6 +- linter/BUILD.bazel | 28 ++--- linter/internal/common/BUILD.bazel | 8 +- linter/internal/traversal/BUILD.bazel | 10 +- linter/internal/types/BUILD.bazel | 10 +- linter/internal/variables/BUILD.bazel | 10 +- toolutils/BUILD.bazel | 14 ++- 31 files changed, 265 insertions(+), 262 deletions(-) delete mode 100644 cmd/BUILD.bazel delete mode 100644 cmd/internal/BUILD.bazel diff --git a/BUILD.bazel b/BUILD.bazel index 1e3279403..1c2a63644 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,16 +1,20 @@ -load( - "@bazel_gazelle//:def.bzl", - "gazelle", -) -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@gazelle//:def.bzl", "gazelle") +load("@rules_go//go:def.bzl", "go_library", "go_test") # gazelle:prefix github.com/google/go-jsonnet gazelle( name = "gazelle", ) -go_library( +# keep: support old target name. +alias( name = "go_default_library", + actual = ":go-jsonnet", + visibility = ["//visibility:public"], +) + +go_library( + name = "go-jsonnet", srcs = [ "builtins.go", "debugger.go", @@ -28,19 +32,19 @@ go_library( importpath = "github.com/google/go-jsonnet", visibility = ["//visibility:public"], deps = [ - "//ast:go_default_library", - "//astgen:go_default_library", - "//internal/errors:go_default_library", - "//internal/parser:go_default_library", - "//internal/program:go_default_library", - "//toolutils:go_default_library", - "@io_k8s_sigs_yaml//:go_default_library", - "@org_golang_x_crypto//sha3:go_default_library", + "//ast", + "//astgen", + "//internal/errors", + "//internal/parser", + "//internal/program", + "//toolutils", + "@io_k8s_sigs_yaml//:yaml", + "@org_golang_x_crypto//sha3", ], ) go_test( - name = "go_default_test", + name = "go-jsonnet_test", srcs = [ "builtins_benchmark_test.go", "interpreter_test.go", @@ -48,10 +52,10 @@ go_test( "main_test.go", ], data = glob(["testdata/**"]), - embed = [":go_default_library"], + embed = [":go-jsonnet"], deps = [ - "//ast:go_default_library", - "//internal/parser:go_default_library", - "//internal/testutils:go_default_library", + "//ast", + "//internal/parser", + "//internal/testutils", ], ) diff --git a/MODULE.bazel b/MODULE.bazel index f25c7fc66..62fc47896 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -35,17 +35,17 @@ http_archive( urls = [CPP_JSONNET_URL], ) -bazel_dep(name = "gazelle", version = "0.47.0", repo_name = "bazel_gazelle") -bazel_dep(name = "rules_go", version = "0.59.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.47.0") +bazel_dep(name = "rules_go", version = "0.59.0") # rules_cc is needed, because we pull in cpp_jsonnet Bazel module to get the standard library. bazel_dep(name = "rules_cc", version = "0.2.14") -go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") -go_sdk.download(version = "1.23.12") +go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk") +go_sdk.from_file(go_mod = "//:go.mod") -go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") -go_deps.from_file(go_mod = "@jsonnet_go//:go.mod") +go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") use_repo( go_deps, "com_github_fatih_color", diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 6d8515db6..d4eeae0e2 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -229,170 +229,170 @@ }, "facts": { "@@rules_go+//go:extensions.bzl%go_sdk": { - "1.23.12": { + "1.23.7": { "aix_ppc64": [ - "go1.23.12.aix-ppc64.tar.gz", - "06a0d2885778ebaa7b25cf56d851f59e58488837c4e2a7eef970862253166301" + "go1.23.7.aix-ppc64.tar.gz", + "5934ade0f845e19e6ac50dd4a7cbc3f39f06cfa2d7137a4021e5113de9d66df8" ], "darwin_amd64": [ - "go1.23.12.darwin-amd64.tar.gz", - "0f6efdc3ffc6f03b230016acca0aef43c229de022d0ff401e7aa4ad4862eca8e" + "go1.23.7.darwin-amd64.tar.gz", + "3a3d6745286297cd011d2ab071998a85fe82714bf178dc3cd6ecd3d043a59270" ], "darwin_arm64": [ - "go1.23.12.darwin-arm64.tar.gz", - "5bfa117e401ae64e7ffb960243c448b535fe007e682a13ff6c7371f4a6f0ccaa" + "go1.23.7.darwin-arm64.tar.gz", + "a08a77374a4a8ab25568cddd9dad5ba7bb6d21e04c650dc2af3def6c9115ebba" ], "dragonfly_amd64": [ - "go1.23.12.dragonfly-amd64.tar.gz", - "6492fe23109886c05fc699cc781335de82951955d2915c79389d49ecf0175d48" + "go1.23.7.dragonfly-amd64.tar.gz", + "30c626981363513cb925706978a3a8cb3516cdeae619ed9a67d4a3fbed0b21e8" ], "freebsd_386": [ - "go1.23.12.freebsd-386.tar.gz", - "e7f933268ef3e730b1a24fffdb2698b07bba20bebaf818b7143cffdc546190e8" + "go1.23.7.freebsd-386.tar.gz", + "4bc9c3583236b13a9f1ec22c133fe4436714d56ebc0ee96733d4f6f0eb3c7ae1" ], "freebsd_amd64": [ - "go1.23.12.freebsd-amd64.tar.gz", - "c9d7029ae11a6680fba97ac63defa3d0d00220728d6c41186b2517da4b3cd0ea" + "go1.23.7.freebsd-amd64.tar.gz", + "c0e7a5ff1875eb79d7c2acfa1616718ad892c0b2637d56594fdc3332e313efd4" ], "freebsd_arm": [ - "go1.23.12.freebsd-arm.tar.gz", - "1361b7ad1d608216d159fc1e2f488ae26032093e6e2517539368d02d8ea81111" + "go1.23.7.freebsd-arm.tar.gz", + "311e69d052bb732bca74cb64cba2d7d648e9af7a5c5d0c5e84a11efb77d287d0" ], "freebsd_arm64": [ - "go1.23.12.freebsd-arm64.tar.gz", - "e06eaa4d8547f94c26b195dbb89d2a5c0875b8bb0499dd738a34951303f8fd43" + "go1.23.7.freebsd-arm64.tar.gz", + "2b51c940898fad6708609495b9a27b5869cf5195381fc4a31a013006aa4eb156" ], "freebsd_riscv64": [ - "go1.23.12.freebsd-riscv64.tar.gz", - "2c8f77038019cb9001383bcf92ce646f24ff1ea9e8d2fd62202400177cc5a484" + "go1.23.7.freebsd-riscv64.tar.gz", + "ab00bd1b61491be2d60ff41a88b3e59d812236484eaf6232513985a1287693ba" ], "illumos_amd64": [ - "go1.23.12.illumos-amd64.tar.gz", - "19478b228c99d7cc307d9d581b30e83d50455b83d59b2f2444c4500fa57942c1" + "go1.23.7.illumos-amd64.tar.gz", + "5ca64c74aa26b7e6bb6fd8609c5526511ddba21a0ec337b63a4f0352d04952b7" ], "linux_386": [ - "go1.23.12.linux-386.tar.gz", - "3b2fd446e26642555d1446a38ccbefb2a30bba3179d3ef132ed64d3c63b0c42a" + "go1.23.7.linux-386.tar.gz", + "9115f7d751efe5b17b63a7630d24cd0a2479976465eecb277b5deec8aa0f4143" ], "linux_amd64": [ - "go1.23.12.linux-amd64.tar.gz", - "d3847fef834e9db11bf64e3fb34db9c04db14e068eeb064f49af747010454f90" + "go1.23.7.linux-amd64.tar.gz", + "4741525e69841f2e22f9992af25df0c1112b07501f61f741c12c6389fcb119f3" ], "linux_arm64": [ - "go1.23.12.linux-arm64.tar.gz", - "52ce172f96e21da53b1ae9079808560d49b02ac86cecfa457217597f9bc28ab3" + "go1.23.7.linux-arm64.tar.gz", + "597acbd0505250d4d98c4c83adf201562a8c812cbcd7b341689a07087a87a541" ], "linux_armv6l": [ - "go1.23.12.linux-armv6l.tar.gz", - "9704eba01401a3793f54fac162164b9c5d8cc6f3cab5cee72684bb72294d9f41" + "go1.23.7.linux-armv6l.tar.gz", + "c9e9ecd6a8cf1429f1c65d81115c450258258ac65833d95a82d5f4e5ad7d2d7a" ], "linux_loong64": [ - "go1.23.12.linux-loong64.tar.gz", - "5261b3e2f913d2718c5e8b848323e1b62d89131b4f875fcafa1d25c55608e7c3" + "go1.23.7.linux-loong64.tar.gz", + "b9fb0ae7116cee77e88e1e2f54cca44343a71168b944768c48188cd1957fb3f8" ], "linux_mips": [ - "go1.23.12.linux-mips.tar.gz", - "060947068c9db56e197f9bdda1702f4a627410b6bd0ff5115ea8e1bac218a0cf" + "go1.23.7.linux-mips.tar.gz", + "27404833dc64673cacdd1470d77bf4235252ca5ca7a1fb47b465ff3b98cc31df" ], "linux_mips64": [ - "go1.23.12.linux-mips64.tar.gz", - "502dbc8081f05c4d109295bd597a7df0837c09edd22cd97dbca065243cda2e41" + "go1.23.7.linux-mips64.tar.gz", + "fd1b628f2491b8be86791ad63e2b61b17909b6e1b3ae37ddcd27b9a5faddcd87" ], "linux_mips64le": [ - "go1.23.12.linux-mips64le.tar.gz", - "d686184c7b374d1a5048aef5dc26b7b6061e532f402361f300e809e00da2e76a" + "go1.23.7.linux-mips64le.tar.gz", + "f1d91a01bfe537bef687e2ab11f0c67ae8948d1ab1662110edcbfd7fd1803d9c" ], "linux_mipsle": [ - "go1.23.12.linux-mipsle.tar.gz", - "f06029f535ac41f024b6318d86c5c9a88b3460f2f9ab4ed04a6fa3df36e202fa" + "go1.23.7.linux-mipsle.tar.gz", + "bdcaa3fddb09b53c42a8963fcbfb52a29feeaf34bdcec7d59e54eab0d16bfb12" ], "linux_ppc64": [ - "go1.23.12.linux-ppc64.tar.gz", - "675bc262957c8d45493dc0c19d9165bb4003aaab1b4c8999a60899d26f433bd7" + "go1.23.7.linux-ppc64.tar.gz", + "ce2226b5e0940116cf9c791aa912ce62b3baac8bf2aaf09a1cd1e1de33456fd3" ], "linux_ppc64le": [ - "go1.23.12.linux-ppc64le.tar.gz", - "1a7cc5f7baeaf39125dce5d660a39438e7f0e04d13d3498590d240aae976b565" + "go1.23.7.linux-ppc64le.tar.gz", + "3ffc310bfd11fd0bcc713a764a0f7252c4d52d03f12abebfaebaaae77e027028" ], "linux_riscv64": [ - "go1.23.12.linux-riscv64.tar.gz", - "5798eda8c167dd620feb54e1bcca1b4cc014a529821d8c01f31d7e17a43cb8ed" + "go1.23.7.linux-riscv64.tar.gz", + "6474c707a09633ebd3117eb9127de467fbc482932164f1d1b1084e3be40c36f7" ], "linux_s390x": [ - "go1.23.12.linux-s390x.tar.gz", - "2f43708aa0922d692da0a1fc775475c343907610bec77002de1bbe37601ea338" + "go1.23.7.linux-s390x.tar.gz", + "af1d4c5d01e32c2cf6e3cc00e44cb240e1a6cef539b28a64389b2b9ca284ac6c" ], "netbsd_386": [ - "go1.23.12.netbsd-386.tar.gz", - "29cc7f60a238c1befd1cccca19946ecb39fd8236dbc9bc66bc364782b07f336f" + "go1.23.7.netbsd-386.tar.gz", + "a8d2db89fc99fc2e2c01419dbc95ab9d2da139c750fee8d3f47df2bae2745fc5" ], "netbsd_amd64": [ - "go1.23.12.netbsd-amd64.tar.gz", - "8ffc136b2f28223ff0f7a695f62a8829d89a44c1e913ec08773f00f6e3560c0a" + "go1.23.7.netbsd-amd64.tar.gz", + "8769b0d546f1b102827f3f129aed8650cd2aedc79c886f819cdbe3a70d09ef62" ], "netbsd_arm": [ - "go1.23.12.netbsd-arm.tar.gz", - "dd51a09192e83416bafd43f817f95f9c894723a665af800c04d7540eb6fcb9aa" + "go1.23.7.netbsd-arm.tar.gz", + "9bad2e989c71a0cf8c1940519ead4b6792595e0286f7ec0ce0474098b5df9c71" ], "netbsd_arm64": [ - "go1.23.12.netbsd-arm64.tar.gz", - "3bce84af0eebfbab721c97ae615b51ca7515a8c1a712dab4bac6086ab489d79c" + "go1.23.7.netbsd-arm64.tar.gz", + "b9ceb39db2765b86b3dc11edcd16feebba08706a1fa9d0f16223bd0299e59a78" ], "openbsd_386": [ - "go1.23.12.openbsd-386.tar.gz", - "0adced642f95f21b514024ebd3f32e75cb6c3e32adb00ae36c2f190af2253463" + "go1.23.7.openbsd-386.tar.gz", + "1929e4eadaad4be8139bdf8ad0f28b38dc24ee57539d7bc3a0a5fd629cf6cddc" ], "openbsd_amd64": [ - "go1.23.12.openbsd-amd64.tar.gz", - "3c426ed20ac99caf00c2386305445e0168773b35481405fbede849a294b81b2c" + "go1.23.7.openbsd-amd64.tar.gz", + "d1c9e78bba09c215c83daf9040dfb0ac545d634bde1130cc11b3fe5bbec52a65" ], "openbsd_arm": [ - "go1.23.12.openbsd-arm.tar.gz", - "52ba8915d8f96fd8e68e1e9297276f681525d3692dc59d3963375fd97b1fee5e" + "go1.23.7.openbsd-arm.tar.gz", + "40c1b1b9b42329a0265e0b8023c1fd3515675741ed0a4ca15ee952751e24ba5b" ], "openbsd_arm64": [ - "go1.23.12.openbsd-arm64.tar.gz", - "cc0fa225e71dc82743d3d3ad4498292e06bf954f67ae51c5556980ed2aaa01b3" + "go1.23.7.openbsd-arm64.tar.gz", + "61cc713416cbe81b470626915ccccd32c78da71d1fe38b8d12c46cb61794dc6c" ], "openbsd_ppc64": [ - "go1.23.12.openbsd-ppc64.tar.gz", - "319cbab901ab98048c3bea3dc71fdcfd0267b226f393f71df9dcf62f4a8b73c7" + "go1.23.7.openbsd-ppc64.tar.gz", + "c2b5d038c0f21fd1e6513f7877c67d7ef4532193620bc54dc4d8233d0a1ecf25" ], "openbsd_riscv64": [ - "go1.23.12.openbsd-riscv64.tar.gz", - "cce3074760dad73d1bc76ec2ba15bd03ba0d619a467126274e1dabbe2289a38c" + "go1.23.7.openbsd-riscv64.tar.gz", + "db1b1b5b6b52e753b383688c4758e1dc90f9bf4e4a9809a995783a50b9eeccb2" ], "plan9_386": [ - "go1.23.12.plan9-386.tar.gz", - "0869d54fc1b22e19e2f8b0b200bc4c46afe5e0d5d66f589f2314adbd42b74840" + "go1.23.7.plan9-386.tar.gz", + "5b78458002528ae9f0ae4c7ffa148e6023e2cb23804c11a68e8116028d995f0c" ], "plan9_amd64": [ - "go1.23.12.plan9-amd64.tar.gz", - "8b2ee04b5dcda87c420acbf6d21808bacecfe01b1ad66260b195d120ce0a63bb" + "go1.23.7.plan9-amd64.tar.gz", + "2dba02734fc1a45c145f5d0c186d86c1f0da107b99b283be318706832b5cf46a" ], "plan9_arm": [ - "go1.23.12.plan9-arm.tar.gz", - "f2d5a740bbbac8aeb5e5ab5633c43c3bcf854b0e239bf63895d96b4e76225c6a" + "go1.23.7.plan9-arm.tar.gz", + "c2f22c9313c82059526b9ed24001c02ef307f8881bfd898fc3de0ef1774130eb" ], "solaris_amd64": [ - "go1.23.12.solaris-amd64.tar.gz", - "dfaa93b66d7b07d102499a2912293bba94959785fa1a9d34dc79a99f44d02a27" + "go1.23.7.solaris-amd64.tar.gz", + "d9cee150073a50f2e0f813d4873413fac3c50723762ffc0f35bed6828ead9f8a" ], "windows_386": [ - "go1.23.12.windows-386.zip", - "9be6415e04270cdd35761f97bcab6506feb421715dc6453dd1322c8e7bcde67a" + "go1.23.7.windows-386.zip", + "c8587eaf0257d475bae5dd1d51530466a5e507dfa932d4f551acc3003e8bc1a8" ], "windows_amd64": [ - "go1.23.12.windows-amd64.zip", - "07c35866cdd864b81bb6f1cfbf25ac7f87ddc3a976ede1bf5112acbb12dfe6dc" + "go1.23.7.windows-amd64.zip", + "eba0477381037868738b47b0198d120a535eb9a8a17b2babb9ab0d5e912a2171" ], "windows_arm": [ - "go1.23.12.windows-arm.zip", - "69866907e4f80368d21a3be3e6733a3f60b14934df29f571a8d9a9ab58cf6d65" + "go1.23.7.windows-arm.zip", + "a8ae7675af1bf82602b10627bc0b4063d7cacf067b28e34274c61a0cbfe38fa5" ], "windows_arm64": [ - "go1.23.12.windows-arm64.zip", - "22a5da4989e57ee4b0fb106429ffadc3bc2357b268885720025be5b0877d6fe9" + "go1.23.7.windows-arm64.zip", + "e828b5c526c40f3fa6f8aea2d402c0fcbf064009f2d0d12a15bb01241255af9a" ] }, "1.25.0": { diff --git a/ast/BUILD.bazel b/ast/BUILD.bazel index 19169e3b1..081530ec2 100644 --- a/ast/BUILD.bazel +++ b/ast/BUILD.bazel @@ -1,7 +1,7 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@rules_go//go:def.bzl", "go_library", "go_test") go_library( - name = "go_default_library", + name = "ast", srcs = [ "ast.go", "clone.go", @@ -14,7 +14,7 @@ go_library( ) go_test( - name = "go_default_test", + name = "ast_test", srcs = ["identifier_test.go"], - embed = [":go_default_library"], + embed = [":ast"], ) diff --git a/astgen/BUILD.bazel b/astgen/BUILD.bazel index 2d0a4b578..3d5e51350 100644 --- a/astgen/BUILD.bazel +++ b/astgen/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") genrule( name = "dumpstdlibast", @@ -9,11 +9,9 @@ genrule( ) go_library( - name = "go_default_library", + name = "astgen", srcs = ["stdast.go"], importpath = "github.com/google/go-jsonnet/astgen", - visibility = ["//visibility:public"], - deps = [ - "//ast:go_default_library", # keep - ], + visibility = ["//:__subpackages__"], + deps = ["//ast"], ) diff --git a/c-bindings/BUILD.bazel b/c-bindings/BUILD.bazel index e5b3240d1..d150730ef 100644 --- a/c-bindings/BUILD.bazel +++ b/c-bindings/BUILD.bazel @@ -1,16 +1,7 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") - -# If you run `go build` a header "libgojsonnet.h" will be autogenerated in -# this directory. Then it can be picked up by Gazelle and added to `srcs` here. -# When building with Bazel the file gets created elsewhere in Bazel's -# sandbox tree, so when using Bazel exclusively it won't cause any trouble. -# However, sooner or later someone is going to run Gazelle after using `go build` -# and then the file may slip in, so it's better to just exclude it explicitly, -# with the directive below: -# gazelle:exclude ./libgojsonnet.h +load("@rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "go_default_library", + name = "c-bindings_lib", srcs = [ "c-bindings.go", "handles.go", @@ -23,14 +14,14 @@ go_library( importpath = "github.com/google/go-jsonnet/c-bindings", visibility = ["//visibility:private"], deps = [ - "//:go_default_library", - "//ast:go_default_library", - "//formatter:go_default_library", + "//:go-jsonnet", + "//ast", + "//formatter", ], ) go_binary( name = "c-bindings", - embed = [":go_default_library"], + embed = [":c-bindings_lib"], visibility = ["//visibility:public"], ) diff --git a/cmd/BUILD.bazel b/cmd/BUILD.bazel deleted file mode 100644 index e69de29bb..000000000 diff --git a/cmd/dumpstdlibast/BUILD.bazel b/cmd/dumpstdlibast/BUILD.bazel index 53cc5529f..daf8446cc 100644 --- a/cmd/dumpstdlibast/BUILD.bazel +++ b/cmd/dumpstdlibast/BUILD.bazel @@ -1,19 +1,19 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") +load("@rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "go_default_library", + name = "dumpstdlibast_lib", srcs = ["dumpstdlibast.go"], importpath = "github.com/google/go-jsonnet/cmd/dumpstdlibast", visibility = ["//visibility:private"], deps = [ - "//ast:go_default_library", - "//internal/dump:go_default_library", - "//internal/program:go_default_library", + "//ast", + "//internal/dump", + "//internal/program", ], ) go_binary( name = "dumpstdlibast", - embed = [":go_default_library"], - visibility = ["//visibility:public"], + embed = [":dumpstdlibast_lib"], + visibility = ["//astgen:__subpackages__"], ) diff --git a/cmd/internal/BUILD.bazel b/cmd/internal/BUILD.bazel deleted file mode 100644 index e69de29bb..000000000 diff --git a/cmd/internal/cmd/BUILD.bazel b/cmd/internal/cmd/BUILD.bazel index b7a947864..b513df00c 100644 --- a/cmd/internal/cmd/BUILD.bazel +++ b/cmd/internal/cmd/BUILD.bazel @@ -1,14 +1,14 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@rules_go//go:def.bzl", "go_library", "go_test") go_library( - name = "go_default_library", + name = "cmd", srcs = ["utils.go"], importpath = "github.com/google/go-jsonnet/cmd/internal/cmd", - visibility = ["//visibility:public"], + visibility = ["//cmd:__subpackages__"], ) go_test( - name = "go_default_test", + name = "cmd_test", srcs = ["utils_test.go"], - embed = [":go_default_library"], + embed = [":cmd"], ) diff --git a/cmd/jsonnet-deps/BUILD.bazel b/cmd/jsonnet-deps/BUILD.bazel index cea63c132..ac49f1949 100644 --- a/cmd/jsonnet-deps/BUILD.bazel +++ b/cmd/jsonnet-deps/BUILD.bazel @@ -1,19 +1,19 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") +load("@rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "go_default_library", + name = "jsonnet-deps_lib", srcs = ["cmd.go"], importpath = "github.com/google/go-jsonnet/cmd/jsonnet-deps", visibility = ["//visibility:private"], deps = [ - "//:go_default_library", - "//cmd/internal/cmd:go_default_library", - "@com_github_fatih_color//:go_default_library", + "//:go-jsonnet", + "//cmd/internal/cmd", + "@com_github_fatih_color//:color", ], ) go_binary( name = "jsonnet-deps", - embed = [":go_default_library"], + embed = [":jsonnet-deps_lib"], visibility = ["//visibility:public"], ) diff --git a/cmd/jsonnet-lint/BUILD.bazel b/cmd/jsonnet-lint/BUILD.bazel index 17828654f..85cbdb750 100644 --- a/cmd/jsonnet-lint/BUILD.bazel +++ b/cmd/jsonnet-lint/BUILD.bazel @@ -1,20 +1,20 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") +load("@rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "go_default_library", + name = "jsonnet-lint_lib", srcs = ["cmd.go"], importpath = "github.com/google/go-jsonnet/cmd/jsonnet-lint", visibility = ["//visibility:private"], deps = [ - "//:go_default_library", - "//cmd/internal/cmd:go_default_library", - "//linter:go_default_library", - "@com_github_fatih_color//:go_default_library", + "//:go-jsonnet", + "//cmd/internal/cmd", + "//linter", + "@com_github_fatih_color//:color", ], ) go_binary( name = "jsonnet-lint", - embed = [":go_default_library"], + embed = [":jsonnet-lint_lib"], visibility = ["//visibility:public"], ) diff --git a/cmd/jsonnet/BUILD.bazel b/cmd/jsonnet/BUILD.bazel index 485a1431b..67831f3b5 100644 --- a/cmd/jsonnet/BUILD.bazel +++ b/cmd/jsonnet/BUILD.bazel @@ -1,19 +1,19 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") +load("@rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "go_default_library", + name = "jsonnet_lib", srcs = ["cmd.go"], importpath = "github.com/google/go-jsonnet/cmd/jsonnet", visibility = ["//visibility:private"], deps = [ - "//:go_default_library", - "//cmd/internal/cmd:go_default_library", - "@com_github_fatih_color//:go_default_library", + "//:go-jsonnet", + "//cmd/internal/cmd", + "@com_github_fatih_color//:color", ], ) go_binary( name = "jsonnet", - embed = [":go_default_library"], + embed = [":jsonnet_lib"], visibility = ["//visibility:public"], ) diff --git a/cmd/jsonnetfmt/BUILD.bazel b/cmd/jsonnetfmt/BUILD.bazel index f80d23dd8..93c5d3cbf 100644 --- a/cmd/jsonnetfmt/BUILD.bazel +++ b/cmd/jsonnetfmt/BUILD.bazel @@ -1,20 +1,20 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") +load("@rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "go_default_library", + name = "jsonnetfmt_lib", srcs = ["cmd.go"], importpath = "github.com/google/go-jsonnet/cmd/jsonnetfmt", visibility = ["//visibility:private"], deps = [ - "//:go_default_library", - "//cmd/internal/cmd:go_default_library", - "//internal/formatter:go_default_library", - "@com_github_fatih_color//:go_default_library", + "//:go-jsonnet", + "//cmd/internal/cmd", + "//internal/formatter", + "@com_github_fatih_color//:color", ], ) go_binary( name = "jsonnetfmt", - embed = [":go_default_library"], + embed = [":jsonnetfmt_lib"], visibility = ["//visibility:public"], ) diff --git a/cmd/wasm/BUILD.bazel b/cmd/wasm/BUILD.bazel index d05405ba4..ce2432887 100644 --- a/cmd/wasm/BUILD.bazel +++ b/cmd/wasm/BUILD.bazel @@ -1,14 +1,14 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") +load("@rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "go_default_library", + name = "wasm_lib", srcs = ["main.go"], importpath = "github.com/google/go-jsonnet/cmd/wasm", visibility = ["//visibility:private"], deps = select({ - "@io_bazel_rules_go//go/platform:js_wasm": [ - "//:go_default_library", - "//internal/formatter:go_default_library", + "@rules_go//go/platform:js_wasm": [ + "//:go-jsonnet", + "//internal/formatter", ], "//conditions:default": [], }), @@ -16,7 +16,7 @@ go_library( go_binary( name = "libjsonnet.wasm", - embed = [":go_default_library"], + embed = [":wasm_lib"], goarch = "wasm", goos = "js", visibility = ["//visibility:public"], diff --git a/examples/bazel/BUILD.bazel b/examples/bazel/BUILD.bazel index a4664d9c3..79160b16a 100644 --- a/examples/bazel/BUILD.bazel +++ b/examples/bazel/BUILD.bazel @@ -13,7 +13,7 @@ go_library( go_binary( name = "use_go_jsonnet", - embed = [":use_go_jsonnet_lib"], data = ["example.jsonnet"], + embed = [":use_go_jsonnet_lib"], visibility = ["//visibility:public"], ) diff --git a/examples/bazel/MODULE.bazel b/examples/bazel/MODULE.bazel index 08de96794..c1ba49721 100644 --- a/examples/bazel/MODULE.bazel +++ b/examples/bazel/MODULE.bazel @@ -7,7 +7,7 @@ local_path_override( ) go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk") -go_sdk.download(version = "1.23.7") +go_sdk.from_file(go_mod = "//:go.mod") go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") go_deps.from_file(go_mod = "//:go.mod") diff --git a/formatter/BUILD.bazel b/formatter/BUILD.bazel index 26a74629b..9656a82fa 100644 --- a/formatter/BUILD.bazel +++ b/formatter/BUILD.bazel @@ -1,21 +1,27 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@rules_go//go:def.bzl", "go_library", "go_test") -go_library( +# keep: support old target name. +alias( name = "go_default_library", + actual = ":formatter", +) + +go_library( + name = "formatter", srcs = ["formatter.go"], importpath = "github.com/google/go-jsonnet/formatter", visibility = ["//visibility:public"], deps = [ - "//ast:go_default_library", - "//internal/formatter:go_default_library", - "//internal/parser:go_default_library", + "//ast", + "//internal/formatter", + "//internal/parser", ], ) go_test( - name = "go_default_test", + name = "formatter_test", srcs = ["formatter_test.go"], data = glob(["testdata/**"]), - embed = [":go_default_library"], - deps = ["//internal/testutils:go_default_library"], + embed = [":formatter"], + deps = ["//internal/testutils"], ) diff --git a/internal/dump/BUILD.bazel b/internal/dump/BUILD.bazel index d915d0521..34e7169c2 100644 --- a/internal/dump/BUILD.bazel +++ b/internal/dump/BUILD.bazel @@ -1,18 +1,18 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@rules_go//go:def.bzl", "go_library", "go_test") go_library( - name = "go_default_library", + name = "dump", srcs = [ "dump.go", "pointermap.go", "utils.go", ], importpath = "github.com/google/go-jsonnet/internal/dump", - visibility = ["//visibility:public"], + visibility = ["//:__subpackages__"], ) go_test( - name = "go_default_test", + name = "dump_test", srcs = ["dump_test.go"], - embed = [":go_default_library"], + embed = [":dump"], ) diff --git a/internal/errors/BUILD.bazel b/internal/errors/BUILD.bazel index cb23f94f8..f833e919e 100644 --- a/internal/errors/BUILD.bazel +++ b/internal/errors/BUILD.bazel @@ -1,9 +1,9 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") go_library( - name = "go_default_library", + name = "errors", srcs = ["static_error.go"], importpath = "github.com/google/go-jsonnet/internal/errors", - visibility = ["//visibility:public"], - deps = ["//ast:go_default_library"], + visibility = ["//:__subpackages__"], + deps = ["//ast"], ) diff --git a/internal/formatter/BUILD.bazel b/internal/formatter/BUILD.bazel index 0961bdd39..049da2c95 100644 --- a/internal/formatter/BUILD.bazel +++ b/internal/formatter/BUILD.bazel @@ -1,7 +1,7 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") go_library( - name = "go_default_library", + name = "formatter", srcs = [ "add_plus_object.go", "enforce_comment_style.go", @@ -20,10 +20,10 @@ go_library( "unparser.go", ], importpath = "github.com/google/go-jsonnet/internal/formatter", - visibility = ["//visibility:public"], + visibility = ["//:__subpackages__"], deps = [ - "//ast:go_default_library", - "//internal/parser:go_default_library", - "//internal/pass:go_default_library", + "//ast", + "//internal/parser", + "//internal/pass", ], ) diff --git a/internal/parser/BUILD.bazel b/internal/parser/BUILD.bazel index bdaf56048..0058aaffd 100644 --- a/internal/parser/BUILD.bazel +++ b/internal/parser/BUILD.bazel @@ -1,7 +1,7 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@rules_go//go:def.bzl", "go_library", "go_test") go_library( - name = "go_default_library", + name = "parser", srcs = [ "context.go", "lexer.go", @@ -11,17 +11,17 @@ go_library( importpath = "github.com/google/go-jsonnet/internal/parser", visibility = ["//:__subpackages__"], deps = [ - "//ast:go_default_library", - "//internal/errors:go_default_library", + "//ast", + "//internal/errors", ], ) go_test( - name = "go_default_test", + name = "parser_test", srcs = [ "lexer_test.go", "parser_test.go", ], - embed = [":go_default_library"], - deps = ["//ast:go_default_library"], + embed = [":parser"], + deps = ["//ast"], ) diff --git a/internal/pass/BUILD.bazel b/internal/pass/BUILD.bazel index 3c61b9006..72fdec714 100644 --- a/internal/pass/BUILD.bazel +++ b/internal/pass/BUILD.bazel @@ -1,11 +1,9 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") go_library( - name = "go_default_library", + name = "pass", srcs = ["pass.go"], importpath = "github.com/google/go-jsonnet/internal/pass", visibility = ["//:__subpackages__"], - deps = [ - "//ast:go_default_library", - ], + deps = ["//ast"], ) diff --git a/internal/program/BUILD.bazel b/internal/program/BUILD.bazel index 0ccc8cb24..ce5521c54 100644 --- a/internal/program/BUILD.bazel +++ b/internal/program/BUILD.bazel @@ -1,7 +1,7 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@rules_go//go:def.bzl", "go_library", "go_test") go_library( - name = "go_default_library", + name = "program", srcs = [ "desugarer.go", "program.go", @@ -10,18 +10,18 @@ go_library( importpath = "github.com/google/go-jsonnet/internal/program", visibility = ["//:__subpackages__"], deps = [ - "//ast:go_default_library", - "//internal/errors:go_default_library", - "//internal/parser:go_default_library", + "//ast", + "//internal/errors", + "//internal/parser", ], ) go_test( - name = "go_default_test", + name = "program_test", srcs = [ "desugarer_test.go", "static_analyzer_test.go", ], - embed = [":go_default_library"], - deps = ["//ast:go_default_library"], + embed = [":program"], + deps = ["//ast"], ) diff --git a/internal/testutils/BUILD.bazel b/internal/testutils/BUILD.bazel index d69b26296..5d50b673a 100644 --- a/internal/testutils/BUILD.bazel +++ b/internal/testutils/BUILD.bazel @@ -1,9 +1,9 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") go_library( - name = "go_default_library", + name = "testutils", srcs = ["test_utils.go"], importpath = "github.com/google/go-jsonnet/internal/testutils", visibility = ["//:__subpackages__"], - deps = ["@com_github_sergi_go_diff//diffmatchpatch:go_default_library"], + deps = ["@com_github_sergi_go_diff//diffmatchpatch"], ) diff --git a/linter/BUILD.bazel b/linter/BUILD.bazel index bd6186804..4725a8863 100644 --- a/linter/BUILD.bazel +++ b/linter/BUILD.bazel @@ -1,29 +1,29 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@rules_go//go:def.bzl", "go_library", "go_test") go_library( - name = "go_default_library", + name = "linter", srcs = ["linter.go"], importpath = "github.com/google/go-jsonnet/linter", visibility = ["//visibility:public"], deps = [ - "//:go_default_library", - "//ast:go_default_library", - "//internal/errors:go_default_library", - "//internal/parser:go_default_library", - "//linter/internal/common:go_default_library", - "//linter/internal/traversal:go_default_library", - "//linter/internal/types:go_default_library", - "//linter/internal/variables:go_default_library", + "//:go-jsonnet", + "//ast", + "//internal/errors", + "//internal/parser", + "//linter/internal/common", + "//linter/internal/traversal", + "//linter/internal/types", + "//linter/internal/variables", ], ) go_test( - name = "go_default_test", + name = "linter_test", srcs = ["linter_test.go"], data = glob(["testdata/**"]), - embed = [":go_default_library"], + embed = [":linter"], deps = [ - "//:go_default_library", - "//internal/testutils:go_default_library", + "//:go-jsonnet", + "//internal/testutils", ], ) diff --git a/linter/internal/common/BUILD.bazel b/linter/internal/common/BUILD.bazel index cc280c6a1..5328377cd 100644 --- a/linter/internal/common/BUILD.bazel +++ b/linter/internal/common/BUILD.bazel @@ -1,12 +1,12 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") go_library( - name = "go_default_library", + name = "common", srcs = ["common.go"], importpath = "github.com/google/go-jsonnet/linter/internal/common", visibility = ["//linter:__subpackages__"], deps = [ - "//ast:go_default_library", - "//internal/errors:go_default_library", + "//ast", + "//internal/errors", ], ) diff --git a/linter/internal/traversal/BUILD.bazel b/linter/internal/traversal/BUILD.bazel index 9ce6eb549..144393f80 100644 --- a/linter/internal/traversal/BUILD.bazel +++ b/linter/internal/traversal/BUILD.bazel @@ -1,13 +1,13 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") go_library( - name = "go_default_library", + name = "traversal", srcs = ["traversal.go"], importpath = "github.com/google/go-jsonnet/linter/internal/traversal", visibility = ["//linter:__subpackages__"], deps = [ - "//ast:go_default_library", - "//internal/parser:go_default_library", - "//linter/internal/common:go_default_library", + "//ast", + "//internal/parser", + "//linter/internal/common", ], ) diff --git a/linter/internal/types/BUILD.bazel b/linter/internal/types/BUILD.bazel index 32f6f3251..9c7dd4465 100644 --- a/linter/internal/types/BUILD.bazel +++ b/linter/internal/types/BUILD.bazel @@ -1,7 +1,7 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") go_library( - name = "go_default_library", + name = "types", srcs = [ "build_graph.go", "check.go", @@ -15,8 +15,8 @@ go_library( importpath = "github.com/google/go-jsonnet/linter/internal/types", visibility = ["//linter:__subpackages__"], deps = [ - "//ast:go_default_library", - "//internal/parser:go_default_library", - "//linter/internal/common:go_default_library", + "//ast", + "//internal/parser", + "//linter/internal/common", ], ) diff --git a/linter/internal/variables/BUILD.bazel b/linter/internal/variables/BUILD.bazel index 2e7ec25ad..707818e6c 100644 --- a/linter/internal/variables/BUILD.bazel +++ b/linter/internal/variables/BUILD.bazel @@ -1,13 +1,13 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") go_library( - name = "go_default_library", + name = "variables", srcs = ["find_variables.go"], importpath = "github.com/google/go-jsonnet/linter/internal/variables", visibility = ["//linter:__subpackages__"], deps = [ - "//ast:go_default_library", - "//internal/parser:go_default_library", - "//linter/internal/common:go_default_library", + "//ast", + "//internal/parser", + "//linter/internal/common", ], ) diff --git a/toolutils/BUILD.bazel b/toolutils/BUILD.bazel index 7c0a6a7a1..a76479e97 100644 --- a/toolutils/BUILD.bazel +++ b/toolutils/BUILD.bazel @@ -1,12 +1,18 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") +load("@rules_go//go:def.bzl", "go_library") -go_library( +# keep: support old target name. +alias( name = "go_default_library", + actual = ":toolutils", +) + +go_library( + name = "toolutils", srcs = ["ast.go"], importpath = "github.com/google/go-jsonnet/toolutils", visibility = ["//visibility:public"], deps = [ - "//ast:go_default_library", - "//internal/parser:go_default_library", + "//ast", + "//internal/parser", ], ) From 6d35a885175a4358878fbfa6efe9131a9f520eee Mon Sep 17 00:00:00 2001 From: John Bartholomew Date: Wed, 18 Feb 2026 22:33:45 +0000 Subject: [PATCH 3/4] chore: update to Go 1.24.5 to get support for os.Root --- .github/workflows/install-go.sh | 10 +- .github/workflows/publish-python.yml | 2 +- .github/workflows/release.yml | 2 +- MODULE.bazel.lock | 166 +++++++++++++-------------- README.md | 4 +- examples/bazel/MODULE.bazel | 4 +- examples/bazel/go.mod | 2 +- go.mod | 2 +- 8 files changed, 94 insertions(+), 98 deletions(-) diff --git a/.github/workflows/install-go.sh b/.github/workflows/install-go.sh index b319c9922..58589913e 100755 --- a/.github/workflows/install-go.sh +++ b/.github/workflows/install-go.sh @@ -10,15 +10,15 @@ TDIR="$(mktemp -d)" >&2 echo "Working dir: ${TDIR}" trap "rm -rf ${TDIR}" EXIT ->&2 echo "Downloading Go 1.23.7 distribution file." -curl -fL -o "${TDIR}/go1.23.7.linux-amd64.tar.gz" 'https://go.dev/dl/go1.23.7.linux-amd64.tar.gz' +>&2 echo "Downloading Go 1.24.8 distribution file." +curl -fL -o "${TDIR}/go1.24.8.linux-amd64.tar.gz" 'https://go.dev/dl/go1.24.8.linux-amd64.tar.gz' >&2 echo "Checking distribution file integrity" -GO_DIST_SHA256='4741525e69841f2e22f9992af25df0c1112b07501f61f741c12c6389fcb119f3' -printf '%s %s/go1.23.7.linux-amd64.tar.gz\n' "${GO_DIST_SHA256}" "${TDIR}" | sha256sum -c +GO_DIST_SHA256='6842c516ca66c89d648a7f1dbe28e28c47b61b59f8f06633eb2ceb1188e9251d' +printf '%s %s/go1.24.8.linux-amd64.tar.gz\n' "${GO_DIST_SHA256}" "${TDIR}" | sha256sum -c >&2 echo "Unpacking to /usr/local/go" -rm -rf /usr/local/go && tar -C /usr/local -xzf "${TDIR}/go1.23.7.linux-amd64.tar.gz" +rm -rf /usr/local/go && tar -C /usr/local -xzf "${TDIR}/go1.24.8.linux-amd64.tar.gz" >&2 echo "Installed Go version:" /usr/local/go/bin/go version diff --git a/.github/workflows/publish-python.yml b/.github/workflows/publish-python.yml index 2d64c0676..62f3e4fe1 100644 --- a/.github/workflows/publish-python.yml +++ b/.github/workflows/publish-python.yml @@ -71,7 +71,7 @@ jobs: # separately in each cibuildwheel build container if: "${{ runner.os != 'Linux' }}" with: - go-version: "1.23.7" + go-version: "1.24.8" - name: Build wheels uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1b1e446f..1c42991ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.23" + go-version: "1.24" - name: Extract version id: extract_version run: | diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index d4eeae0e2..f47fd3faa 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -229,170 +229,166 @@ }, "facts": { "@@rules_go+//go:extensions.bzl%go_sdk": { - "1.23.7": { + "1.24.5": { "aix_ppc64": [ - "go1.23.7.aix-ppc64.tar.gz", - "5934ade0f845e19e6ac50dd4a7cbc3f39f06cfa2d7137a4021e5113de9d66df8" + "go1.24.5.aix-ppc64.tar.gz", + "94c73c05660a7f8fa769ee89ee80a6792442872ce5e9d5b9999f4baae9aaeba2" ], "darwin_amd64": [ - "go1.23.7.darwin-amd64.tar.gz", - "3a3d6745286297cd011d2ab071998a85fe82714bf178dc3cd6ecd3d043a59270" + "go1.24.5.darwin-amd64.tar.gz", + "2fe5f3866b8fbcd20625d531f81019e574376b8a840b0a096d8a2180308b1672" ], "darwin_arm64": [ - "go1.23.7.darwin-arm64.tar.gz", - "a08a77374a4a8ab25568cddd9dad5ba7bb6d21e04c650dc2af3def6c9115ebba" + "go1.24.5.darwin-arm64.tar.gz", + "92d30a678f306c327c544758f2d2fa5515aa60abe9dba4ca35fbf9b8bfc53212" ], "dragonfly_amd64": [ - "go1.23.7.dragonfly-amd64.tar.gz", - "30c626981363513cb925706978a3a8cb3516cdeae619ed9a67d4a3fbed0b21e8" + "go1.24.5.dragonfly-amd64.tar.gz", + "17288fb56ab4b46b5dac025ed2ec51f447997298ad739cbd9d2886020abd0412" ], "freebsd_386": [ - "go1.23.7.freebsd-386.tar.gz", - "4bc9c3583236b13a9f1ec22c133fe4436714d56ebc0ee96733d4f6f0eb3c7ae1" + "go1.24.5.freebsd-386.tar.gz", + "5eba96f152cd26b4ae8c4821c9c3c19519ed7349cfa1ba0378a9230531a2d855" ], "freebsd_amd64": [ - "go1.23.7.freebsd-amd64.tar.gz", - "c0e7a5ff1875eb79d7c2acfa1616718ad892c0b2637d56594fdc3332e313efd4" + "go1.24.5.freebsd-amd64.tar.gz", + "815e2572f2cb971b97efe2f3c1e16217bc3b576873dad8a4bd1d03098e843f2d" ], "freebsd_arm": [ - "go1.23.7.freebsd-arm.tar.gz", - "311e69d052bb732bca74cb64cba2d7d648e9af7a5c5d0c5e84a11efb77d287d0" + "go1.24.5.freebsd-arm.tar.gz", + "49d881823cd59f332bb3089284a275b031ebb6a69fd41d23c1b5998241f40500" ], "freebsd_arm64": [ - "go1.23.7.freebsd-arm64.tar.gz", - "2b51c940898fad6708609495b9a27b5869cf5195381fc4a31a013006aa4eb156" + "go1.24.5.freebsd-arm64.tar.gz", + "cf3e21b76a05450c9c0ac83ad4da4156df60cc97ba270397a4db76cea7cae103" ], "freebsd_riscv64": [ - "go1.23.7.freebsd-riscv64.tar.gz", - "ab00bd1b61491be2d60ff41a88b3e59d812236484eaf6232513985a1287693ba" + "go1.24.5.freebsd-riscv64.tar.gz", + "895b94783229ed09e452756c5da5a66486076c25edb738d15f2dc729beb2cf5d" ], "illumos_amd64": [ - "go1.23.7.illumos-amd64.tar.gz", - "5ca64c74aa26b7e6bb6fd8609c5526511ddba21a0ec337b63a4f0352d04952b7" + "go1.24.5.illumos-amd64.tar.gz", + "92f7ff47bdc146018c1cf93752b1d0e7ed15ed82c25263c5de3348ee410f9752" ], "linux_386": [ - "go1.23.7.linux-386.tar.gz", - "9115f7d751efe5b17b63a7630d24cd0a2479976465eecb277b5deec8aa0f4143" + "go1.24.5.linux-386.tar.gz", + "ddcd926755a9e1aa66baf16c42cf705fc00defa4bdf3225f1676b7672c9a46fa" ], "linux_amd64": [ - "go1.23.7.linux-amd64.tar.gz", - "4741525e69841f2e22f9992af25df0c1112b07501f61f741c12c6389fcb119f3" + "go1.24.5.linux-amd64.tar.gz", + "10ad9e86233e74c0f6590fe5426895de6bf388964210eac34a6d83f38918ecdc" ], "linux_arm64": [ - "go1.23.7.linux-arm64.tar.gz", - "597acbd0505250d4d98c4c83adf201562a8c812cbcd7b341689a07087a87a541" + "go1.24.5.linux-arm64.tar.gz", + "0df02e6aeb3d3c06c95ff201d575907c736d6c62cfa4b6934c11203f1d600ffa" ], "linux_armv6l": [ - "go1.23.7.linux-armv6l.tar.gz", - "c9e9ecd6a8cf1429f1c65d81115c450258258ac65833d95a82d5f4e5ad7d2d7a" + "go1.24.5.linux-armv6l.tar.gz", + "dc043c10cfa60e82687ab2a671d500de1f210042021bc3bca43dfb4fa6bfeca7" ], "linux_loong64": [ - "go1.23.7.linux-loong64.tar.gz", - "b9fb0ae7116cee77e88e1e2f54cca44343a71168b944768c48188cd1957fb3f8" + "go1.24.5.linux-loong64.tar.gz", + "8c26ec9d8081bc83fb1a24c48984e41f880f7c1a8ba74c82b222b5fa822242a5" ], "linux_mips": [ - "go1.23.7.linux-mips.tar.gz", - "27404833dc64673cacdd1470d77bf4235252ca5ca7a1fb47b465ff3b98cc31df" + "go1.24.5.linux-mips.tar.gz", + "d2e022b7b1d0936c50ad36629188ddd959d49f670277633ca90cef2cd9743675" ], "linux_mips64": [ - "go1.23.7.linux-mips64.tar.gz", - "fd1b628f2491b8be86791ad63e2b61b17909b6e1b3ae37ddcd27b9a5faddcd87" + "go1.24.5.linux-mips64.tar.gz", + "199b6f887283d2309c2910a60b7d6c3fa31ea6c8400f525cef3f12d7f370b147" ], "linux_mips64le": [ - "go1.23.7.linux-mips64le.tar.gz", - "f1d91a01bfe537bef687e2ab11f0c67ae8948d1ab1662110edcbfd7fd1803d9c" + "go1.24.5.linux-mips64le.tar.gz", + "d645e92294bad3f94e996ab7865cb7e4af325ca53b1250cf7300b2e6759b1370" ], "linux_mipsle": [ - "go1.23.7.linux-mipsle.tar.gz", - "bdcaa3fddb09b53c42a8963fcbfb52a29feeaf34bdcec7d59e54eab0d16bfb12" + "go1.24.5.linux-mipsle.tar.gz", + "6a85c331e9bb10dbd9c9740b7a360373a64007b20bf0ef2567225b4f25e0183b" ], "linux_ppc64": [ - "go1.23.7.linux-ppc64.tar.gz", - "ce2226b5e0940116cf9c791aa912ce62b3baac8bf2aaf09a1cd1e1de33456fd3" + "go1.24.5.linux-ppc64.tar.gz", + "447b6f06c7bf78a772807a247910ef24dd2ab62e50f71f3a5a3086724cfa908f" ], "linux_ppc64le": [ - "go1.23.7.linux-ppc64le.tar.gz", - "3ffc310bfd11fd0bcc713a764a0f7252c4d52d03f12abebfaebaaae77e027028" + "go1.24.5.linux-ppc64le.tar.gz", + "00bdfb16d1094e78473b681d2d09d42c19c886d4dfed743853769f1665c7a552" ], "linux_riscv64": [ - "go1.23.7.linux-riscv64.tar.gz", - "6474c707a09633ebd3117eb9127de467fbc482932164f1d1b1084e3be40c36f7" + "go1.24.5.linux-riscv64.tar.gz", + "325a7d3dde60ac1e5ea93e49d904f61e03bd5c5451ce652dd43fcee05eedb659" ], "linux_s390x": [ - "go1.23.7.linux-s390x.tar.gz", - "af1d4c5d01e32c2cf6e3cc00e44cb240e1a6cef539b28a64389b2b9ca284ac6c" + "go1.24.5.linux-s390x.tar.gz", + "bae534bbab036baa9221b154cc76484bc8bec898300ca18906714aa590783749" ], "netbsd_386": [ - "go1.23.7.netbsd-386.tar.gz", - "a8d2db89fc99fc2e2c01419dbc95ab9d2da139c750fee8d3f47df2bae2745fc5" + "go1.24.5.netbsd-386.tar.gz", + "f3bbdea9c04dbed4ceecb2604beb696ba3a740e51684b494295b7ed6f65c653c" ], "netbsd_amd64": [ - "go1.23.7.netbsd-amd64.tar.gz", - "8769b0d546f1b102827f3f129aed8650cd2aedc79c886f819cdbe3a70d09ef62" + "go1.24.5.netbsd-amd64.tar.gz", + "0ecb6f9a2b298fa48ccbafc1145d2b777fb6fd8d2f0dc8fde5cf17a48055c314" ], "netbsd_arm": [ - "go1.23.7.netbsd-arm.tar.gz", - "9bad2e989c71a0cf8c1940519ead4b6792595e0286f7ec0ce0474098b5df9c71" + "go1.24.5.netbsd-arm.tar.gz", + "e801078480f3734293ce384ad3e8afea58657c7072324e2902a26e2215eb1794" ], "netbsd_arm64": [ - "go1.23.7.netbsd-arm64.tar.gz", - "b9ceb39db2765b86b3dc11edcd16feebba08706a1fa9d0f16223bd0299e59a78" + "go1.24.5.netbsd-arm64.tar.gz", + "55901f15013f506571738e35a8386b584612ae772cefd9ff6abd8494ffa7b0be" ], "openbsd_386": [ - "go1.23.7.openbsd-386.tar.gz", - "1929e4eadaad4be8139bdf8ad0f28b38dc24ee57539d7bc3a0a5fd629cf6cddc" + "go1.24.5.openbsd-386.tar.gz", + "91a482c8c81178617ac4648ee84fe77ca1ade6b29bf35d3e1dffcd4e2b669002" ], "openbsd_amd64": [ - "go1.23.7.openbsd-amd64.tar.gz", - "d1c9e78bba09c215c83daf9040dfb0ac545d634bde1130cc11b3fe5bbec52a65" + "go1.24.5.openbsd-amd64.tar.gz", + "c51dc5d67cbf214d72555bcffedf9b509b599287d4567a85972782207310134b" ], "openbsd_arm": [ - "go1.23.7.openbsd-arm.tar.gz", - "40c1b1b9b42329a0265e0b8023c1fd3515675741ed0a4ca15ee952751e24ba5b" + "go1.24.5.openbsd-arm.tar.gz", + "fe419ffbc72dd4233a4c4688da28870728b8cbda2573429a7fc93476f53ad6ba" ], "openbsd_arm64": [ - "go1.23.7.openbsd-arm64.tar.gz", - "61cc713416cbe81b470626915ccccd32c78da71d1fe38b8d12c46cb61794dc6c" + "go1.24.5.openbsd-arm64.tar.gz", + "98a68d1ab1b44a10cf74c591e5ca61dc9478c1e763a90137e8b32911b3a05e5e" ], "openbsd_ppc64": [ - "go1.23.7.openbsd-ppc64.tar.gz", - "c2b5d038c0f21fd1e6513f7877c67d7ef4532193620bc54dc4d8233d0a1ecf25" + "go1.24.5.openbsd-ppc64.tar.gz", + "2a9462ee380151c16d9548d80a45c0bcc6c09a19dbf866a5cb4d5137c2ba8f70" ], "openbsd_riscv64": [ - "go1.23.7.openbsd-riscv64.tar.gz", - "db1b1b5b6b52e753b383688c4758e1dc90f9bf4e4a9809a995783a50b9eeccb2" + "go1.24.5.openbsd-riscv64.tar.gz", + "07d7f4806bc155e99a73901356307361f690be9009fbb81f94cee4116730bdde" ], "plan9_386": [ - "go1.23.7.plan9-386.tar.gz", - "5b78458002528ae9f0ae4c7ffa148e6023e2cb23804c11a68e8116028d995f0c" + "go1.24.5.plan9-386.tar.gz", + "19b43c9a3bdcfbbba0ab04b4afb56b4e36b7fd9f3314a906a19ad2d17a815c55" ], "plan9_amd64": [ - "go1.23.7.plan9-amd64.tar.gz", - "2dba02734fc1a45c145f5d0c186d86c1f0da107b99b283be318706832b5cf46a" + "go1.24.5.plan9-amd64.tar.gz", + "63e3b15dba845456de93004e381cb1a0fc01382fdaeff6e66dc5c3c3ace5b3e9" ], "plan9_arm": [ - "go1.23.7.plan9-arm.tar.gz", - "c2f22c9313c82059526b9ed24001c02ef307f8881bfd898fc3de0ef1774130eb" + "go1.24.5.plan9-arm.tar.gz", + "2e71d48ebda4e6a9afe348da639ccfeff1c683a24d23b74c54c17254e7adfd1f" ], "solaris_amd64": [ - "go1.23.7.solaris-amd64.tar.gz", - "d9cee150073a50f2e0f813d4873413fac3c50723762ffc0f35bed6828ead9f8a" + "go1.24.5.solaris-amd64.tar.gz", + "9308b1aac57c6e2434ca922d07d27b645b991b95a2128e0d72a74deb39c623fe" ], "windows_386": [ - "go1.23.7.windows-386.zip", - "c8587eaf0257d475bae5dd1d51530466a5e507dfa932d4f551acc3003e8bc1a8" + "go1.24.5.windows-386.zip", + "f1eba3975419b0b693bb24064f8bd775ec0b7f3755413fb64d133b48f517279e" ], "windows_amd64": [ - "go1.23.7.windows-amd64.zip", - "eba0477381037868738b47b0198d120a535eb9a8a17b2babb9ab0d5e912a2171" - ], - "windows_arm": [ - "go1.23.7.windows-arm.zip", - "a8ae7675af1bf82602b10627bc0b4063d7cacf067b28e34274c61a0cbfe38fa5" + "go1.24.5.windows-amd64.zip", + "658f432689106d4e0a401a2ebb522b1213f497bc8357142fe8def18d79f02957" ], "windows_arm64": [ - "go1.23.7.windows-arm64.zip", - "e828b5c526c40f3fa6f8aea2d402c0fcbf064009f2d0d12a15bb01241255af9a" + "go1.24.5.windows-arm64.zip", + "cd2955c4e3166a0cef4b76830025e4cc6e9ecccff32c02979a63f534d83c2e66" ] }, "1.25.0": { diff --git a/README.md b/README.md index 38d5eeff5..d2c5b461b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This an implementation of [Jsonnet](http://jsonnet.org/) in pure Go. It is a feature complete, production-ready implementation. Bindings to C and Python are available (but not battle-tested). -This code is known to work on Go 1.23 and above. We recommend always using the newest stable release of Go. +This code is known to work on Go 1.24 and above. We recommend always using the newest stable release of Go. Jsonnet can be used on the command line to evaluate Jsonnet input files and produce JSON, Yaml, or other outputs, or it can be used as a library. @@ -96,7 +96,7 @@ func main() { } ``` -## Build instructions (go 1.23+) +## Build instructions (go 1.24+) ```bash git clone git@github.com:google/go-jsonnet.git diff --git a/examples/bazel/MODULE.bazel b/examples/bazel/MODULE.bazel index c1ba49721..e8a753a9a 100644 --- a/examples/bazel/MODULE.bazel +++ b/examples/bazel/MODULE.bazel @@ -1,5 +1,5 @@ -bazel_dep(name = "gazelle", version = "0.42.0") -bazel_dep(name = "rules_go", version = "0.53.0") +bazel_dep(name = "gazelle", version = "0.47.0") +bazel_dep(name = "rules_go", version = "0.59.0") bazel_dep(name = "jsonnet_go") local_path_override( module_name = "jsonnet_go", diff --git a/examples/bazel/go.mod b/examples/bazel/go.mod index fd883a11a..7ca425274 100644 --- a/examples/bazel/go.mod +++ b/examples/bazel/go.mod @@ -1,6 +1,6 @@ module example/go-jsonnet-using-bazel -go 1.23.7 +go 1.24.5 require github.com/google/go-jsonnet v0.21.0 diff --git a/go.mod b/go.mod index 79e03d3c3..7d9d61c46 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/google/go-jsonnet -go 1.23.7 +go 1.24.5 require ( github.com/fatih/color v1.18.0 From acd4ea256d72cc0cdcfbd27bec00492d69ce8909 Mon Sep 17 00:00:00 2001 From: John Bartholomew Date: Wed, 18 Feb 2026 18:44:46 +0000 Subject: [PATCH 4/4] restrict file writes for --multi to the specified output directory --- cmd/jsonnet/cmd.go | 82 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 73 insertions(+), 9 deletions(-) diff --git a/cmd/jsonnet/cmd.go b/cmd/jsonnet/cmd.go index 9dab7ae78..ada9adf6e 100644 --- a/cmd/jsonnet/cmd.go +++ b/cmd/jsonnet/cmd.go @@ -20,6 +20,7 @@ import ( "fmt" "io" "os" + "path" "path/filepath" "sort" "strings" @@ -293,6 +294,48 @@ func processArgs(givenArgs []string, config *config, vm *jsonnet.VM) (processArg return processArgsStatusContinue, nil } +// (*Root) ReadFile() is added in Go 1.25; switch to that in the future. +func rootReadFile(root *os.Root, name string) ([]byte, error) { + f, err := root.Open(name) + if err != nil { + return nil, err + } + defer f.Close() + return io.ReadAll(f) +} + +// (*Root) WriteFile() is added in Go 1.25; switch to that in the future. +func rootWriteFile(root *os.Root, name string, data []byte, perm os.FileMode) error { + f, err := root.OpenFile(name, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm) + if err != nil { + return err + } + _, finalErr := f.Write(data) + if err := f.Close(); err != nil { + finalErr = err + } + return finalErr +} + +// (*Root) MkdirAll() is added in Go 1.25; switch to that in the future. +func rootMkdirAll(root *os.Root, name string, perm os.FileMode) error { + var dirs []string + rest := name + for rest != "." && rest != "/" && rest != "" { + dirs = append(dirs, rest) + rest = path.Dir(rest) + } + for i := range dirs { + if err := root.Mkdir(dirs[len(dirs)-i-1], perm); err != nil { + if os.IsExist(err) { + continue + } + return err + } + } + return nil +} + func writeMultiOutputFiles(output map[string]string, outputDir, outputFile string, createDirs bool) (err error) { // If multiple file output is used, then iterate over each string from // the sequence of strings returned by jsonnet_evaluate_snippet_multi, @@ -320,22 +363,43 @@ func writeMultiOutputFiles(output map[string]string, outputDir, outputFile strin keys = append(keys, k) } sort.Strings(keys) - for _, key := range keys { - newContent := output[key] - filename := outputDir + key - _, err := manifest.WriteString(filename) + if len(keys) == 0 { + return nil + } + + outputDir = filepath.Clean(outputDir) + root, err := os.OpenRoot(outputDir) + if err != nil { + if os.IsNotExist(err) && createDirs { + if err := os.MkdirAll(outputDir, 0755); err != nil { + return err + } + root, err = os.OpenRoot(outputDir) + } if err != nil { return err } + } + + for _, key := range keys { + newContent := output[key] + relpath := filepath.Clean(key) + if filepath.IsAbs(key) { + relpath, err = filepath.Rel("/", key) + if err != nil { + return err + } + } + abspath := filepath.Join(outputDir, relpath) - _, err = manifest.WriteString("\n") + _, err := manifest.WriteString(abspath + "\n") if err != nil { return err } - if _, err := os.Stat(filename); !os.IsNotExist(err) { - existingContent, err := os.ReadFile(filename) + if _, err := root.Stat(relpath); !os.IsNotExist(err) { + existingContent, err := rootReadFile(root, relpath) if err != nil { return err } @@ -347,12 +411,12 @@ func writeMultiOutputFiles(output map[string]string, outputDir, outputFile strin } } if createDirs { - if err := os.MkdirAll(filepath.Dir(filename), 0755); err != nil { + if err := rootMkdirAll(root, filepath.Dir(relpath), 0755); err != nil { return err } } - err = os.WriteFile(filename, []byte(newContent), 0666) + err = rootWriteFile(root, relpath, []byte(newContent), 0666) if err != nil { return err }