Error building on Alpine (on Windows builds ok)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- linux
调研方向
首先,在 Alpine Linux 3.18 上使用 V 0.4.0、gcc 和所报告的 repository revision 重现构建,然后将其与使用 tcc 的 Windows 构建进行比较。检查 src/feed_service.v 中的错误,并确定这些错误是由编译器还是 V 版本导致的;项目能够在 Alpine 上成功构建即表示完成。
由索引模型根据 Issue 内容生成。
描述
When I try to clone and build gitly on Alpine Linux 3.18 using v version: V 0.4.0 3c26bff, I get errors:
F.e.:
/src/feed_service.v:14:23: error: exec() returns a Result, so it should have either an `or {}` block, or `!` at the end
12 | where_repo_ids := repo_ids.map(it.str()).join(', ')
13 |
14 | commits, _ := app.db.exec('
| ~~~~~~
15 | select author, hash, created_at, repo_id, branch_id, message from `Commit`
16 | where repo_id in (${where_repo_ids}) order by created_at desc
/src/feed_service.v:20:16: error: invalid variable `commits`
18 | mut item_id := 0
19 |
20 | for commit in commits {
| ~~~~~~~
21 | vals := commit.vals
22 | author_name := vals[0]
/src/feed_service.v:21:18: error: `commit` does not return a value
19 |
20 | for commit in commits {
21 | vals := commit.vals
| ~~~~
22 | author_name := vals[0]
23 | commit_hash := vals[1]
etc
Compiler used on Alpine Linux: -cc gcc
At the same time, on Windows 10 the same repository builds successfully using v version: V 0.4.0 320057d and tcc compiler.
Probably compiler (gcc vs tcc) is the errors' cause?
I'm not an expert in C compilers etc, so I may be wrong.
Appreciate any help!
- 主要语言
- V
- 星标
- 1.5k
- 派生
- 80
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vlang/gitly 的其他 Issue
-
The Gitly demo site is not allowing registration. Accessing the project at https://gitly.org/alex/v returns a 404 Not Found error.可能重新可做 @medvednikov 于 524 天前认领,目前没有进行中的 PR。 未关闭
-
难度 3/5 1-2 天 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 15/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 35/100
相似的 Issue
-
bug help wanted
难度 2/5 1-3 小时 新手友好度 65/100
DarkStarSystems/pcons#229 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
bherbruck/solvecraft#2155 ·
-
enhancement good first issue no hardware needed
难度 2/5 1 小时以内 新手友好度 92/100
GageLawton/noise-cancellation#219 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
flathub/com.github.rajsolai.textsnatcher#23 · 1 条评论 ·
-
bug/1-unconfirmed kind/bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复