Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting started does not work on dotnet 6 macOS M1 #48

Closed
sshquack opened this issue Dec 19, 2021 · 5 comments
Closed

Getting started does not work on dotnet 6 macOS M1 #48

sshquack opened this issue Dec 19, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@sshquack
Copy link
Contributor

sshquack commented Dec 19, 2021

Thanks for this fantastic project! I'm trying out Craftsman for the first time following https://wrapt.dev/docs/installation The CLI installs successfully but errors out when invoked.

Steps to reproduce

❯ dotnet tool install -g craftsman
You can invoke the tool using the following command: craftsman
Tool 'craftsman' (version '0.12.2') was successfully installed.

❯ craftsman
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '5.0.0' (arm64) was not found.
  - The following frameworks were found:
      6.0.1 at [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=5.0.0&arch=arm64&rid=osx.12-arm64

❯ echo $?
150

❯ craftsman list
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '5.0.0' (arm64) was not found.
  - The following frameworks were found:
      6.0.1 at [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=5.0.0&arch=arm64&rid=osx.12-arm64

❯ dotnet tool update -g craftsman
Tool 'craftsman' was reinstalled with the latest stable version (version '0.12.2').

Further technical details

Environment info

❯ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.101
 Commit:    ef49f6213a

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

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

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

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

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Dependencies are working as expected:

❯ dotnet tool list --global
Package Id      Version      Commands
--------------------------------------
craftsman       0.12.2       craftsman
dotnet-ef       6.0.1        dotnet-ef

~/Downloads
❯ dotnet ef --version
Entity Framework Core .NET Command-line Tools
6.0.1

~/Downloads
❯ docker --version
Docker version 20.10.11, build dea9396

Dotnet 6 is the only version with native arm64 support for M1 mac. So i do not have dotnet 5 installed.
Screenshot 000008@2x

I created a small web API template with dotnet 6 to verify that it successfully works as expected. How do I get past this error?

@sshquack sshquack added the bug Something isn't working label Dec 19, 2021
@pdevito3
Copy link
Owner

hey @sshquack thanks for reporting this (and for the well written ticket).

yeah, so this seems to be because Craftsman is still actually using .NET 5 under the hood really just because I didn't have a driver to upgrade yet and wanted to focus on some other stuff, but it would seem I have a good reason now! I'll see if I can get a new release out on .NET 6 for you in the next few days.

Thanks again for letting me know!

@sshquack
Copy link
Contributor Author

@pdevito3 Thank you! I'll watch out for your update and give it another go. Looking forward to trying this out again.

@pdevito3
Copy link
Owner

@sshquack I just published v0.12.3 if you want to give it a whirl! lots of .net 6 updates i want to make but i just bumped the version for now to unblock you. let me know if it doesn't work, otherwise i'll assume it does close this in the next few days :-)

@sshquack
Copy link
Contributor Author

Woot! The new version worked.

❯ dotnet tool update -g craftsman
Tool 'craftsman' was successfully updated from version '0.12.2' to version '0.12.3'.

❯ craftsman --version
v0.12.3

Thank you for getting this release so fast 🙇 I'm gonna continue reading through the docs.

@pdevito3
Copy link
Owner

Awesome! Feel free to reach out if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants