Skip to content

fix(build): Create tarballs correctly#19077

Open
srebhan wants to merge 1 commit into
influxdata:masterfrom
srebhan:fix
Open

fix(build): Create tarballs correctly#19077
srebhan wants to merge 1 commit into
influxdata:masterfrom
srebhan:fix

Conversation

@srebhan

@srebhan srebhan commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

This PR implements the suggestion in #19075 to fix

tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
tar: Exiting with failure status due to previous errors

errors when untaring Telegraf packages.

Checklist

Related issues

resolves #19075

@telegraf-tiger telegraf-tiger Bot added the fix pr to fix corresponding bug label Jun 11, 2026
@telegraf-tiger

Copy link
Copy Markdown
Contributor

@srebhan srebhan added area/packaging ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. labels Jun 11, 2026
@skartikey

Copy link
Copy Markdown
Contributor

@srebhan The Makefile change is correct, but it changes the leading path-component count in the darwin tarballs and scripts/mac-signing.sh extracts them with --strip-components=2 and then signs Resources/usr/bin/telegraf. With the new layout the binary extracts to Resources/bin/telegraf, so the codesign step would fail. package-sign-mac only runs in the release/nightly workflow, so PR CI doesn't exercise it. Suggest changing mac-signing.sh:107 to --strip-components=1 in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/packaging fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telegraf Release .tar.gz files aren't correctly tarred

2 participants