repo

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package repo locates the repository and holds tests for the contracts its non-Go files make.

Configuration that names paths — CODEOWNERS, workflows, lint ignores — fails silently when a path moves: the file stays valid, the rule matches nothing, and nobody notices until the protection it was supposed to provide was needed. These are cheap to assert and were not being asserted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Root

func Root() string

Root returns the directory holding go.mod, or "." if none is found.

Derived by walking up from the working directory rather than from runtime.Caller, which reports a trimmed module path under this repository's build flags and so yields a path that does not exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL