-
Notifications
You must be signed in to change notification settings - Fork 30
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
cannot run on mac #7
Comments
@faiverson you need to add execution permission (chmod +x swaggymnia) :) |
@saturngod can you share your 2018-02-02.json file :) |
@mlabouardy chmod 777 includes permissions for read, write and execute for everybody |
@faiverson you need to add the binary to the PATH variable or use the relative path to use the cli |
@mlabouardy I will send you from email. |
Also tried it out inside a docker container running Linux, does not work as well.
output:
|
This is still an issue on Mac for me. Getting the same error! |
Here is a fixed binary for MacOS. If Windows people or Linux people need a new binary please let me know and I can make one |
Still not added as command on mac even with Fyb3roptik solution |
What do you mean not added as a command? if you're in the same folder as it then run ./swaggymnia or you can add your bin PATH to pwd |
Same problem on Ubuntu 17.10 Command ./swaggymnia generate -insomnia project.json -config config.json -o json Result panic: assignment to entry in nil map
goroutine 1 [running]:
main.parse(0xc420014b30, 0x6, 0x3, 0xed3f78160, 0x35e1f200, 0x0, 0xc42000b100, 0x1b, 0xc420104000, 0x20, ...)
C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:51 +0x32c
main.(*Swagger).Generate(0xc4200df7d8, 0x7ffc2f0f026f, 0x18, 0x7ffc2f0f0290, 0xb, 0x7ffc2f0f029f, 0x4)
C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:83 +0x11f
main.main.func1(0xc420088840, 0x10100, 0xc420088840)
C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:57 +0x180
github.com/urfave/cli.HandleAction(0x5bd740, 0x608ba0, 0xc420088840, 0xc42001a300, 0x0)
C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:502 +0xd4
github.com/urfave/cli.Command.Run(0x5fb2c0, 0x8, 0x0, 0x0, 0xc4200148d0, 0x1, 0x1, 0x602cf6, 0x1e, 0x0, ...)
C:/Users/Mohamed/go/src/github.com/urfave/cli/command.go:210 +0xb87
github.com/urfave/cli.(*App).Run(0xc4200c01c0, 0xc42000e100, 0x8, 0x8, 0x0, 0x0)
C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:259 +0x7b7
main.main()
C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:66 +0x515 |
It looks like there is a PR fixing this problem. |
Can you make this fixed binay for linux? |
Here are all 3 Windows - 64bithttps://s3-us-west-2.amazonaws.com/jrpublic/windows/swaggymnia.exe Machttps://s3-us-west-2.amazonaws.com/jrpublic/mac/swaggymnia Linux - 64bithttps://s3-us-west-2.amazonaws.com/jrpublic/linux/swaggymnia |
@Fyb3roptik Not able to download it for MacOS from https://s3-us-west-2.amazonaws.com/jrpublic/mac/swaggymnia. Getting permission forbidden error. is the link still same? |
Check out my repo here https://github.com/Fyb3roptik/swaggomnia There are releases |
Expected behavior
Get the swagger json format
Current behavior
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: