Files
spinifex/docs/security/network-connections/inventory.go
T
Josh Siviour b93f6c258a fix(e2e): resolve the listener inventory without a Go toolchain on the target node (#787)
* fix(e2e): resolve the listener inventory without a Go toolchain on the target node

tests/e2e/multinode/listener_invariant_test.go resolved
docs/security/network-connections/README.md at runtime via `go env
GOMOD`, which works under `go test` but not inside a compiled .test
binary shipped to a node with no Go toolchain. Embed the doc in a new
docs/security/network-connections package instead, so the content is
compiled into the binary and every caller parses bytes rather than a
resolved path. RepoRoot and DocPath are now unused and removed.

* docs: trim the embed package comment to the three-line standard
2026-08-13 14:18:02 +10:00

16 lines
486 B
Go

// Package networkconnections embeds the inbound-listener inventory doc that
// lives alongside it, so test binaries can read it on nodes with no Go
// toolchain. //go:embed cannot reach outside its own directory.
package networkconnections
import _ "embed"
//go:embed README.md
var readme []byte
// README returns the raw bytes of the inbound-listener inventory doc
// (docs/security/network-connections/README.md), embedded at compile time.
func README() []byte {
return readme
}