Skip to content

Commit

Permalink
chore: remove old ruff versions (#237)
Browse files Browse the repository at this point in the history
This allows me to drop a bazel_skylib dep, which is nice since repository rule context doesn't see bzlmod dependencies
  • Loading branch information
alexeagle authored May 11, 2024
1 parent b1ddaba commit 53ab168
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 133 deletions.
1 change: 0 additions & 1 deletion lint/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ bzl_library(
deps = [
":ruff_versions",
"//lint/private:lint_aspect",
"@bazel_skylib//lib:versions",
"@bazel_tools//tools/build_defs/repo:http.bzl",
"@bazel_tools//tools/build_defs/repo:utils.bzl",
],
Expand Down
8 changes: 2 additions & 6 deletions lint/ruff.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ruff = ruff_aspect(
```
"""

load("@bazel_skylib//lib:versions.bzl", "versions")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("//lint/private:lint_aspect.bzl", "LintOptionsInfo", "filter_srcs", "patch_and_report_files", "report_files")
Expand Down Expand Up @@ -190,11 +189,8 @@ def fetch_ruff(tag = RUFF_VERSIONS.keys()[0]):
"""
version = tag.lstrip("v")

# ruff changed their release artifact naming starting with v0.1.8
if versions.is_at_least("0.1.8", version):
url = "https://github.com/astral-sh/ruff/releases/download/{tag}/ruff-{version}-{plat}.{ext}"
else:
url = "https://github.com/astral-sh/ruff/releases/download/{tag}/ruff-{plat}.{ext}"
# ruff changed their release artifact naming starting with v0.1.8, so that's the minimum version we support
url = "https://github.com/astral-sh/ruff/releases/download/{tag}/ruff-{version}-{plat}.{ext}"

for plat, sha256 in RUFF_VERSIONS[tag].items():
fetch_rule = http_archive
Expand Down
126 changes: 0 additions & 126 deletions lint/ruff_versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -360,130 +360,4 @@ RUFF_VERSIONS = {
"x86_64-unknown-linux-gnu": "0757bbb9a2a5475f86205bd6bd6a122b4e90df41019e3323eeeedca476f33f27",
"x86_64-unknown-linux-musl": "451fdc425fde4075c44c52f9dccf1769e8e88ef8ffbd9f37e03a1886f2138289",
},
"v0.1.7": {
"aarch64-apple-darwin": "03b4fe7ab146b8cf5d3ef7c2811132040cdca06953d6259a33f52c7c056c62b8",
"aarch64-pc-windows-msvc": "c99c9ba70a61cf816b4a3e2c1ce6fc132a6eb480eaf411c864de4bcf6a121374",
"aarch64-unknown-linux-gnu": "eff20f6245e2532e1b086c19b1e98c5e74a451600fbecb33302e760646617947",
"aarch64-unknown-linux-musl": "bde2ae383e091e49927a1b0a56e5089cf74c1c9a75ad9518e1f8cc723758f879",
"armv7-unknown-linux-gnueabihf": "7fe62d92c3e8e2ff53ab93206ec9ef6a47c56b2e743331f44a9952f45f4b2d95",
"armv7-unknown-linux-musleabihf": "f5ce7c7023cb364fc5f227ca836680e9839f2b75af7ffba592ab6eb0b9315758",
"i686-pc-windows-msvc": "746aea743e8734e992f40ed2de5afd8fb28a9916dbcfe34736071902532b902a",
"i686-unknown-linux-gnu": "5ef0d3da29e32128d07a5848b6366db8a613c844d3bbd9ebb4044e52bc744739",
"i686-unknown-linux-musl": "2d016872e418f9e1e0cb95bf7b4b4222671068c1e6e65241faad9a6793e92ae8",
"powerpc64-unknown-linux-gnu": "cd771cdec113f25a35300626514a38fd70bf0741b8ab1b9085135cb6e13d0e8e",
"powerpc64le-unknown-linux-gnu": "44260ca3bbb579e0f18cb103eff4b4e0373feb2ddb619926bac0b10429e3671a",
"s390x-unknown-linux-gnu": "b98b3f3f71f870033be9fffafa4921b7a65a051085bf135cd3d36645acfca24c",
"x86_64-apple-darwin": "4daa04875e715c0f103221b7c2caf31d27ed014367019a3278c9a9093ae8ec70",
"x86_64-pc-windows-msvc": "cfb44b8fe17cf6b197722f89df6216509784731af8c9251b02c37e671f3dbcdd",
"x86_64-unknown-linux-gnu": "54445e05f4d0c3c40a9707872807e2682f85b9cc391a359cc74d27db0b279255",
"x86_64-unknown-linux-musl": "3f35d6b26ceea3116116f29cef7295ca85051a8be588023e97ccef8e9499cbf0",
},
"v0.1.6": {
"aarch64-apple-darwin": "0b626e88762b16908b3dbba8327341ddc13b37ebe6ec1a0db3f033ce5a44162d",
"aarch64-pc-windows-msvc": "5ab84560c8015fb15e3d4aff37d8af2fad054efe49fbbcc197abeea74e356d98",
"aarch64-unknown-linux-gnu": "b1db36e5ae15f02121135e1090336c87281c046ccee2df14dbd5e0b2474e2d90",
"aarch64-unknown-linux-musl": "dba27d6bb6468897c46326e223ef3c514d0d22fbf865b75e01cab5e4f9ecd737",
"armv7-unknown-linux-gnueabihf": "295f8aef703e3334d5dae156a3cef2aff88048f8e2b18b41156970a4cbab3fd1",
"armv7-unknown-linux-musleabihf": "23e5a22699919a3c1ab30b7b387b72039d63b18aa2f884032ad52ab414025f37",
"i686-pc-windows-msvc": "6f2da156ab896755a4bf52b9c15678bc55a785cf7ad3ed066cf9122cbafc4fd8",
"i686-unknown-linux-gnu": "0361ca8c82804c9149833cdea24aa77c7f4bd494f541bd65bc695eeae3995e93",
"i686-unknown-linux-musl": "3d3a6e9d0e3e6fc658e915fdfa8a9b320ab5dfbdb2922bef0cbfb8faf39d16a7",
"powerpc64-unknown-linux-gnu": "4e099e62d2252859a06d87b0d6ded54d59fe197fd2613a6de8b6ac2128bbb66d",
"powerpc64le-unknown-linux-gnu": "adfb18397858a759f97b970147c02a3c81dc9a80312799b17beae5de35b2d8b1",
"s390x-unknown-linux-gnu": "1ec05ad52b61d70f4b88059625dd4eaf10e396d62d85180fc4f717759681c718",
"x86_64-apple-darwin": "77537d1ffc260cff0a14458fc0256cd6f6673e296f64b1119e56b86fabb6e76f",
"x86_64-pc-windows-msvc": "95f141c5e08d63114555ac03d67f65ee1f2715066384173ba07370e7785762dd",
"x86_64-unknown-linux-gnu": "29d26a41ac05681656cc54af75a53c1900bd464517bf244a73f40398df027fc7",
"x86_64-unknown-linux-musl": "2c441237db21d6f4059b44e70a622bcf6b7c3d9c26d9efd60908ed3d589f2f3f",
},
"v0.1.5": {
"aarch64-apple-darwin": "c4c09192362ef38c1d2f70b0acf2e90dae252ce2fd96267c00f7f4b8eafd3c4d",
"aarch64-pc-windows-msvc": "600563177808cc5b20ed7a63785720659168f067e589bc3311f478032f721374",
"aarch64-unknown-linux-gnu": "362bba991e0f577f413a9bcb72118a4d4668b6afdeaa9d398882dd4a2698f7a8",
"aarch64-unknown-linux-musl": "2d947da5e3365f08ce0c861dccbb45a1986d4165c38d26fe0d94c43d1009a862",
"armv7-unknown-linux-gnueabihf": "d92387a7113d97321a138b883e736ec9516762d93f782e954ec2ea1bfcda486c",
"armv7-unknown-linux-musleabihf": "4da41219e93ec89115f8896ee67970fd80c40af8027fb78abf7bc9b1c943c39a",
"i686-pc-windows-msvc": "7d6bd293c94b319db8c00116b54514000b44fd094e3819d9510298de72fc60c8",
"i686-unknown-linux-gnu": "71c78b017a8793242d498ff17abf919968b53c1ff98ae477ec4c4984311ddccd",
"i686-unknown-linux-musl": "845444294f63059a04f8278236dd5434c716d6ebc248d4d4e63245b5c7869659",
"powerpc64-unknown-linux-gnu": "47f5c406d7819021354663ebba93ec0bce3bc7d025be01f6b3bc97fa84db1cb0",
"powerpc64le-unknown-linux-gnu": "fa4c0c349085dac59cec332a6f5f3f15f966b07c11c5a1d0c1ed7cfd62dc38fe",
"s390x-unknown-linux-gnu": "07621cc4fff2ed32e4af224a44803d0e6abe4ef59d05a20e57eaab54b387cbae",
"x86_64-apple-darwin": "2b0e89b9406e8cd26e692b570672880c5742e7678d7ab8397f5c112919342b42",
"x86_64-pc-windows-msvc": "7ceb685bf77d218a88b495c999662e487144c639122d672d07b4246c0e88cee9",
"x86_64-unknown-linux-gnu": "ec643e3712825836e513d708056b3843a0b4af673fa9ef120009d106b77b7dce",
"x86_64-unknown-linux-musl": "0ac221bf04b81afc1c003bd5af85a4690e4c289912c66e1c11f94f7d74974c10",
},
"v0.1.4": {
"aarch64-apple-darwin": "d6dc7b1eab34e81d13fa269089df871995aa6b03a9b1f74a936d52541750ee5a",
"aarch64-pc-windows-msvc": "308e9e70c60549ca7b4f173c5dd9c1992daf265f3e934698f90baeebefe97c71",
"aarch64-unknown-linux-gnu": "188aeb5a9b6a369881ce90042f46edebd8bb220da4c13d1c56046bf7b92239e6",
"aarch64-unknown-linux-musl": "9ce29a09ed4922f755f38aeeb5b9534a45f6371e4ca3f112acb78f1303295e71",
"armv7-unknown-linux-gnueabihf": "6d9b27d007bf4cd8414dbf19aa6a0085a5054131a8f9a3ef11dfc129c552496f",
"armv7-unknown-linux-musleabihf": "b3fcd6b43343c05a2df075aca00b024246fb60cbbc9fbb56e4da75dc4c28e6dc",
"i686-pc-windows-msvc": "578ff7a38fb17d7724e546cb28a4be4055982dec496f4bcf6563af8d0574193d",
"i686-unknown-linux-gnu": "ceaf84041982b8b6ad3c920be5b1d78f1cc1cfc32332689acf046ddd4e34c380",
"i686-unknown-linux-musl": "399ea6ac4aa94bd60e9048531dd9ba8168a88a30421e771ea73a504c92346981",
"powerpc64-unknown-linux-gnu": "d08ea41caafa012b46c823232bd5e343b09bad6b6fc7ddde2c3d1cef568f1737",
"powerpc64le-unknown-linux-gnu": "88acfbfa3410105257d72315874b2aa74bad319f036fe1ac393b344f3e017887",
"s390x-unknown-linux-gnu": "077fba3550bb94707cb57d8316970b195c1b76f62177b50a18e7adc151452297",
"x86_64-apple-darwin": "27a2800606b417d8f3102354efd0c09b8e08c94f754aaea9809a74a76e7456da",
"x86_64-pc-windows-msvc": "d87c514da69457d7b6b6c9805a0b9e339d4b0bc865be45fc439c703c30d98f37",
"x86_64-unknown-linux-gnu": "6b3b27474b4779dc1e6ae1353f4faac00822e3ecd505889162bd3ef91bea3cc4",
"x86_64-unknown-linux-musl": "fd0ae41fe4a84e5d99457442da61c0571453eb7ad2791dd6e1603df1883e6664",
},
"v0.1.3": {
"aarch64-apple-darwin": "d7554aebed6483ffd7f60617e2567ae2fc61dccb1a029834c92d4313ee185a33",
"aarch64-pc-windows-msvc": "daf5642a0b14d78a7cb1c9e7305d034ee9c6a09071e8507379b5b2686da9150c",
"aarch64-unknown-linux-gnu": "86bc7b9f40f3d367a64e4c3243f1298f1dafc0885d22e0aed873552343b3f1cd",
"aarch64-unknown-linux-musl": "11a5ba3b94fa72d09f1358eaffe206c83e1447d10f2da58235a792e68a44ed4c",
"armv7-unknown-linux-gnueabihf": "288374925e414a3dabbcab335a593359dc4caab4c923a9ef69a8e3a8dc93e747",
"armv7-unknown-linux-musleabihf": "7ff675a51ff0fd5a3a372309df49d3776a5c29e42d927da122f51fd3c8b0fd8f",
"i686-pc-windows-msvc": "cc24eb8bc24c90ccb6686485c02d3df3a0cec04c9d0491d92a4479dad9064313",
"i686-unknown-linux-gnu": "4b9b85974b364cd7bda2a5f9c4a0ed9e9c4a365bcd00673b4f3850c8c2b55ab0",
"i686-unknown-linux-musl": "7b04b06e987edcf7229a1ede50de3dcb0295590203c7affb90a24de142cc61cd",
"powerpc64-unknown-linux-gnu": "45533eb90d0a92bc5ae7dc67303698cf43217cea28f53bbd5ac09d372f4cf489",
"powerpc64le-unknown-linux-gnu": "6b4b5bc9163883c51844fde3acc58599548f4561a5dcbd4e78cd8ca3a8260d56",
"s390x-unknown-linux-gnu": "dcdd65d5aa52c389b03ae9aa2d728da89b6aa6561e40e93cc846f2ae63e2bb43",
"x86_64-apple-darwin": "55726dadf43771e97b61b79165f2bfb8071799988bc2d9b4b3eff4da98aa994b",
"x86_64-pc-windows-msvc": "605e44ed4e7ae718dca298584270816c1d8c6eddcc1bc96b17c37d5938706ddc",
"x86_64-unknown-linux-gnu": "9b462ec7ea6acf3d5c02f0ce1060d98376778e2a887b4315a4964e956fab5448",
"x86_64-unknown-linux-musl": "ee8bf6915af2a584ea024ce8669b1aeca03928aadcbb25c8f45359acc1992c47",
},
"v0.1.2": {
"aarch64-apple-darwin": "99a245e703c1d95afc9b0c2e00bd47bca6ac5c17e6cc046e58bf3f70d6536330",
"aarch64-pc-windows-msvc": "644390067887b8b0f1bff2805211de6bd006c97ce259760260b27da5356a7db6",
"aarch64-unknown-linux-gnu": "fef09ce9591c72efd1ef4ce2b0956f1edba21328e29ad865e795d16186a20a06",
"aarch64-unknown-linux-musl": "a96338c7e96228531a0c2cef39ebe17a215fca3346e2352a00b9f88bc25d5197",
"armv7-unknown-linux-gnueabihf": "a15894de509ae15eeb48d0121e08536b1b8f16855d88cccb61ecab0c9f4e537d",
"armv7-unknown-linux-musleabihf": "1c6bf703c489d60ae1db402508d1527292411d9c4fac5d43cf79f08e444e6167",
"i686-pc-windows-msvc": "aca5b93beac3a76edd7c2ea55f0e09672d2d7f85fcf5c9f4f65c252db643b5b4",
"i686-unknown-linux-gnu": "fa42d9559589cee38f8ac34c48ce3f9981d204fa2be48fa72945e9c1f026db8c",
"i686-unknown-linux-musl": "f84d9770205f3b0387ba74dbc62a47f2b234f52fc58ec0e9b8ceb0697035a6cf",
"powerpc64-unknown-linux-gnu": "b8731842d1d762538a8d41e49853cac4b06b827b0f762bd08e951eb47ec2129c",
"powerpc64le-unknown-linux-gnu": "36015e708b571465e12ecb655e8165e51ee1d7295800484b94ab21e04c2b17b1",
"s390x-unknown-linux-gnu": "592fc30494bf63ddb510ac929233a6fa44488273099e064fcf91efc10a3c49ab",
"x86_64-apple-darwin": "cb339e9684043dae3cf530bca22f532198b9f151b01812f701ed0b85fec95b0a",
"x86_64-pc-windows-msvc": "5e515c69653469736e76848f401d9f72b4396d8b7be2be77f748109e04542d26",
"x86_64-unknown-linux-gnu": "cab189b03ed0d882d45691d6cb4a7843e9d8389ba4e2e43cb4616a46ae69545b",
"x86_64-unknown-linux-musl": "368594d2e96a8a7e14fc610259f1c0a29fab4a84cd061a9373ce415c742df04e",
},
"v0.1.1": {
"aarch64-apple-darwin": "e2444e4c7bda7133a0c47a368993be55f7bbe3c3a68d14be83dca480fe624c5e",
"aarch64-pc-windows-msvc": "8eb1f83b0e3c9ddd818176fc26065b87b7cb119764c84b109c70d12dff283d21",
"aarch64-unknown-linux-gnu": "2d56dd602aa62e5e8185971e19c77d6df1e9f14a9190176d8f8212dcde827dde",
"aarch64-unknown-linux-musl": "ee1117ea3e4c32c92f598592c946bb941cca437cc0ce62bd4e86ea889a081e29",
"armv7-unknown-linux-gnueabihf": "f0f0b4db10954496149ddb7b6a9d7c16418f386210f3da2823904bde713ba369",
"armv7-unknown-linux-musleabihf": "894e6f0c5f8a8830fcddf38afa81960fb902211082ef7a1aec00637a2c6e2710",
"i686-pc-windows-msvc": "a6d5601c9704790409a3540d6dc6cc2a955b234f07df9553e5b4555f9b8ac7e5",
"i686-unknown-linux-gnu": "9617cd3a921f9d65be973482fae5b888e9e1a9617e779d7d47f3d5f2cdb5c332",
"i686-unknown-linux-musl": "55d574637179362a2ddf10125d0386054a0cfb3daef0943e9082a87a1a3424e6",
"powerpc64-unknown-linux-gnu": "143b227ace509cb0a2e2411a5675935d67910f7a280f35931e112e137dc3b894",
"powerpc64le-unknown-linux-gnu": "94158cc4d4208b29962a6be2245fa391ce158673c4e8c8baa5e9f592c080dc29",
"s390x-unknown-linux-gnu": "22dcfb5338e546713b86acc1c25d0c11bb72175df652bbd0ad58082c4e273b8b",
"x86_64-apple-darwin": "da0e3156387a419db6c123fd7d009d7f6153dfb631a17e7aa1551f4d6aec5c7a",
"x86_64-pc-windows-msvc": "080877770e3494637a01cca05e88ed9a5a450f6129b90053e7f3014ce761f178",
"x86_64-unknown-linux-gnu": "0f70840c8c10ac8013f734e76977494311b7264a12782bc95be5f9d2e1414176",
"x86_64-unknown-linux-musl": "2b5555abb21598969be862a05101f35079ff6c72466d74eb22f9a1c773d646d0",
},
}

0 comments on commit 53ab168

Please sign in to comment.