Skip to content

explicitly reject the ancient make version shipped by macOS#376

Merged
VoigtS merged 2 commits intomainfrom
old-make-unsupported
Sep 24, 2025
Merged

explicitly reject the ancient make version shipped by macOS#376
VoigtS merged 2 commits intomainfrom
old-make-unsupported

Conversation

@majewsky
Copy link
Copy Markdown
Contributor

Mac users should install a newer make via Homebrew etc.

Mac users should install a newer make via Homebrew etc.
Makefile Outdated
# macOS ships with make 3.81 from 2006, which does not support all the stuff that we need
ifeq ($(MAKE_VERSION),3.81)
ifeq (,$(shell which gmake 2>/dev/null))
$(error We do not support "make" versions that are two decades old. Please install a newer version, e.g. using "brew install make")
Copy link
Copy Markdown
Member

@SuperSandro2000 SuperSandro2000 Sep 23, 2025

Choose a reason for hiding this comment

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

Suggested change
$(error We do not support "make" versions that are two decades old. Please install a newer version, e.g. using "brew install make")
$(error We do not support "make" version $(MAKE_VERSION) that are two decades old. Please install a newer version, e.g. using "brew install make" and run it via "gmake".)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree with the first part, and have applied it.

I disagree with the second part. Inevitably, Homebrew will change how they install make, and this comment will become incorrect. Also, this part of the comment may not apply when installing make through any other method, such as Nix. I specifically included the version for when gmake is installed, in case that whatever the user uses installs gmake and not make.

@majewsky majewsky force-pushed the old-make-unsupported branch from 2adc275 to b2a8092 Compare September 23, 2025 13:38
@github-actions
Copy link
Copy Markdown
Contributor

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/go-makefile-maker/internal/makefile 7.98% (-0.02%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/go-makefile-maker/internal/makefile/makefile.go 0.00% (ø) 197 (+1) 0 197 (+1)

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@VoigtS VoigtS merged commit 77148ab into main Sep 24, 2025
8 checks passed
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