Skip to content

linkcheck: pass explicit -f - to tar when extracting from the curl pipe#786

Merged
mmcky merged 1 commit into
mainfrom
linkcheck-tar-explicit-stdin
Jul 8, 2026
Merged

linkcheck: pass explicit -f - to tar when extracting from the curl pipe#786
mmcky merged 1 commit into
mainfrom
linkcheck-tar-explicit-stdin

Conversation

@mmcky

@mmcky mmcky commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Small hardening to the linkcheck workflow: make stdin extraction explicit (tar -xzf -) when extracting the release HTML archive from the curl pipe, rather than relying on GNU tar's compiled-in default archive device.

The current form works on ubuntu-latest (GNU tar defaults to stdin), but -f - removes the ambiguity and is more portable. Backported from Copilot review feedback on QuantEcon/lecture-python.myst#953, keeping the linkcheck download logic consistent across the migrated repos.

🤖 Generated with Claude Code

…pipe

Make stdin extraction explicit (tar -xzf -) rather than relying on GNU
tar's compiled-in default archive device. Backports the fix from
QuantEcon/lecture-python.myst#953 for consistency across the migrated
linkcheck workflows.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 8, 2026 03:33
@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit c72af7f
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6a4dc519a0474400077a276a
😎 Deploy Preview https://deploy-preview-786--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

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 hardens the GitHub Actions linkcheck workflow by making the tar extraction source explicit when streaming the latest release HTML archive from curl, improving portability across tar implementations.

Changes:

  • Update the release archive extraction command to use tar -xzf - (explicit stdin via -f -) when reading from a pipe.

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

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

@github-actions github-actions Bot temporarily deployed to pull request July 8, 2026 03:41 Inactive
@github-actions github-actions Bot temporarily deployed to pull request July 8, 2026 03:42 Inactive
@mmcky mmcky merged commit 6669b7b into main Jul 8, 2026
8 checks passed
@mmcky mmcky deleted the linkcheck-tar-explicit-stdin branch July 8, 2026 05:41
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.

2 participants