Files
magpie/internal/pluginrt
yetone 9c330f4681 pluginrt: TestBrokenFileIsKept makes plugins.yml's folder by its parent, not by cutting "/plugins.yml", so it is a file on Windows too (#2270, JasonBuildAI)
The test cut "/plugins.yml" off Path() to make the folder; on Windows
the path ends in "\plugins.yml", nothing was cut, and MkdirAll made a
directory named plugins.yml, so the read failed with "is a directory".
It now uses filepath.Dir. No other filesystem path is cut with a "/"
suffix (the remaining TrimSuffix calls on "/..." are URL paths).

What was run:
- Windows box (x64, cross-compiled pluginrt.test.exe, sandbox home):
  old: TestBrokenFileIsKept FAIL "open ...\magpie\plugins.yml: is a
  directory"; new: the whole package PASS (run inside a copy of the
  source tree, since TestPluginsImportOnlyCore walks it).
- macOS: go test ./internal/pluginrt ok; gofmt, vet as in this push.
2026-10-15 10:10:18 +08:00
..