[GH-ISSUE #32] Found an error to start api project #8

Closed
opened 2026-03-03 16:35:52 +03:00 by kerem · 6 comments
Owner

Originally created by @Alkiyogoma on GitHub (Nov 29, 2022).
Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/32

main.go:6:2: no required module provides package github.com/NdoleStudio/httpsms/docs; to add it:
go get github.com/NdoleStudio/httpsms/docs

when I run go get github.com/NdoleStudio/httpsms/docs
error go: github.com/NdoleStudio/httpsms/docs: no matching versions for query "upgrade"
Run go failed

go: github.com/NdoleStudio/httpsms/docs: no matching versions for query "upgrade"

Originally created by @Alkiyogoma on GitHub (Nov 29, 2022). Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/32 main.go:6:2: no required module provides package github.com/NdoleStudio/httpsms/docs; to add it: go get github.com/NdoleStudio/httpsms/docs **when I run** go get github.com/NdoleStudio/httpsms/docs **error** go: github.com/NdoleStudio/httpsms/docs: no matching versions for query "upgrade" ![Run go failed](https://user-images.githubusercontent.com/50145104/204544472-86820089-6f51-4065-820a-a44c81cb11f3.png) go: github.com/NdoleStudio/httpsms/docs: no matching versions for query "upgrade"
kerem closed this issue 2026-03-03 16:35:52 +03:00
Author
Owner

@AchoArnold commented on GitHub (Nov 30, 2022):

Hello @Alkiyogoma

Sorry it's not very obvious, to generate the docs package install swag https://github.com/swaggo/swag

and then run the following command inside the api folder

swag init

This will generate the swagger documentation inside the docs folder.

I've done it in the docker file here https://github.com/NdoleStudio/httpsms/blob/main/api/Dockerfile

<!-- gh-comment-id:1332278809 --> @AchoArnold commented on GitHub (Nov 30, 2022): Hello @Alkiyogoma Sorry it's not very obvious, to generate the `docs` package install `swag` https://github.com/swaggo/swag and then run the following command inside the `api` folder ```bash swag init ``` This will generate the swagger documentation inside the `docs` folder. I've done it in the docker file here https://github.com/NdoleStudio/httpsms/blob/main/api/Dockerfile
Author
Owner

@Alkiyogoma commented on GitHub (Dec 1, 2022):

Thanks @AchoArnold

I will do it.

<!-- gh-comment-id:1333269918 --> @Alkiyogoma commented on GitHub (Dec 1, 2022): Thanks @AchoArnold I will do it.
Author
Owner

@AchoArnold commented on GitHub (Dec 1, 2022):

Keep me posted if you succeed @Alkiyogoma

<!-- gh-comment-id:1333679384 --> @AchoArnold commented on GitHub (Dec 1, 2022): Keep me posted if you succeed @Alkiyogoma
Author
Owner

@Alkiyogoma commented on GitHub (Dec 2, 2022):

Hello @AchoArnold, Thanks It worked.

first, i cleared all cache

go clean --modcache

go get github.com/swaggo/http-swagger

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

swag init

<!-- gh-comment-id:1334781593 --> @Alkiyogoma commented on GitHub (Dec 2, 2022): Hello @AchoArnold, Thanks It worked. first, i cleared all cache `go clean --modcache` `go get github.com/swaggo/http-swagger ` `go get github.com/swaggo/swag/cmd/swag` `swag init`
Author
Owner

@AchoArnold commented on GitHub (Dec 3, 2022):

Hello @Alkiyogoma to make it work completely, you'll need to set the correct values in the .env.production file. You'll need a firebase account and a cockrochDB databse account.

<!-- gh-comment-id:1336116045 --> @AchoArnold commented on GitHub (Dec 3, 2022): Hello @Alkiyogoma to make it work completely, you'll need to set the correct values in the `.env.production` file. You'll need a firebase account and a cockrochDB databse account.
Author
Owner

@Alkiyogoma commented on GitHub (Dec 3, 2022):

Thanks, It worked. Once again thanks for your help

<!-- gh-comment-id:1336117229 --> @Alkiyogoma commented on GitHub (Dec 3, 2022): Thanks, It worked. Once again thanks for your help
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/httpsms#8
No description provided.