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

swag cant install #610

Closed
bkocadere opened this issue Jan 11, 2020 · 15 comments
Closed

swag cant install #610

bkocadere opened this issue Jan 11, 2020 · 15 comments
Labels

Comments

@bkocadere
Copy link

I cant install swag
image

Your swag version
last
Your go version
1.13.6 windows/amd64

@Graphmaxer
Copy link

Same here, for a workaround I use the binary of this release https://github.com/swaggo/swag/releases/tag/v1.6.4

@bkocadere
Copy link
Author

Same here, for a workaround I use the binary of this release https://github.com/swaggo/swag/releases/tag/v1.6.4

thanks, how can i install binary file?

@Graphmaxer
Copy link

Graphmaxer commented Jan 12, 2020

Same here, for a workaround I use the binary of this release https://github.com/swaggo/swag/releases/tag/v1.6.4

thanks, how can i install binary file?

A better solution for your case is just to use this command:
go get -u github.com/swaggo/swag/cmd/swag@v1.6.3

In my case I was using a dockerfile and I just needed the binary, so I used wget to download it and I used it.

@sdghchj
Copy link
Member

sdghchj commented Jan 13, 2020

v1.6.4 or v1.6.5 ?

@Graphmaxer
Copy link

v1.6.4 or v1.6.5 ?

Last one, v1.6.5, also it is the same error as this old issue #556, but the fix got reverted recently.

@sdghchj
Copy link
Member

sdghchj commented Jan 13, 2020

@easonlin404

@bkocadere
Copy link
Author

1.6.5

@easonlin404
Copy link
Member

@bkocadere I think it caused by GO111MODULE=auto, can you execute:

export GO111MODULE=on

and try again

go get -u github.com/swaggo/swag/cmd/swag

@bkocadere
Copy link
Author

@bkocadere I think it caused by GO111MODULE=auto, can you execute:

export GO111MODULE=on

and try again

go get -u github.com/swaggo/swag/cmd/swag

thanks, how can use 'export' in cmd screen ?

@easonlin404
Copy link
Member

sorry, I didn't note that you use windows environment, please refer https://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-command-prompt/79614 to set environment variables like:

SET GO111MODULE=on

@bkocadere
Copy link
Author

sorry, I didn't note that you use windows environment, please refer https://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-command-prompt/79614 to set environment variables like:

SET GO111MODULE=on

thanks , working

@Graphmaxer
Copy link

Graphmaxer commented Jan 13, 2020

You shouldn't close this issue, the bug is still here.

@bkocadere bkocadere reopened this Jan 15, 2020
@alvioralali
Copy link

@bkocadere I think it caused by GO111MODULE=auto, can you execute:

export GO111MODULE=on

and try again

go get -u github.com/swaggo/swag/cmd/swag

thanks bro it's working

@easonlin404
Copy link
Member

Please use the latest version against master to try again, the issue shoud be fixed by #618.

@leoofernandez
Copy link

@bkocadere I think it caused by GO111MODULE=auto, can you execute:

export GO111MODULE=on

and try again

go get -u github.com/swaggo/swag/cmd/swag

Thanks! Its working. I had days with this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants