Make build-rpm.sh executable and test completion generation #2
Reference in New Issue
Block a user
Delete Branch "benvin/completion-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The v0.1.0 tag pipeline failed at the
packagestep.scripts/build-rpm.shwas committed mode 100644, so CI's./scripts/build-rpm.shinvocation failed with permission denied (rc 126) before any completion generation ran. The cobra completion subcommand itself already works for all four entrypoints (cobra v1.10.2 auto-registerscompletioneven on the no-subcommand argv[0]-dispatched roots), matching node-lookup's pattern — the only difference was the missing executable bit.Changes
scripts/build-rpm.sh(100755, matching node-lookup)TestCompletionAllEntrypointsAndShellsguarding bash/zsh/fish completion generation through the argv[0] dispatch for chlog/chcat/chtail/chgrepVerified
go test -race ./...,go vet,gofmtclean./scripts/build-rpm.sh v0.1.1runs end to end locally: all 12 completion files generate and the RPM packages binary + symlinks + completions