swag icon indicating copy to clipboard operation
swag copied to clipboard

Darwin arm64 release is broken

Open ArtAndreev opened this issue 2 years ago • 1 comments

Describe the bug I wanted to install swag from GitHub releases page. Downloaded it, tar-extracted and runned swag init -h. Got Gin-server instead of generator.

To Reproduce Steps to reproduce the behavior:

  1. Go to last release page: https://github.com/swaggo/swag/releases/tag/v1.8.2
  2. Download swag_1.8.2_darwin_arm64.tar.gz (https://github.com/swaggo/swag/releases/download/v1.8.2/swag_1.8.2_darwin_arm64.tar.gz)
  3. Cd to downloads and extract swag from tar.gz archive: tar -xzvf swag_1.8.2_darwin_arm64.tar.gz (and cleared xattr-flags to execute without macOS security checks xattr -c swag).
  4. Run ./swag init -h, get running server.

Expected behavior Get help page about generator features.

Screenshots Console output is and program doesn't exit:

[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

Your swag version v1.8.2

Your go version go version go1.18.1 darwin/arm64

Desktop (please complete the following information):

  • OS: macOS Monterey 12.0.1 (21A559)
  • Browser: Safari
  • Version: 15.1 (17612.2.9.1.20)

Additional context If you install swag using go get, no problem occurs.

ArtAndreev avatar May 17 '22 11:05 ArtAndreev

Same for linux amd64

guilhem avatar May 30 '22 10:05 guilhem