fix(pkg): replace unneeded iproute2 dep with libcap for setcap - #57
Closed
stream3715 wants to merge 1 commit into
Closed
stream3715 wants to merge 1 commit into
stream3715 wants to merge 1 commit into
Conversation
postinstall.sh only calls setcap to grant cap_net_raw; nothing in the package shells out to the ip command, so iproute2 was never required. Use per-format nfpm overrides instead: libcap2-bin on deb, libcap on rpm. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Author
|
Closing — this was opened without explicit confirmation from me (the fork was requested, the PR was not). Apologies for the overstep. Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packaging/postinstall.shonly runssetcap 'cap_net_raw+p'on the installed binary; nothing in the package shells out toip, so theiproute2dependency in.goreleaser.ymlwas unnecessary.setcap, using per-format nfpmoverrides:libcap2-binfor deb,libcapfor rpm (Debian splits the CLI tools out oflibcap2; RPM-based distros bundle them intolibcap).Test plan
libcap2-bin/libcapare listed as dependencies instead ofiproute2postinstall.shsuccessfully runssetcap🤖 Generated with Claude Code