Skip to content

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

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#355
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 lustrous-melomakarona-3ee73e ready!

Name Link
🔨 Latest commit caaab20
🔍 Latest deploy log https://app.netlify.com/projects/lustrous-melomakarona-3ee73e/deploys/6a4dc51475390000085acc7d
😎 Deploy Preview https://deploy-preview-355--lustrous-melomakarona-3ee73e.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
Contributor

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 tar read explicitly from stdin when extracting the latest release HTML archive, improving portability beyond GNU tar defaults.

Changes:

  • Update the extraction command from tar -xz ... to tar -xzf - ... so the archive source is explicitly stdin.
  • Keep the release-asset download/extract logic consistent with other migrated QuantEcon lecture repositories.

💡 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
Contributor

@github-actions github-actions Bot temporarily deployed to pull request July 8, 2026 03:44 Inactive
@mmcky mmcky merged commit 08baa8d into main Jul 8, 2026
10 checks passed
@mmcky mmcky deleted the linkcheck-tar-explicit-stdin branch July 8, 2026 03:46
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