You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by "surapuramakhil (via GitHub)" <gi...@apache.org> on 2024/01/21 21:32:42 UTC

[I] Make build fails [incubator-answer]

surapuramakhil opened a new issue, #734:
URL: https://github.com/apache/incubator-answer/issues/734

   ## Describe the bug
   
   A clear and concise description of what the bug is.
   
   cloned repo - followed documentation installed all pre-requisite
   
   when I run make build command below is the output
   
   ```sh
   akhil@Akhil-S:~/startup/incubator-answer$ make build
   wire: github.com/apache/incubator-answer/cmd: wrote /home/akhil/startup/incubator-answer/cmd/wire_gen.go
   internal/service/siteinfo_common/siteinfo_service.go:33: running "mockgen": exec: "mockgen": executable file not found in $PATH
   make: *** [Makefile:28: generate] Error 1
   ``` 
   
   ### To Reproduce
   
   Steps to reproduce the behavior:
   
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   ### Expected behavior
   
   A clear and concise description of what you expected to happen.
   
   ### Screenshots
   
   If applicable, add screenshots or video to help explain your problem.
   
   ### Platform
   
   Not UI / app related issue.  build related issue.
   using WSL - ubuntu
   
   - Device: [e.g. Desktop, Mobile] 
   - OS: [e.g. macOS]
   - Browser and version: [e.g. Chrome, Safari]
   - Version: [e.g. v1.2.0]
   


-- 
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: commits-unsubscribe@answer.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Make build fails [incubator-answer]

Posted by "fenbox (via GitHub)" <gi...@apache.org>.
fenbox closed issue #734: Make build fails
URL: https://github.com/apache/incubator-answer/issues/734


-- 
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: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Make build fails [incubator-answer]

Posted by "zahash (via GitHub)" <gi...@apache.org>.
zahash commented on issue #734:
URL: https://github.com/apache/incubator-answer/issues/734#issuecomment-1961144766

   i had this same issue.
   
   you also need to add /home/<your_username>/go/bin  to your path
   this is where go keeps all the installed binaries
   you can find the mockgen binary there
   
   i think you only added the path where go was installed.


-- 
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: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Make build fails [incubator-answer]

Posted by "LinkinStars (via GitHub)" <gi...@apache.org>.
LinkinStars commented on issue #734:
URL: https://github.com/apache/incubator-answer/issues/734#issuecomment-1902885633

   It looks like it's caused by `mockgen` not having to be installed successfully. Try using the `make generate` command to install it. Alternatively, you can use `go install github.com/golang/mock/mockgen@v1.6.0`


-- 
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: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Make build fails [incubator-answer]

Posted by "surapuramakhil (via GitHub)" <gi...@apache.org>.
surapuramakhil commented on issue #734:
URL: https://github.com/apache/incubator-answer/issues/734#issuecomment-1902785531

   Is this supposed to run only from docker container?


-- 
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: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org