LinkinStars commented on issue #1471:
URL: https://github.com/apache/answer/issues/1471#issuecomment-3948700497

   > [@LinkinStars](https://github.com/LinkinStars) are you sure that the 
`./answer build ...` pulls in the same version as the answer binary that 
executes it? I noticed that since I'm using `ANSWER_MODULE` env variable you 
pointed out in [#1493](https://github.com/apache/answer/issues/1493), I do see 
the _Intelligence_ menu item in the admin site. Before when I downloaded the 
Answer v2 binary (which should have this menu item I believe), and build a new 
binary to include the plugins, it did not show. I no longer see the `pq: 
invalid input syntax for type bigint: ""` error.
   > 
   > This makes me think that maybe `./answer build ...` did not pull in the 
exact same Go source to rebuild the Answer binary + plugins. Instead it relied 
on an older source in my `$GOPATH`. Could that be?
   > 
   > I see that this happens when `ANSWER_MODULE` is set: 
https://github.com/apache/answer/blob/main/internal/cli/build.go#L202
   > 
   > But it is not clear to me if there is something that enforces pulling in 
the exact same Go source version as the `answer` binary that builds the new 
binary?
   
   If `ANSWER_MODULE` is specified, the code will be compiled using the path 
designated by `ANSWER_MODULE`. If `ANSWER_MODULE` is not specified, the latest 
version of the version will be fetched from the remote by default.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to