Commit b474e6f
fix(ollama): correct local process Inspect and test type mismatches
Three issues from the moby migration in the ollama local process:
1. Inspect() populated Networks with a "bridge" entry, but the old code
used an empty map (bridge info was in the deprecated
NetworkSettingsBase.Bridge field). Restored empty map.
2. Tests compared port.Proto() (network.IPProtocol) to "tcp" (string).
The old nat.Port.Proto() returned string; the new network.Port.Proto()
returns network.IPProtocol. Fixed to compare against network.TCP.
3. Tests compared port[0].HostIP (netip.Addr) to "127.0.0.1" (string).
The old PortBinding.HostIP was string; the new one is netip.Addr.
Fixed to compare against netip.MustParseAddr(testHost).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3bd2ae2 commit b474e6f
2 files changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 493 | + | |
498 | 494 | | |
499 | 495 | | |
500 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | | - | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
405 | 406 | | |
406 | 407 | | |
407 | 408 | | |
408 | | - | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| |||
426 | 427 | | |
427 | 428 | | |
428 | 429 | | |
429 | | - | |
| 430 | + | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
| |||
0 commit comments