单二进制分发与 CLI 规范(version 子命令、多平台 Release)
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- github-actions, go, node.js
- Domain
- build-system, cli, release
Research direction
Start by reading the existing Go entry point, Makefile, API version handler, and GitHub Actions workflows; the issue does not name their paths. Then inspect the open pull request #20, which already targets this work. Done means the version command and API share injected version data, builds work without Node, and tagged releases publish all five platform packages with checksums.
Written by the indexing model from the issue text.
Description
背景
目标环境多为内网,单二进制 + 拷贝即用是首发形态;容器形态见 #8。CLI 规范对齐仓库发行纪律:所有发行的 CLI 二进制必须支持 version 子命令查看语义化版本号。
需求
- 子命令:
open-img-sync serve:启动 Web + API 服务(也可无参数默认 serve,行为一致需明确)open-img-sync version:输出版本、commit、构建时间(与-version等价可并存)
- 前端构建产物 go:embed 嵌入;
make build(纯 Go 环境)与make web(Node 20+)分离 - 多平台交叉编译:linux/darwin × amd64/arm64 + windows/amd64,打包 tar.gz/zip 附 README 与 LICENSE,附 sha256 校验
- Release 自动化:tag(v*)或 Release 发布触发 workflow,产物挂到 Release(含 sha256)
- 版本注入:ldflags 写入语义化版本(git describe),
version子命令与/api版本接口同源
技术要点
- workflow 可参考 open-pdf 的 release.yml 成熟模式(5 平台矩阵 + artifact 汇总单点上传)
- 依赖零 CGO,scratch 运行的静态链接验证
验收标准
-
open-img-sync version输出语义化版本 - 首个 Release 产物齐全:5 平台包 + sha256,均可下载运行
- 无 Node 环境下
make build成功(嵌入已提交的 dist 或等价方案)
- Dominant language
- Go
- Stars
- 2
- Forks
- 1
- Avg merge
- 1h 37m
- Merged PRs (30d)
- 6
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LinuxSuRen/open-img-sync
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
LinuxSuRen/open-img-sync#18 ·
Maintainers usually reply within 1 day
-
requirement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
LinuxSuRen/open-img-sync#23 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
LinuxSuRen/open-img-sync#19 ·
Maintainers usually reply within 1 day
-
容器化运行与多架构镜像发布(GHCR,同版本同源)Possibly taken @linuxsuren-fs claimed this 5 days ago. Openrequirement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/open-img-sync#8 · 1 comment ·
Maintainers usually reply within 1 day
-
Web 管理界面(Vue 3,嵌入单二进制)Possibly taken @linuxsuren-fs claimed this 5 days ago. Openrequirement
Difficulty 5/5 Over a week Newbie friendliness 20/100
LinuxSuRen/open-img-sync#6 · 1 comment ·
Maintainers usually reply within 1 day
All issues in LinuxSuRen/open-img-sync
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
aminueza/terraform-provider-minio#1406 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
kubernetes/kubeadm#3339 ·
-
A failed hydrate call can be dropped when the row's wait is ready tooPossibly taken @turbot-agent-fleet claimed this today. Openagent:ready
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
turbot/steampipe-plugin-sdk#1018 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day
-
enhancement needs-review
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day