Reorganize the source checkout layout
Separate tracked source from generated artifacts so the repo root stops accumulating helper scripts, manifests, and local runtime outputs. Move manual shell entrypoints under scripts/, manifests under config/, and the Firecracker API reference under docs/reference/. Make build and runtimebundle now target build/bin, build/runtime, and build/dist as the canonical source-checkout paths. Update runtime discovery, helper scripts, tests, and docs to follow the new layout while keeping legacy source-checkout runtime fallbacks for existing local bundles during migration. Validated with bash -n on the moved scripts, make build, and GOCACHE=/tmp/banger-gocache go test ./....
This commit is contained in:
parent
2362d0ae39
commit
01c7cb5e65
23 changed files with 296 additions and 186 deletions
|
|
@ -9,6 +9,12 @@ import (
|
|||
"banger/internal/runtimebundle"
|
||||
)
|
||||
|
||||
const (
|
||||
defaultManifestPath = "config/runtime-bundle.toml"
|
||||
defaultRuntimeDir = "build/runtime"
|
||||
defaultArchivePath = "build/dist/banger-runtime.tar.gz"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) < 2 {
|
||||
usage()
|
||||
|
|
@ -34,8 +40,8 @@ func main() {
|
|||
func fetch(args []string) error {
|
||||
fs := flag.NewFlagSet("fetch", flag.ContinueOnError)
|
||||
fs.SetOutput(os.Stderr)
|
||||
manifestPath := fs.String("manifest", "runtime-bundle.toml", "path to the runtime bundle manifest")
|
||||
outDir := fs.String("out", "runtime", "destination runtime directory")
|
||||
manifestPath := fs.String("manifest", defaultManifestPath, "path to the runtime bundle manifest")
|
||||
outDir := fs.String("out", defaultRuntimeDir, "destination runtime directory")
|
||||
if err := fs.Parse(args); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -49,9 +55,9 @@ func fetch(args []string) error {
|
|||
func pkg(args []string) error {
|
||||
fs := flag.NewFlagSet("package", flag.ContinueOnError)
|
||||
fs.SetOutput(os.Stderr)
|
||||
manifestPath := fs.String("manifest", "runtime-bundle.toml", "path to the runtime bundle manifest")
|
||||
runtimeDir := fs.String("runtime-dir", "runtime", "runtime directory to package")
|
||||
outArchive := fs.String("out", "dist/banger-runtime.tar.gz", "output archive path")
|
||||
manifestPath := fs.String("manifest", defaultManifestPath, "path to the runtime bundle manifest")
|
||||
runtimeDir := fs.String("runtime-dir", defaultRuntimeDir, "runtime directory to package")
|
||||
outArchive := fs.String("out", defaultArchivePath, "output archive path")
|
||||
if err := fs.Parse(args); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue