Drop chcat/chtail/chgrep symlink entrypoints; ship chlog subcommands only #3
Reference in New Issue
Block a user
Delete Branch "benvin/drop-symlinks"
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 clickhouse-tools RPM ships
/usr/bin/chcat, which file-conflicts with SELinux'spolicycoreutils-python-utilspackage on Fedora (chcatis the SELinux category tool). Per Ben's decision the symlink entrypoints are dropped entirely — the package ships only thechlogbinary withchlog cat|tail|grepsubcommands.Changes
chcat/chtail/chgrepsymlinks and their bash/zsh/fish completion files frompackaging/nfpm.yamlandscripts/build-rpm.sh; keepschlogand its completionsentrypoint()) frommain.go; thecat/tail/grepsubcommands themselves are unchangedLINKSsymlink handling from the Makefilebuildandcompletionstargetschlogonlychlog cat|tail|grepand notes why the symlinks were dropped.gitignoreentries and the release pipeline commentVerification
gofmt/go vet/go test -raceclean. Localscripts/build-rpm.sh 0.0.0-local+rpm -qlp:No
/usr/bin/chcat|chtail|chgrepentries remain.