jernsting commented on PR #1074:
URL: 
https://github.com/apache/incubator-answer/pull/1074#issuecomment-2306420434

   Yes, sorry, I did not use the makefile.
   
   It seems that the go version does not have swaggo installed.
   You can fix this by adding
   
   ```
        @$(GO) get github.com/swaggo/swag/cmd/[email protected]
        @$(GO) install github.com/swaggo/swag/cmd/[email protected]
   ```
   
   To the makefile in the generate block. Then it works in my dev setup.
   
   Here my resulting generate block in the Makefile:
   
   ```
   generate:
        @$(GO) get github.com/google/wire/cmd/[email protected]
        @$(GO) get github.com/golang/mock/[email protected]
        @$(GO) get github.com/swaggo/swag/cmd/[email protected]
        @$(GO) install github.com/swaggo/swag/cmd/[email protected]
        @$(GO) install github.com/google/wire/cmd/[email protected]
        @$(GO) install github.com/golang/mock/[email protected]
        @$(GO) generate ./...
        @$(GO) mod tidy
   ```
   
   I also pushed this change to my fork:
   https://github.com/jernsting/incubator-answer/blob/main/Makefile#L23-L31


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to