feat(open-code-review): expose ocr alias for the CLI binary
CI / check (push) Has been cancelled

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:
2026-09-28 15:30:31 +03:00
parent b6becd5e01
commit 704b8e577a
+6
View File
@@ -24,6 +24,12 @@ buildGoModule rec {
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 = [
"-s"
"-w"