Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 42
Update docker image, switch toolchain to llvm-22 with cmake-4.2#46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,16 @@ | ||
| services: | ||
| rmcs-develop: | ||
| image: qzhhhi/rmcs-develop:latest | ||
| user: "${CONTAINER_USER}" | ||
| privileged: true | ||
| command: > | ||
| bash -c " | ||
| sudo chown -R ${CONTAINER_USER}:${CONTAINER_USER} ${CONTAINER_HOME}/.config | ||
| exec bash | ||
| " | ||
| user: "1000:1000" | ||
| volumes: | ||
| - /dev:/dev:bind | ||
| - /tmp/.X11-unix:/tmp/.X11-unix:bind | ||
| - /run/user/1000/wayland-0:/run/user/1000/wayland-0 | ||
| - /run/user/1000/wayland-0:/run/user/1000/wayland-0:bind | ||
| - ${HOST_NVIM_DIR}:${CONTAINER_HOME}/.config/nvim/:bind | ||
| - .:/workspaces/RMCS:bind | ||
| environment: | ||
| - DISPLAY=${DISPLAY} | ||
| - WAYLAND_DISPLAY=${WAYLAND_DISPLAY} | ||
| network_mode: host | ||
| tty: true | ||
| stdin_open: true | ||
| stdin_open: true |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
cmake 4.2.3 release💡 Result:
CMake 4.2.3 was released and made available for download on January 29, 2026. [1][2]
Sources: [1][2][3][4]
🏁 Script executed:
Repository: Alliance-Algorithm/RMCS
Length of output: 237
🏁 Script executed:
Repository: Alliance-Algorithm/RMCS
Length of output: 138
🏁 Script executed:
Repository: Alliance-Algorithm/RMCS
Length of output: 3973
cmake 4.2.3 安装到
/opt/cmake/但未加入 PATH,且与 apt 安装的 cmake 重复第 81 行已通过
apt-get install安装了系统 cmake,第 120-122 行又将 cmake 4.2.3 安装到/opt/cmake/。但第 137 行将 PATH 导出注释掉了,因此/opt/cmake/bin不会出现在$PATH中,用户实际使用的仍是 apt 安装的旧版本 cmake。这意味着:
/opt/cmake/占用了镜像空间但未被使用请确认意图:若确实需要 cmake 4.2.3,应取消注释第 137 行;若不需要,则应移除此 RUN 块以减小镜像体积。
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
未来项目会引入 cxx module,这是预安装
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@creeper5820理解了,感谢说明!既然是为未来引入 C++ modules 预先安装 cmake 4.2.3,这个做法是合理的。当项目开始使用 C++ modules 时,记得取消注释第 137 行的 PATH 导出,让新版本 cmake 生效即可。提前准备好工具链可以避免后续重新构建镜像的麻烦。👍
✏️ Learnings added