go: add v1.21.3 and deprecate previous versions due to CVE-2023-39533 (#40454)

This commit is contained in:
Alec Scott 2023-10-12 06:40:04 -07:00 committed by GitHub
parent 285a50f862
commit bfe37435a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,10 +39,15 @@ class Go(Package):
maintainers("alecbcs")
version("1.20.6", sha256="62ee5bc6fb55b8bae8f705e0cb8df86d6453626b4ecf93279e2867092e0b7f70")
version("1.19.11", sha256="e25c9ab72d811142b7f41ff6da5165fec2d1be5feec3ef2c66bc0bdecb431489")
version("1.21.3", sha256="186f2b6f8c8b704e696821b09ab2041a5c1ee13dcbc3156a13adcf75931ee488")
# Deprecated Versions
# https://nvd.nist.gov/vuln/detail/CVE-2023-39533
version(
"1.20.6",
sha256="62ee5bc6fb55b8bae8f705e0cb8df86d6453626b4ecf93279e2867092e0b7f70",
deprecated=True,
)
# https://nvd.nist.gov/vuln/detail/CVE-2023-29405
version(
"1.20.4",
@ -54,6 +59,11 @@ class Go(Package):
sha256="e447b498cde50215c4f7619e5124b0fc4e25fb5d16ea47271c47f278e7aa763a",
deprecated=True,
)
version(
"1.19.11",
sha256="e25c9ab72d811142b7f41ff6da5165fec2d1be5feec3ef2c66bc0bdecb431489",
deprecated=True,
)
version(
"1.19.9",
sha256="131190a4697a70c5b1d232df5d3f55a3f9ec0e78e40516196ffb3f09ae6a5744",
@ -64,7 +74,6 @@ class Go(Package):
sha256="1d7a67929dccafeaf8a29e55985bc2b789e0499cb1a17100039f084e3238da2f",
deprecated=True,
)
# https://nvd.nist.gov/vuln/detail/CVE-2023-24538
version(
"1.20.2",
@ -106,7 +115,7 @@ def build(self, spec, prefix):
bash = which("bash")
with working_dir("src"):
bash("{0}.bash".format("all" if self.run_tests else "make"))
bash(f"{'all' if self.run_tests else 'make'}.bash")
def install(self, spec, prefix):
install_tree(".", prefix)