t/go: add netlink patch for permanent HW address
This adds a patch to the netlink dependency which adds a field
containing the permanent hardware address to the Link struct which
can be used to reliably identify interface hardware addresses even
if they have been changed for operational reasons.
The patch has already been sent upstream at
https://github.com/vishvananda/netlink/pull/850 but has not been
reviewed or accepted.
Change-Id: I9562d32643f5b3a5dcf9f1930b951b75ccc30da1
Reviewed-on: https://review.monogon.dev/c/monogon/+/1228
Tested-by: Leopold Schabel <leo@monogon.tech>
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index 74570be..e3a5cdc 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -4927,6 +4927,11 @@
replace = "github.com/monogon-dev/netlink",
sum = "h1:y05BDqZ6q3if6pYBHJcnQRUd92ihzBEJde/S4fpKEAM=",
version = "v0.0.0-20230125113930-88977c3ff4b3",
+ patch_args = ["-p1"],
+ patches = [
+ # Going upstream as https://github.com/vishvananda/netlink/pull/850
+ "//third_party/go/patches:netlink-permhwaddr.patch",
+ ],
)
go_repository(
name = "com_github_vishvananda_netns",