embedconfig

command
v0.1.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command embedconfig copies the repository's config/ into the module, so a binary run outside any checkout still has the shipped pack configs.

The go:embed directive cannot reach ../config, so the copy lives at src/internal/defaultconfig/config/ and is regenerated by

make embed-config        # or: go -C src generate ./internal/defaultconfig

defaultconfig's drift test fails whenever the copy and config/ differ, so a config change that forgets this step fails CI rather than shipping stale.

Jump to

Keyboard shortcuts

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