Skip to content

Add FreeBSD Platform Detection - #4312

Merged
devlead merged 4 commits into
cake-build:developfrom
Thefrank:freebsd
Oct 26, 2024
Merged

devlead merged 4 commits into
cake-build:developfrom
Thefrank:freebsd

Conversation

@Thefrank

Copy link
Copy Markdown
Contributor

Closes #4310

This PR adds FreeBSD as a detected platform to Cake. It also includes a platform test.

As .NET Standard does not support FreeBSD directly, and not to break .NET Standard compatibility, the function RuntimeInformation.IsOSPlatform(OSPlatform.Create()) is used.

After building I did find test failures that seem to originate from VerifyTests as it does not support FreeBSD either. I will open a PR at that repo to address it. Tests are attached below

Even after this, Cake will not dogfood under FreeBSD as the tool GitVersion uses Lib2GitSharp which consumes a NuGet made by https://github.com/libgit2/libgit2sharp.nativebinaries that does not include a FreeBSD library. GitVersion uses Cake to build.

Zip'd results using /logger:html for tests
results.zip

@augustoproiete augustoproiete left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@devlead devlead left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM👍 Breaking change so adding this one to 5.0 release, which hopefully will be out shortly after .NET 9 is released.

@devlead
devlead enabled auto-merge October 26, 2024 13:17
@devlead
devlead merged commit 176bb7f into cake-build:develop Oct 26, 2024
@devlead

devlead commented Oct 26, 2024

Copy link
Copy Markdown
Member

@Thefrank your changes have been merged, thanks for your contribution 👍

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.

Update Cake.Tool to support running on FreeBSD

4 participants