Skip to content

Fix Linux packaging tarball self-inclusion in CI#4

Merged
evilz merged 2 commits intomasterfrom
copilot/fix-linux-packaging
Feb 5, 2026
Merged

Fix Linux packaging tarball self-inclusion in CI#4
evilz merged 2 commits intomasterfrom
copilot/fix-linux-packaging

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 5, 2026

Linux packaging in CI failed because the tarball was created inside the publish directory, causing tar to read a changing file and exit. This updates the workflow to emit the archive outside the source directory.

  • Workflow: Linux packaging
    • Create the tarball in ${{ github.workspace }}/publish instead of inside publish/linux-x64.
    • Update the upload-artifact path to match the new tarball location.
tar --delay-directory-restore -czf ${{ github.workspace }}/publish/todo-linux-x64-${{ github.run_id }}.tar.gz \
  -C ${{ github.workspace }}/publish/linux-x64 .
Original prompt

Reference: https://github.com/evilz/todo-cli/actions/runs/21710371862/job/62612161882

fix the linux packaging


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: evilz <2937862+evilz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the Linux packaging issue Fix Linux packaging tarball self-inclusion in CI Feb 5, 2026
Copilot AI requested a review from evilz February 5, 2026 12:52
@evilz evilz marked this pull request as ready for review February 5, 2026 15:05
Copilot AI review requested due to automatic review settings February 5, 2026 15:05
@evilz evilz merged commit 5ed71b5 into master Feb 5, 2026
5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a CI failure in the Linux packaging workflow where the tarball was being created inside the directory being archived, causing tar to fail when reading a changing file. The fix moves the tarball creation to an external location using the -C flag to change into the source directory during archiving.

Changes:

  • Modified the Linux packaging tarball creation to output the archive file outside the source directory
  • Updated the artifact upload path to reference the new tarball location

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants