Repository navigation
fix(fs): migrate installer and layer commands to Drive9 v36 - #102
Conversation
srstack
left a comment
There was a problem hiding this comment.
Review: migrate installer and layer commands to Drive9 v36
Reviewed head 7cfee62 (22 files, +517/−2143, base 6b555db). I verified by building and running, not only by reading the diff:
go build ./...,go vet ./...,GOOS=windows GOARCH=amd64 go vet ./...,GOOS=darwin GOARCH=arm64 go vet ./...go test ./... -count=1,make e2e(which includes the new fake-companion layer flows),gofmt -l— all clean./bin/ti fs help,fs describe-layer help,fs merge-layer help(alias section is correct),fs create-layer help, and the "at least one of the flags in the group" error- Traced every layer path CLI → service → companion argv, plus the mount → locator → audit → unpack path
The direction is right and the deletion is disciplined: the v35 HTTP layer client went with its tests, commit-layer is a real alias, installer, updater and docs/releasing.md moved together, TI_FAKE_DRIVE9_OLD_LAYER gives the incompatibility path a test, and the pre-existing live layer test was rewritten into a genuine mount/fork/merge/delete workflow. I am requesting changes on the first three items below; they are cheap to close with evidence or a small normalization.
1. [MAJOR] The layer overlay path is an unverified guess, and a wrong guess silently disables the unpack audit
layerLocalRoot hard-codes base/views/<sha256(layerID)> (internal/fs/mountroot.go:125, used at drive9_mount_audit.go:92, drive9_mount_audit.go:38, drive9_companion.go:1400). Nothing checks that formula against the companion, and both consumers fail open:
scanOverlayEntriesreturns(nil, nil, nil)when<root>/overlayis absent (internal/fs/pack.go:761-765), so the post-mount symlink audit "passes" having inspected nothing — the control README says stops the mount on an escaping link.replayablePackPathsrecordspack_pathasskippedfor any value missing from that overlay (drive9_companion.go:1409-1417), so--pack-pathvalues silently drop out of the automatic pack.
It is also a regression in what is watched: before this change a layer mount audited the base overlay root (wrong, but existing); now it audits a directory that exists only if the formula is right.
The neighbouring function sets the bar this needs: companionMountLocalRoot records "Verified against drive9 v0.10.0 … produce root-26d2b529bbcb6733" (mountroot.go:20-30). layerLocalRoot has no such provenance and no test that can fail — the new TestLayerMountScopesUnpackAndPackPaths asserts the formula against itself.
Please either record the verified companion build (version plus full hash) and pin it with a live-e2e assertion — for example extending TestLiveFSLayerForkWorkflow to mount the layer with --mount-profile portable or a --pack-path and assert that <root>/views/<hash>/overlay exists and covers a planted escaping link — or make an unpack-capable layer mount fail loudly when the expected overlay root is absent instead of reporting a clean audit.
2. [MAJOR] --ttl is normalized for --dry-run but forwarded raw for execution, and the companion grammar is unverified
Dry-run converts the value: LayerTTLSeconds(opts.TTL) (internal/cli/commands.go:2212, internal/cli/commands.go:2285, internal/fs/layer.go:250) reports "ttl_seconds": 300 for --ttl 5m. Execution sends the raw string: appendFlagValue(&args, "--ttl", opts.TTL) (internal/fs/drive9_companion.go:635 and :670), which e2e/cli_test.go:1713 pins as --ttl 5m. So the dry-run document and the executed command disagree in kind, and only one path validates: --ttl bogus, --ttl 1.5s and --ttl -5 are refused by dry-run and forwarded by a real run.
Because the live suite was not run for this PR and the fake companion ignores --ttl, nothing here establishes that ti-drive9 fs layer create --ttl 5m is even valid — yet README's first layer example and the flag help ("in seconds or as a duration") depend on it. Please normalize and validate once in the service and send the companion the format it actually accepts (seconds, if that is the wire format), so a real run rejects what dry-run rejects. --tag has the same shape: dry-run parses through parseLayerTags, execution forwards the raw strings.
3. [MAJOR] Capability validation still does not cover the commands ti now calls
This PR exists because the installer checked chain instead of what ti uses, but the new lists still miss commands:
internal/update/update.go:796,scripts/install.shandscripts/install.ps1requirecreate fork merge rm, notlsorinspect— whiledrive9ListLayerscallsls,drive9DescribeLayercallsinspect, and layer mount pinning callsinspect(drive9_mount_audit.go:84). A companion missing those names is blessed by the installer and then breakslist-layers/describe-layer/--layer-refmounts.- Runtime gating is uneven:
fork,mergeandrmare gated;create,lsandinspectare not. On the v35 companion — the exact mixed state this PR addresses — those paths return an unclassified companion error instead offs.companion_incompatible. - The mount gate only looks for
--layerinmount --help, which v35 already had, so it passes on a companion that cannotinspect.
Move the required surface into one shared list (create, ls, inspect, fork, merge, rm, plus mount --layer) used by the runtime gate, the installer, the updater and docs/releasing.md.
4. [MINOR] Headline capabilities are documented but not exercised end to end
- Recursive copy into a layer is the new README example (
copy-file --recursive --layer-id), yet its only test asserts generated argv (TestDrive9LayerCopyFlags); the fake companion does not implementfs cp, and neither the live suite nor the fake e2e copies into a layer. If v36fs cprejects--layertogether with--recursive, that first example fails. - Conflict reporting disappeared with the rename:
LayerCommitResultcarriedconflicts[].path/reason/base_revision/want_revision,LayerMergeResultkeeps onlyapplied_paths. Iffs layer merge --jsonreports conflicts, surface them; if it cannot, say so in the release notes. delete-layer --forceis covered against the fake companion only. That is probably acceptable given it needs an exclusive mount, but it should be stated as a known live gap.
Smaller items
- [MINOR]
MergeLayer(internal/fs/drive9_companion.go:719) neither trims nor validates its ref, unlikeDescribeLayer,DeleteLayerandForkLayer;--layer-ref " child "reaches the companion untrimmed. Related hardening while you are rewriting these call sites: refs are positional companion arguments andvalidateLayerReferenceaccepts a leading-, so--layer-ref=--forcebecomesfs layer rm --json --force. Reject--prefixed refs or pass--. - [MINOR] Read-only layer mounts now forward a write tier.
mountDurabilityForwardedreturns true for every FUSE mount (internal/fs/mount_durability.go:155), and the updated test expects--read-only --layer <id> --durability interactive; the old checkpoint path forwarded nothing on purpose. Unless the companion documents that the flag is ignored for read-only mounts, skip it. - [MINOR] A server-owned identifier shape is validated locally:
canonicalLayerID(internal/fs/mountroot.go:123) requireslayer_<Crockford ULID>. Any format change turns every layer mount intofs.companion_decode, and the check buys no path safety because the ID is hashed before it is used. Drop it, or record where that format is specified. - [MINOR] Consumer-visible output changes are missing from
docs/release-notes/v0.2.12.md:list-layerstext headerDURABILITY→FENCE,delete-layerstatusnow echoing the companion ("deleted") instead of ti's"abandoned", andcommit-layer's result shape changing to the merge result. Scripts read these. - [NIT]
incompatibleDrive9Errorstill says "does not support filesystem layer fork workflows" although it now covers merge/delete/mount, andlayerHelpHasCommandis used on mount flag text. Generalize the wording and name. - [NIT]
ti fs describe-layer helpandti fs merge-layer helpmark neither--layer-idnor--layer-refas required, so the only hint is the runtime group error. A sentence in the long help would do. - [NIT]
internal/fs/mount_durability_test.golost the doc comment forTestCompanionMountModeMatchesCompanionAutoResolutionalong with the deleted checkpoint test. - [NIT] The "removed flags are rejected" table (
e2e/cli_test.go:1701) omitscreate-layer --durability-modeandfork-layer --layer-id; add them so the whole removal set is pinned.
Questions
- This removes four commands (
list-layer-chain,diff-layer,create-layer-checkpoint,rollback-layer) and eight flags in a patch release, with nodocs/spec/entry. Is release-notes-only the convention for interface removals here, or should this land with a spec? docs/pingcap-docs/docsis untouched; it is empty in my checkout so I could not check its content. If those published pages document layer commands, they need the same removal.
Not verified locally: live make live-e2e and a native Windows install (no cloud credentials or Windows host here), so the Drive9 v36 wire formats above are exactly where I would want evidence attached before merge.
|
Addressed the review of
I also addressed ref validation, read-only durability, help, removed-flag coverage, the interface spec, and the release-note output changes. The matching English documentation PR is in draft for the CLI release. The real ti and companion binaries recursively copied a nested file against a loopback HTTP fixture. The fixture verified the file bytes and the destination layer in the PUT URL. Force-delete was checked through its HTTP request. Actual deletion while mounted, live cloud/FUSE, and native Windows installation remain unverified. CI passed. |
srstack
left a comment
There was a problem hiding this comment.
Re-review of 3b395e0 — blockers resolved, approving
I re-checked the new head rather than taking the commit message at face value. Verification:
go build ./...,go vet ./...,GOOS=windows GOARCH=amd64 go vet ./...,GOOS=darwin GOARCH=arm64 go vet ./...go test ./... -count=1,make e2e,gofmt -l cmd internal e2e— all clean./bin/ti fs describe-layer help,fs merge-layer help,fs create-layer help- Read the Drive9 source at the exact commit you cite,
mem9-ai/drive9@bbb61cb, to check the contracts instead of trusting the comment
1. Layer overlay audit — resolved
The formula is now proven, not asserted: pkg/mountstate/layer_local_root.go implements LayerLocalRoot(base, id) = filepath.Join(base, "views", hex(sha256(id))), pkg/mountstate/view_local_root.go delegates to it, and cmd/drive9/cli/mount.go derives the layer mount root with it, so layerLocalRoot matches upstream byte for byte. The canonical-ID regex is identical too (^layer_[0-9a-hjkmnp-tv-z]{26}$ in pkg/viewprotocol/codes.go).
The fail-loud check is also safe from false positives, which was my worry: pkg/extensions/localize.New eagerly calls overlay.EnsureRoot() (os.MkdirAll(<root>/overlay)) whenever the overlay policy is active, so a portable layer mount always has the directory the new check looks for — an empty or absent archive does not turn into fs.unpack_audit_incomplete. With TestLayerMountRequiresObservableOverlay plus the live assertion on <local-root>/views/<hash>/overlay, the silent-no-op case cannot come back unnoticed.
2. TTL and tags — resolved
LayerMetadata now runs the same tag and TTL validation for preview and execution, and execution sends --ttl <seconds> (--ttl 300 for 5m) with tags normalized and sorted. Upstream agrees on the wire format: cmd/drive9/cli/layer.go documents -ttl as "optional layer TTL in seconds or duration (e.g. 3600 or 1h)" and parses it with parseLayerTTLSeconds, so the integer form is valid. The e2e table that pins --ttl 300/--ttl 3600 and the invalid-value matrix for both preview and execution is exactly what was missing.
3. Capability surface — resolved
internal/drive9cap.LayerCommands (create ls inspect fork merge rm) is now the single list, used by requireDrive9Layer, the updater, both installers, and docs/releasing.md, and the installer test compares the inline shell and PowerShell lists against the Go constant. Every layer path calls the gate, and layer mounts additionally require mount --layer. Against upstream the help line is usage: drive9 fs layer <create|ls|inspect|fork|merge|rm>, so the token check matches reality.
Also verified fixed
Leading-dash refs are rejected, MergeLayer trims and validates, merge/rm/ls/inspect JSON field names match pkg/client/layer.go (layer_id, status, applied_paths, layers, snap_gen, fence, mount_lease_until, ...), read-only layer mounts no longer forward a write tier, the --layer-ref/--layer-id requirement appears in the long help, the removed-flag matrix now covers --durability-mode and fork-layer --layer-id, the v36 contract has a spec, and the output changes are in the release notes.
One new, non-blocking observation
[MINOR] A readiness timeout on an unpack-capable layer mount now reports the wrong failure. The new overlay check runs before the readyErr branch (internal/fs/drive9_mount_audit.go:183-190 versus :195), so a mount that times out while the companion is still starting — and has therefore not created <layer root>/overlay yet — returns fs.unpack_audit_incomplete and loses the readiness-timeout message and its hint. The mount is still stopped, so this is diagnostics only: checking readyErr first, or folding it into the message ("mount readiness timed out and the layer overlay directory … could not be inspected"), would keep the more useful error.
[NIT] Every layer command now spends an extra companion process on fs layer help (create-layer, list-layers included). A per-process cache or a per-command need would keep the gate without doubling the spawns.
[NIT] LayerTTLSeconds returns 0 for an unset TTL, so --dry-run emits "ttl_seconds": 0 while execution omits --ttl. Omitting the key in preview would mirror execution exactly.
[NIT] internal/drive9cap has no direct unit test; its behaviour is only pinned through the fs, updater and installer tests.
[NIT] The live layer helper hashes the ref it was given, not the resolved ID (e2e/live_layer_test.go, mountLayer). That is correct today because the helper is only ever called with canonical IDs, but a future caller passing a name would assert the wrong directory.
Unverified by me, unchanged from your note: live cloud/FUSE, a Windows install, and deletion of an actively mounted layer.
Approving. For a v0.2.12 fix release this is in good shape; the timeout-message ordering is the only thing I would still put in this PR.
mornyx
left a comment
There was a problem hiding this comment.
Review summary
Reviewed head 3b395e0f (34 files, +690/−2239), including the follow-up commit that answers the earlier review. I built and ran the head against the repository's fake companion while recording the arguments it receives, reverted each fix to see whether a test fails without it, and read the Drive9 source at bbb61cbc (the commit the PR names) as the authority for how the companion behaves. The direction is right and the follow-up closes the capability, TTL/tag, ref and fail-open findings, each pinned by a test. What remains is three should-fix items, none of which holds the release: read-only mounts now report a write tier that was never sent, copy-file --to-stdout --layer-id still reads the base file system, and the updater still lets the outgoing binary judge the incoming companion. This is an independent pass; where it overlaps with the approval already on the thread, I say so.
Verified at this head: go build, go vet (darwin/arm64 and windows/amd64), gofmt, go test ./... (46 packages), make e2e (90 pass, 0 fail, 24 skipped), CI green.
What looks good
- One list (
internal/drive9cap) and one gate function replaced the per-command capability plumbing and three duplicated helpers. The runtime, the updater and both installers agree, and a parity test ties the scripts to the Go constant. Against a companion whose help prints the v35 line, every layer operation and layer dry-run now exits 1 withfs.companion_incompatible. - Dry-run and execution share TTL and tag validation, and the wire carries whole seconds and sorted, trimmed tags.
--ttl bogus,--ttl 1.5s,--ttl -5and a duplicate tag key all exit 2 on both paths before any companion call. - The new overlay check is aimed exactly at the fail-open path and is sound for every configuration ti can reach. ti accepts only three mount profiles (
internal/fs/pack.go:1003-1018), and both profiles that carry an overlay make the companion create<local-root>/views/<sha256(layer_id)>/overlaybefore the mount serves, read-only included (pkg/fuse/mount_runtime.go:151,:285-311;pkg/extensions/localize/localize.go:131-134). - The fixes are pinned where it matters: reverting the dash rule, the fail-loud check, the read-only forwarding rule or the installer parity each fails a test (I ran those reverts).
- The live test now asserts the real on-disk layout and layer isolation after a recursive copy instead of trusting the formula, and the follow-up says plainly what was not run.
For the record on the earlier review of 7cfee62: two of its premises did not hold against the companion source even then. The overlay formula was already an exact copy of mountstate.LayerLocalRoot (pkg/mountstate/layer_local_root.go:12-24), and --ttl 5m was already accepted (cmd/drive9/cli/layer_view.go:99-115). What the follow-up adds on those two points is recorded provenance, a fail-loud check and a live assertion of the layout, which are improvements. Its third item, the incomplete command list, was real.
Should fix (non-blocking, strong)
1. Read-only mounts report a durability tier that was never sent (new in 3b395e0f)
mountDurabilityForwarded is now !opts.ReadOnly && … "fuse" (internal/fs/mount_durability.go:157), so a read-only FUSE mount sends no --durability and the companion runs its own default. The result still reports ti's normalized tier (internal/fs/drive9_mount_audit.go:212 special-cases only WebDAV): --read-only reports "durability": "interactive", and --read-only --durability fsync is accepted, dropped from the argv and then reported as "durability": "fsync". I reproduced the argv and the reported values for both. The dry-run body prints the requested tier as well (internal/fs/mount.go:230). This contradicts the comment directly above that line ("report the tier that is actually in effect"), and AGENTS.md:1189-1199 and README.md:182 still say FUSE mounts forward the tier. Nothing is lost at run time, since a read-only mount performs no writes; what is wrong is what ti tells the user and what dry-run promises.
Fix: pick one rule and write it down. Either report auto for a read-only FUSE mount and show that in the dry-run body, or refuse an explicit tier other than auto with --read-only the way WebDAV does (fs.webdav_durability_unsupported). Then update the rule in AGENTS.md, README and the flag help (internal/cli/commands.go:2535), and add a non-layer read-only case that asserts argv and result agree.
2. copy-file --to-stdout --layer-id <layer> silently reads the base file system
The --to-stdout branch returns before CopyFile and calls ReadFile with the path only (internal/cli/commands.go:1781-1794), so the layer is dropped: ti fs cp --from-remote /workspace/a.txt --to-stdout --layer-id trial exits 0 and spawns fs cat :/workspace/a.txt. This predates the PR, but the PR rewrites the flag's contract (:1811, "Copy within the selected layer, including recursive copies") and the new spec does not mention copy-file. The PR already rejects the two combinations the companion refuses (internal/fs/drive9_copy.go:611-613); this third one it neither rejects nor honours.
Fix: finish the definition here. Reject --to-stdout with --layer-id in ValidateDrive9CopyRoute (internal/fs/drive9_copy.go:284, one line, same error code), or route the read through the layer, which the companion's cat supports (cmd/drive9/cli/cat.go:28). Add the case to TestDrive9LayerCopyFlags and to the spec.
3. The updater still lets the binary being replaced judge the incoming companion
ti update downloads the companion from "latest" and validates it with the list baked into the running binary before anything is staged (internal/update/update.go:295-298, validation at :785), refusing the whole update with update.companion_incompatible. That is the mechanism that stranded v0.2.11, as the release notes say (docs/release-notes/v0.2.12.md:20). Baking six names into v0.2.12 re-arms it: the next time Drive9 renames one of them and "latest" moves first, every v0.2.12 user is locked out again while ti update --check keeps advertising the update.
Fixing it is larger than this PR, so a tracked follow-up is fine, but please name it. The options: stage the new ti and let it validate the companion; replace ti and report the companion as degraded, with the installer command; or pin the companion per release instead of "latest".
Nits
- Capability gate (
internal/fs/drive9_companion.go:80-109). With the companion missing or not executable, every layer command andcreate-layer --dry-runnow reports "does not support the required filesystem layer commands", which names the wrong remedy, while ordinary commands correctly say the configured path does not exist or the file is not executable (I reproduced both). Let the runner's typed errors pass throughincompatibleDrive9Errorunchanged, as it already does for placement errors (:101), and include the missing command in the message;:85knows it. Separately, the list's content is pinned only sideways: droppingrmfrominternal/drive9cap/surface.go:11alone fails the parity test, but dropping it there and in both installers passes every test, and nothing ties the list to the argv ti builds. One table test that maps each layer service method to its subcommand would close that. TherequireDrive9Layercall and theTrimSpaceinMergeLayer(:693,:697) can also be deleted without a test failing. The package has no direct unit test either (e2e/installer_test.gois the only test file that imports it). The extrafs layer helpprocess on every layer command,create-layerandlist-layersincluded, is also noted in the approval. - Overlay seam, left over.
replayablePackPathsstill reports every recorded--pack-pathasskippedwhen the layer overlay holds none of them (internal/fs/drive9_companion.go:1377-1393).pack-file-systemandunpack-file-systemwith--mount-path <layer mount> --dry-runexit 1 withfs.mount_state_not_found, because the dry-run resolver still reads the legacy mount state (internal/fs/pack.go:237,:296-308), while the real commands exit 0. The real argv still carries--remote-root /beside--mount(internal/fs/drive9_companion.go:1146,:1186), which overrides the mount's own remote root in the companion (cmd/drive9/cli/pack.go:207,:290). And no test feeds a non-canonical layer ID to the mount path. The dry-run resolver and the--remote-rootargument predate this PR. - A readiness timeout on a layer mount is misreported (also noted in the approval). By the order of the two branches, the new overlay check (
internal/fs/drive9_mount_audit.go:182-190) runs before thereadyErrbranch (:195), so a layer mount whose readiness times out while the companion has not created the overlay yet is reported asfs.unpack_audit_incompleteinstead of the readiness timeout and its hint. The mount is stopped either way, so this is diagnostics only, and I confirmed it by reading rather than by running it. CheckingreadyErrfirst keeps the more useful error.TestLayerMountRequiresObservableOverlay(internal/fs/drive9_mount_audit_test.go:808) gives a readable mount path, so the unit suite does not cover the combination. --pack-pathon a read-only layer mount.replayablePackPathsignoreslocator.ReadOnly, so unmount replaysumount --pack-pathand--dry-runreports it as passed, while the companion refuses an explicit pack on a read-only layer (cmd/drive9/cli/mount.go:2276-2278). The unmount fails loudly and--no-auto-packrecovers. Refuse the combination at mount time, or skip the replay with a check that says why.- Documentation. The spec (
docs/spec/done/0032-ext01-layerfs-v36.md) is accurate but short of decision-complete: it omitscopy-file --layer-id(item 2), the removed--layer-idonfind-filesandsearch-file-content, the read-only durability rule (item 1) and the mount result change, and "a conflict exits with an error" is a server claim nobody has verified here. The "Output changes" list could add thatdelete-layerJSON dropsoperation,layer_refandcascade, thatmount-file-systemdropscheckpoint_idand addslayer_id, and thatdescribe-layeraccepts a name through--layer-id. For the published pages: pingcap/docs#24800 is in draft and this repository still pinsa8e00c35. Since the pointer is normally bumped with the change, please say in the description that the bump follows the docs PR. - Polish. Dry-run still prints the raw
--base-root-path(internal/cli/commands.go:2213:workspace, where execution sends:/workspace). The validation error says--layer-refwhen--layer-idwas passed (internal/cli/commands.go:2310).e2e/installer_test.go:6puts an internal import inside the standard-library group. Stray blank lines remain atinternal/cli/commands.go:2145,:2173and:2290.--dry-runprints"ttl_seconds": 0for an unset TTL (internal/cli/commands.go:2216,:2284;LayerTTLSeconds("")returns 0 atinternal/fs/layer.go:259-261) while execution omits--ttl; omitting the key would mirror it (also noted in the approval). The live helper hashes the ref it was given rather than the resolved ID (e2e/live_layer_test.go:108), which is right only while every caller passes a canonical ID. The e2e fake has no old-surface switch and never creates an overlay directory, so the gate's old-surface path and the fail-loud check run only at unit level.
Not verified here: no real ti-drive9 binary is available to me, so statements about how the companion reacts rest on reading the source at bbb61cbc, and which build the "latest" endpoints serve is not knowable from here. I did not run the live suite (including the new portable mount and recursive-copy steps), the loopback fixture described in the follow-up, or a native Windows install.
Recommendation
Comment. Nothing merge-blocking survives: the follow-up closes the earlier findings with tests that fail without them, and the three should-fix items are small or explicitly a follow-up.
3b395e0 to
3a1899b
Compare
mornyx
left a comment
There was a problem hiding this comment.
Review summary
The branch was rewritten to 3a1899b6; this is a re-check of that head.
- Content is unchanged.
git diff 3b395e0f 3a1899b6is empty, and each of the three rewritten commits carries the same tree as its predecessor (8c46a381,2b8ce107,256cd830) with a byte-identical message. Only the author and committer metadata and the dates differ. - So my review of
3b395e0fabove applies to this head word for word: nothing merge-blocking, three should-fix items (read-only mounts report a durability tier that is never sent;copy-file --to-stdout --layer-idreads the base file system; the updater validates the incoming companion with the outgoing binary) and the nits. All of them are still open. - I did not re-run the suites: the tree I built and tested is this tree. CI is green on the new head (
test,license/cla).
One note on the rewrite itself: the commits now carry a personal author address where the earlier ones used GitHub's noreply address. If that was not intended, it can still be reset before the merge.
Recommendation
Comment, unchanged. The earlier approval carried over to this head and the pull request shows as mergeable.
Summary
Installing ti v0.2.11 on macOS arm64 fails because its installer requires
fs layer chain, which the current Drive9 companion has removed. Update the shell installer, PowerShell installer, self-updater and filesystem commands together. Downloads continue to use the existing latest endpoints and SHA-256 checks.commit-layerremains an alias formerge-layer.Verification
make testandmake e2e.GOOS=windows GOARCH=amd64 go vet ./...andGOOS=darwin GOARCH=arm64 go vet ./....bbb61cbc3ccda6748475a650035a9653922ad0ff.Follow-up to the review of 7cfee62