Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Prefer gtar if available" #2771

Merged
merged 3 commits into from
Feb 18, 2025
Merged

Conversation

henrymercer
Copy link
Contributor

Reverts #2767 now that we have #2768.

Using BSD tar on macOS minimises changes to the prod environment. It also means we only need to support (macOS, BSD tar) rather than (macOS, GNU tar) and (macOS, fallback to BSD tar). One drawback of reverting #2767 is that preferring GNU tar does mean we're using the same program to archive and extract the CodeQL Bundle.

@Copilot Copilot bot review requested due to automatic review settings February 18, 2025 10:39
@henrymercer henrymercer requested a review from a team as a code owner February 18, 2025 10:40
Copy link
Contributor

@Copilot 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.

PR Overview

This PR reverts the previous change that preferred the use of GNU tar ("gtar") over the system tar, restoring the original behavior that uses BSD tar on macOS.

  • Reverts the "prefer gtar" change as per codeql-action#2767.
  • Removes the conditional logic that preferred "gtar", and the extra parameter from getTarVersion in both TypeScript and JavaScript implementations.
  • Updates logging and error messages to consistently reference "tar" rather than a variable command name.

Changes

File Description
CHANGELOG.md Updates the changelog to indicate that there are no user-facing changes.
src/tar.ts Removes usage of gtar: simplifies getTarVersion and updates command logging to always use "tar".
lib/tar.js Mirrors the TypeScript changes; removes pickTarCommand and updates error messages and logging accordingly.

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@henrymercer henrymercer requested a review from cklin February 18, 2025 10:47
@henrymercer henrymercer merged commit d99c7e8 into main Feb 18, 2025
267 checks passed
@henrymercer henrymercer deleted the revert-2767-cklin/prefer-gtar branch February 18, 2025 16:05
@github-actions github-actions bot mentioned this pull request Feb 21, 2025
8 tasks
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