You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by "EkkoKo (via GitHub)" <gi...@apache.org> on 2024/07/23 09:55:28 UTC
[I] make generate on windows 11 fails [incubator-answer]
EkkoKo opened a new issue, #1040:
URL: https://github.com/apache/incubator-answer/issues/1040
## Describe the bug
When running make generate on windows 11, I get the error
```
$ make generate
/usr/bin/sh: line 1: /c/Program: No such file or directory
make: *** [generate] Error 127
```
### To Reproduce
Steps to reproduce the behavior:
1. Install make for windows
2. Open Git bash in the root folder of `incubator-answer`
3. Run `make generate` on a windows 11 PC
### Screenshots

### Platform
- Device: Desktop
- Branch: main
- OS: Windows 11
- Version: v1.3.5
### Solution
After taking a look at the `Makefile` I found the line that broke the script:
```
#Makefile
11: GO=$(GO_ENV) $(shell which go)
```
I Fixed it by adding quotes like this:
```
11:GO=$(GO_ENV) "$(shell which go)"
```
tested it both on Ubuntu 22.04 and Windows 11 and seems to be working!
--
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 generate on windows 11 fails [incubator-answer]
Posted by "LinkinStars (via GitHub)" <gi...@apache.org>.
LinkinStars commented on issue #1040:
URL: https://github.com/apache/incubator-answer/issues/1040#issuecomment-2270521690
Fix in #1040
--
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 generate on windows 11 fails [incubator-answer]
Posted by "LinkinStars (via GitHub)" <gi...@apache.org>.
LinkinStars closed issue #1040: make generate on windows 11 fails
URL: https://github.com/apache/incubator-answer/issues/1040
--
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 generate on windows 11 fails [incubator-answer]
Posted by "zahash (via GitHub)" <gi...@apache.org>.
zahash commented on issue #1040:
URL: https://github.com/apache/incubator-answer/issues/1040#issuecomment-2257502898
use a better OS lmao
--
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