Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# lark-cli 32-bit Linux 版本

> 飞书 lark-cli 命令行工具的多架构 Linux 编译版本

## 下载

请到 [Releases](https://github.com/larksuite/cli/releases) 页面下载对应架构的二进制文件。

## 支持的架构

| 二进制文件 | 架构 | 类型 |
|-----------|------|------|
| lark-cli-linux-386 | i386 | 32-bit x86 |
| lark-cli-linux-arm | ARM | 32-bit ARM |
| lark-cli-linux-arm64 | ARM64 | 64-bit ARM |
| lark-cli-linux-mips | MIPS | 32-bit 大端 |
| lark-cli-linux-mipsle | MIPS | 32-bit 小端 |
| lark-cli-linux-mips64 | MIPS64 | 64-bit 大端 |
| lark-cli-linux-mips64le | MIPS64 | 64-bit 小端 |
| lark-cli-linux-ppc64 | PowerPC | 64-bit |
| lark-cli-linux-s390x | IBM S/390 | 64-bit |
| lark-cli-linux-riscv64 | RISC-V | 64-bit |
Comment on lines +11 to +22
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

文档中的架构列表与下载示例和当前构建配置不一致。

这里列出的 386/arm/mips*/ppc64/s390x/riscv64 以及示例二进制名 lark-cli-linux-386,与当前发布模板和构建脚本不匹配(现有上下文仅显示 linux/amd64linux/arm64,且产物命名为 lark-cli-<version>-linux-<arch>)。这会直接导致用户按文档下载失败。建议将“支持架构表”和 wget/chmod/运行 示例改成与实际 Release 产物一致,或先同步提交对应构建流水线变更。

Also applies to: 28-35

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README_zh.md` around lines 11 - 22, The architecture table and download
examples reference outdated artifacts like "lark-cli-linux-386" and
architectures (386/arm/mips*/ppc64/s390x/riscv64) that do not match the current
release naming pattern and builds; update README_zh.md to list only the actual
supported targets (e.g., linux/amd64 and linux/arm64) and change the
wget/chmod/run examples to use the real release artifact pattern
"lark-cli-<version>-linux-<arch>" (or sync the docs to new pipelines if you
intend to support the other arches), ensuring the table headers and any example
binary names are replaced accordingly.


## 使用方法

```bash
# 下载对应架构的版本
wget https://github.com/larksuite/cli/releases/download/v32bit/assets/lark-cli-linux-386

# 赋予执行权限
chmod +x lark-cli-linux-386

# 运行
./lark-cli-linux-386 --help
```

## 编译说明

这些版本使用修复后的 `oapi-sdk-go` SDK 编译,以支持 32 位系统。

SDK 修复 PR: https://github.com/larksuite/oapi-sdk-go/pull/211
Comment on lines +39 to +41
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# 验证仓库内是否已落地 SDK 修复(只读)
set -e
echo "== go.mod dependency =="
rg -n 'github.com/larksuite/oapi-sdk-go/v3|^replace ' go.mod
echo
echo "== go.sum entries =="
rg -n 'github.com/larksuite/oapi-sdk-go/v3' go.sum || true
echo
echo "== any local replace or patched reference =="
rg -n 'oapi-sdk-go|replace|pull/211|patched|修复' --glob '!**/vendor/**'

Repository: larksuite/cli

Length of output: 50372


🏁 Script executed:

#!/bin/bash
set -e

echo "== README_zh.md: lines 35-45 =="
nl -ba README_zh.md | sed -n '35,45p'

echo
echo "== go.mod: oapi-sdk-go entries (and any replace) =="
rg -n 'oapi-sdk-go|replace ' go.mod || true
echo
echo "== go.sum: oapi-sdk-go/v3 entries (limit) =="
rg -n 'github.com/larksuite/oapi-sdk-go/v3' go.sum || true | head -n 20

echo
echo "== any reference to pull/211 or PR number 211 related to oapi-sdk-go =="
rg -n 'oapi-sdk-go|pull/211|PR[ -]?211|211' --glob '!**/vendor/**' --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' || true

Repository: larksuite/cli

Length of output: 50428


🏁 Script executed:

#!/bin/bash
set -e

echo "== README_zh.md: lines 35-45 (with numbers) =="
awk 'NR>=35 && NR<=45 {printf "%d:%s\n", NR, $0}' README_zh.md

echo
echo "== README_zh.md: mentions of oapi-sdk-go / pull/211 =="
rg -n 'oapi-sdk-go|pull/211|SDK 修复 PR' README_zh.md || true

echo
echo "== go.mod: exact oapi-sdk-go lines and any replace blocks =="
rg -n 'oapi-sdk-go|^replace ' go.mod || true

echo
echo "== go.mod: context around first match =="
first=$(rg -n 'oapi-sdk-go' go.mod | head -n1 | cut -d: -f1)
if [ -n "$first" ]; then
  start=$((first-5)); [ $start -lt 1 ] && start=1
  end=$((first+5))
  sed -n "${start},${end}p" go.mod
fi

echo
echo "== any oapi-sdk-go/pull/211 reference in repo (narrow) =="
rg -n 'oapi-sdk-go/pull/211|pull/211' --glob '!**/vendor/**' --glob '!**/node_modules/**' || true

echo
echo "== go.mod files in repo (to ensure we checked the right one) =="
find . -maxdepth 4 -name go.mod -print

Repository: larksuite/cli

Length of output: 1195


README_zh.md:把“已使用修复后 SDK 编译”改为条件性表述或补充版本到 PR 的映射

  • README_zh.md 39-41 表示已使用修复后的 oapi-sdk-go(链接到 PR #211),但当前 go.mod 仅固定为 github.com/larksuite/oapi-sdk-go/v3 v3.5.4,且未看到任何 replace/本地补丁能证明确实落地了 PR #211 的修复。
  • 建议将文案改为“需先确保包含 PR #211 修复的 oapi-sdk-go 版本(以当前 go.mod 为准)后再编译 32 位版本”,或在文档中补充“v3.5.4 对应 PR #211 已合并修复”的明确说明。
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README_zh.md` around lines 39 - 41, Update README_zh.md to avoid asserting
the repo was built with the patched oapi-sdk-go; change the sentence that
currently says "已使用修复后的 `oapi-sdk-go` SDK 编译" to a conditional statement that
tells users to ensure they have a version containing PR `#211` (or map specific
versions to the PR), e.g. instructing "请确保使用包含 PR `#211` 修复的 `oapi-sdk-go` 版本(检查
go.mod 中的 github.com/larksuite/oapi-sdk-go/v3 版本或任何 replace 指令)再编译 32 位版本" or
explicitly state that v3.5.4 includes the fix if you can verify it; reference
the PR number (`#211`) and the go.mod pinned module
(github.com/larksuite/oapi-sdk-go/v3 v3.5.4) in the updated text.

Binary file added assets/lark-cli-linux-386
Binary file not shown.
Binary file added assets/lark-cli-linux-arm
Binary file not shown.
Binary file added assets/lark-cli-linux-arm64
Binary file not shown.
Binary file added assets/lark-cli-linux-mips
Binary file not shown.
Binary file added assets/lark-cli-linux-mips64
Binary file not shown.
Binary file added assets/lark-cli-linux-mips64le
Binary file not shown.
Binary file added assets/lark-cli-linux-mipsle
Binary file not shown.
Binary file added assets/lark-cli-linux-ppc64
Binary file not shown.
Binary file added assets/lark-cli-linux-riscv64
Binary file not shown.
Binary file added assets/lark-cli-linux-s390x
Binary file not shown.
Loading