|
| 1 | +From 1c435d594dcc85a3e74c56858ffb224ecd6a3335 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Rahul Ganesh <rahulgab@amazon.com> |
| 3 | +Date: Thu, 5 Mar 2026 15:58:42 -0800 |
| 4 | +Subject: [PATCH 6/6] fix: Replace bmclib with fork for iDRAC10 gofish |
| 5 | + compatibility |
| 6 | + |
| 7 | +Point bmclib to a fork (github.com/rahulbabu95/bmclib) that includes |
| 8 | +gofish v0.20.1+ with iDRAC10 compatibility fixes from gofish PRs #510 |
| 9 | +and #511, plus the VirtualMedia System path fallback from bmclib #433. |
| 10 | +The fork adapts bmclib to the new gofish API (schemas package |
| 11 | +restructure), mirroring bmc-toolbox/bmclib#432. |
| 12 | + |
| 13 | +This is a temporary patch until upstream bmclib merges PR #432 and |
| 14 | +tinkerbell bumps to a version that includes it. |
| 15 | + |
| 16 | +Signed-off-by: Rahul Ganesh <rahulgab@amazon.com> |
| 17 | +--- |
| 18 | + go.mod | 3 ++- |
| 19 | + go.sum | 8 ++++---- |
| 20 | + 2 files changed, 6 insertions(+), 5 deletions(-) |
| 21 | + |
| 22 | +diff --git a/go.mod b/go.mod |
| 23 | +index cd60a943..12a6409f 100644 |
| 24 | +--- a/go.mod |
| 25 | ++++ b/go.mod |
| 26 | +@@ -214,7 +214,7 @@ require ( |
| 27 | + github.com/soheilhy/cmux v0.1.5 // indirect |
| 28 | + github.com/spf13/cast v1.7.0 // indirect |
| 29 | + github.com/spf13/cobra v1.9.1 // indirect |
| 30 | +- github.com/stmcginnis/gofish v0.20.0 // indirect |
| 31 | ++ github.com/stmcginnis/gofish v0.20.1-0.20260304143028-a1180d37929a // indirect |
| 32 | + github.com/stoewer/go-strcase v1.3.0 // indirect |
| 33 | + github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 // indirect |
| 34 | + github.com/twitchyliquid64/golang-asm v0.15.1 // indirect |
| 35 | +@@ -282,6 +282,7 @@ require ( |
| 36 | + ) |
| 37 | + |
| 38 | + replace ( |
| 39 | ++ github.com/bmc-toolbox/bmclib/v2 => github.com/rahulbabu95/bmclib/v2 v2.0.0-20260305223154-9e7e55bda2fe |
| 40 | + github.com/tinkerbell/tinkerbell/api => ./api |
| 41 | + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc => go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 |
| 42 | + k8s.io/api => k8s.io/api v0.34.3 |
| 43 | +diff --git a/go.sum b/go.sum |
| 44 | +index 56be1b85..2498c5a8 100644 |
| 45 | +--- a/go.sum |
| 46 | ++++ b/go.sum |
| 47 | +@@ -49,8 +49,6 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= |
| 48 | + github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= |
| 49 | + github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= |
| 50 | + github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= |
| 51 | +-github.com/bmc-toolbox/bmclib/v2 v2.3.5-0.20251010091507-63cb571e5597 h1:V8lDpeWcQXhlarTtD5op6++v5Dh6wO4WTBXq8ugNuj4= |
| 52 | +-github.com/bmc-toolbox/bmclib/v2 v2.3.5-0.20251010091507-63cb571e5597/go.mod h1:2tYJD9JtY1tJxLHhslICrFOZhxE9O4gYMb1nJ5BKI5w= |
| 53 | + github.com/bmc-toolbox/common v0.0.0-20250112191656-b6de52e8303d h1:5c0jhS9jNLm1t3GVEESsWv+p6recFRLGW90zp8HDIDs= |
| 54 | + github.com/bmc-toolbox/common v0.0.0-20250112191656-b6de52e8303d/go.mod h1:Cdnkm+edb6C0pVkyCrwh3JTXAe0iUF9diDG/DztPI9I= |
| 55 | + github.com/bombsimon/logrusr/v2 v2.0.1 h1:1VgxVNQMCvjirZIYaT9JYn6sAVGVEcNtRE0y4mvaOAM= |
| 56 | +@@ -433,6 +431,8 @@ github.com/quic-go/qpack v0.6.0 h1:g7W+BMYynC1LbYLSqRt8PBg5Tgwxn214ZZR34VIOjz8= |
| 57 | + github.com/quic-go/qpack v0.6.0/go.mod h1:lUpLKChi8njB4ty2bFLX2x4gzDqXwUpaO1DP9qMDZII= |
| 58 | + github.com/quic-go/quic-go v0.57.0 h1:AsSSrrMs4qI/hLrKlTH/TGQeTMY0ib1pAOX7vA3AdqE= |
| 59 | + github.com/quic-go/quic-go v0.57.0/go.mod h1:ly4QBAjHA2VhdnxhojRsCUOeJwKYg+taDlos92xb1+s= |
| 60 | ++github.com/rahulbabu95/bmclib/v2 v2.0.0-20260305223154-9e7e55bda2fe h1:BncNiKUfitjTVnxh9uJbm/PaCLJp9SVJIQGtf8BWJxk= |
| 61 | ++github.com/rahulbabu95/bmclib/v2 v2.0.0-20260305223154-9e7e55bda2fe/go.mod h1:3yBq8jDHT1OVa/iiJ1GKLttDlJB0dzF9Z5IH2hbaKHU= |
| 62 | + github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= |
| 63 | + github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= |
| 64 | + github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= |
| 65 | +@@ -458,8 +458,8 @@ github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wx |
| 66 | + github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= |
| 67 | + github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= |
| 68 | + github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= |
| 69 | +-github.com/stmcginnis/gofish v0.20.0 h1:hH2V2Qe898F2wWT1loApnkDUrXXiLKqbSlMaH3Y1n08= |
| 70 | +-github.com/stmcginnis/gofish v0.20.0/go.mod h1:PzF5i8ecRG9A2ol8XT64npKUunyraJ+7t0kYMpQAtqU= |
| 71 | ++github.com/stmcginnis/gofish v0.20.1-0.20260304143028-a1180d37929a h1:sgqQv6GMpYzDXI5O938qVzf22U2NT9n+ZwfGqFwj0fM= |
| 72 | ++github.com/stmcginnis/gofish v0.20.1-0.20260304143028-a1180d37929a/go.mod h1:PzF5i8ecRG9A2ol8XT64npKUunyraJ+7t0kYMpQAtqU= |
| 73 | + github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= |
| 74 | + github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= |
| 75 | + github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= |
| 76 | +-- |
| 77 | +2.34.1 |
| 78 | + |
0 commit comments