package main import ( "context" "os" "os/exec" "os/signal" "edge-infra.dev/hack/tools/apko-updater-bot/cmd" ) func main() { // This binary is meant to be run alongside a container/in bazel that has the apko command // Run `just link` to get apko from bazel if running locally apkoPath, err := exec.LookPath("apko") if err != nil { panic("the apko binary was not found and is required in the runtime environment") } println("apko binary found at", apkoPath) ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt) defer cancel() if err := cmd.Run(ctx); err != nil { cancel() os.Exit(1) } }