Upstream and the bundled OpenCode plugin invoke the tool as `ocr`, but the Go build names the binary after its cmd/ directory (`opencodereview`), so the CLI was missing from PATH under the name everything expects.
This commit is contained in:
@@ -24,6 +24,12 @@ buildGoModule rec {
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
# Upstream (and the bundled OpenCode plugin) invokes the CLI as `ocr`, but the
|
||||||
|
# Go build names the binary after its cmd/ directory.
|
||||||
|
postInstall = ''
|
||||||
|
ln -s $out/bin/opencodereview $out/bin/ocr
|
||||||
|
'';
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
|
|||||||
Reference in New Issue
Block a user