dev-go/net: update to v0.17.0
BUG=b/308728338, b/307540085
TEST=presubmit
RELEASE_NOTE=Update dev-go/net to v0.17.0. This fixes CVE-2023-44487 and CVE-2023-39325.
Change-Id: I8da0f3dc4bdcf581dd0325a9d2a0eaac6ab13b86
Reviewed-on: https://cos-review.googlesource.com/c/third_party/overlays/chromiumos-overlay/+/60631
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Oleksandr Tymoshenko <ovt@google.com>
diff --git a/dev-go/net/Manifest b/dev-go/net/Manifest
index c244c93..23e44b6 100644
--- a/dev-go/net/Manifest
+++ b/dev-go/net/Manifest
@@ -1 +1 @@
-DIST go.googlesource.com-net-4f30a5c0130f199e0dfd54e9de49f9367cabf1ad.tar.gz 1251344 BLAKE2B f2841414f8758ccb2fe58d4ac23cc7e421e2642c7207dc3314d309bfdd0b924f34d6c82eb16b8a1f8b923823cd804309b219a3d44aea42a0509603de26c431dc SHA512 4afde81c3a88ebdae7e07425f9b6f309de40e25232aab2ff969bc541ab1f75024e6fd29358547f2f18d9dffe478c382685f895c2fd78cf638360faa0fa01ef5b
+DIST go.googlesource.com-net-v0.17.0.tar.gz 1476243 BLAKE2B cce60f6ca8ddbdd11fd4c313c3be59ec717a8769bd02bdaf8f9ee622065f85c835cf81b955a9b0b0f1d75c7d07203387a70e7d4fda9665d289944248295f443f SHA512 e0aad3bf16a53664a90a8d41dad350a16199e0030b2e5c48797c63a7b792ac8068f2dcb83093ae214a60cf2e5a85a6ba95d01b51cbe2fe8609fbcc81ffdef41a
diff --git a/dev-go/net/net-0.17.0-r1.ebuild b/dev-go/net/net-0.17.0-r1.ebuild
new file mode 120000
index 0000000..f7834a9
--- /dev/null
+++ b/dev-go/net/net-0.17.0-r1.ebuild
@@ -0,0 +1 @@
+net-0.17.0.ebuild
\ No newline at end of file
diff --git a/dev-go/net/net-0.8.0_p158.ebuild b/dev-go/net/net-0.17.0.ebuild
similarity index 74%
rename from dev-go/net/net-0.8.0_p158.ebuild
rename to dev-go/net/net-0.17.0.ebuild
index 6aa671a..2b3cc9f 100644
--- a/dev-go/net/net-0.8.0_p158.ebuild
+++ b/dev-go/net/net-0.17.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2022 The ChromiumOS Authors
+# Copyright 2023 The ChromiumOS Authors
# Distributed under the terms of the GNU General Public License v2.
EAPI=7
-CROS_GO_SOURCE="go.googlesource.com/net:golang.org/x/net 4f30a5c0130f199e0dfd54e9de49f9367cabf1ad"
+CROS_GO_SOURCE="go.googlesource.com/net:golang.org/x/net v${PV}"
CROS_GO_PACKAGES=(
"golang.org/x/net/bpf"
@@ -53,3 +53,14 @@
dev-go/go-sys
"
RDEPEND="dev-go/text"
+
+src_install() {
+ cros-go_src_install
+ local datadir="golang.org/x/net/publicsuffix/data"
+ insinto "/usr/lib/gopath/src/${datadir}"
+ local file
+ while read -d $'\0' -r file ; do
+ einfo "${file}"
+ doins "${file}"
+ done < <(find "${S}/src/${datadir}" -maxdepth 1 ! -type d -print0)
+}
diff --git a/dev-go/net/net-0.8.0_p158-r1.ebuild b/dev-go/net/net-0.8.0_p158-r1.ebuild
deleted file mode 120000
index aaf992a..0000000
--- a/dev-go/net/net-0.8.0_p158-r1.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-net-0.8.0_p158.ebuild
\ No newline at end of file