ionide / Fornax

Scriptable static site generator using type safe F# DSL to define page templates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to install as global tool on osx-arm64 architecture.

NatElkins opened this issue · comments

Describe the bug
Wanted to play with F# and Fornax, haven't touched it in a few years. I installed the .NET SDK via brew, and then installed Fornax as a global tool. Tried it run it, but it complains about not being able to find the .NET location.

To Reproduce

  1. Install dotnet-sdk cask via brew on M1 Mac.
  2. dotnet tool install fornax -g.
  3. fornax

Expected behaviour
Fornax gets invoked properly.

Screenshots
The following is produced:

You must install .NET to run this application.

App: /Users/nat/.dotnet/tools/fornax
Architecture: x64
App host version: 6.0.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.12-x64&apphost_version=6.0.8

Environment (please complete the following information):

➜  fornax_test dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.400
 Commit:    7771abd614

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.5
 OS Platform: Darwin
 RID:         osx.12-arm64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.400/

global.json file:
  Not found

Host:
  Version:      6.0.8
  Architecture: arm64
  Commit:       55fb7ef977

.NET SDKs installed:
  6.0.400 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

Additional context
From the F# Slack:
image
dotnet/sdk#26417

image

Sounds like we might be able to get around it by targeting .NET 6.