fsprojects / FAKE

FAKE - F# Make
https://fake.build
Other
1.28k stars 582 forks source link

Fails on M1 (aarch64) Macs #2692

Closed razzmatazz closed 1 year ago

razzmatazz commented 1 year ago

Description

Current version of fake that uses dotnet-6 runtime cannot build FSAC or FAKE itself.

Repro steps

This is on M1/macOS:

  1. Checkout FAKE
  2. Do dotnet tool restore
  3. Do dotnet fake build

Expected behavior

Fake builds sucessfully.

Actual behavior

fake build fails with

<...>
Download of Fake.DotNet.Testing.NUnit 5.21.0-alpha004 done in 2 seconds. (434 kbit/s, 0 MB)
Script is not valid:
    unknown (1,0)-(1,0): Error FS0193: The specified file name or path is too long, or a component of the specified path is too long.
Performance:
<...>

Known workarounds

Apparently the issue is https://github.com/dotnet/runtime/issues/63240 and the fix PR https://github.com/dotnet/runtime/pull/68541 has been merged, but that is only to be included with dotnet/7 release/previews.

Related information

github-actions[bot] commented 1 year ago

Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project!

razzmatazz commented 1 year ago

looks to be duplicate of https://github.com/fsprojects/FAKE/issues/2626, sorry

EverybodyKurts commented 1 year ago

To everybody else that has come across this thread... I had the same problem on my arm64 macbook and solved it by uninstalling the dotnet 6 sdks and runtimes, including aspnet.core 6. I only have dotnet 7 installed on my machine.