Skip to content

Conversation

@samdark
Copy link
Member

@samdark samdark commented Jan 2, 2026

Newer versions of make are not filling MAKECMDGOALS the same way as older ones. This fix makes it work with both old and new versions.

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Fixed issues -

Copilot AI review requested due to automatic review settings January 2, 2026 15:14
@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.22%. Comparing base (8688e52) to head (bdd3f1a).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #255   +/-   ##
=========================================
  Coverage     77.22%   77.22%           
  Complexity       52       52           
=========================================
  Files            16       16           
  Lines           180      180           
=========================================
  Hits            139      139           
  Misses           41       41           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

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 compatibility with newer versions of make by refactoring how the default goal is determined. The change ensures that when make is invoked without arguments, the default "help" goal is correctly selected regardless of make version.

  • Refactored the PRIMARY_GOAL initialization logic to check the result of $(firstword $(MAKECMDGOALS)) instead of checking MAKECMDGOALS directly
  • Maintains backward compatibility with older make versions while supporting newer ones

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

@samdark samdark merged commit a92e7ae into master Jan 2, 2026
20 checks passed
@samdark samdark deleted the fix-make-help branch January 2, 2026 16:09
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