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

Support for Apple Silicon with prebuilt binaries #1445

Open
dumindu opened this issue Jan 22, 2023 · 1 comment
Open

Support for Apple Silicon with prebuilt binaries #1445

dumindu opened this issue Jan 22, 2023 · 1 comment

Comments

@dumindu
Copy link

dumindu commented Jan 22, 2023

Describe the bug
Support for Apple Silicon

To Reproduce
Steps to reproduce the behavior:

  1. Download the executable on release page
  2. Run swag on Apple Silicon
  3. You will get bad CPU type in executable: ./swag
  4. If you use the last Apple silicon support swag version, it opens some debug Gin server
./swag init -g cmd/api/main.go -o docs/swagger                                                                                               
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /api/v1/map               --> github.com/swaggo/swag/example/object-map-example/controller.(*Controller).GetMap-fm (3 handlers)
[GIN-debug] GET    /swagger/*any             --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (3 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on :8080

Expected behavior
All MacBooks are comes with Apple Silicon these days. Better if we can download the ARM version on release page

Your swag version
e.g. 1.8.9

Your go version
e.g. 1.19

Desktop (please complete the following information):

  • OS: MacOS/ ARM
@dumindu dumindu changed the title Support for Apple Silicon Support for Apple Silicon with prebuilt binaries Jan 23, 2023
@ubogdan
Copy link
Contributor

ubogdan commented Jan 25, 2023

Hi,
We will include the darwin/arm64 version in the next release. Thanks for bringing this to our attention.

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

No branches or pull requests

2 participants