MX will occasionally fail to find .mx_vcs_root in some circumstances
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu trong mx.py, tại logic tìm kiếm .mx_vcs_root và xây dựng đường dẫn đến ci.hocon từ current_dir. Tái hiện sự khác biệt giữa việc build trực tiếp recipe truffleruby và conan install, sau đó xác định thư mục nào cần được kiểm tra trong trường hợp sandboxed. Hoàn thành khi root được tìm thấy một cách đáng tin cậy mà không làm hỏng việc build trực tiếp từ repository.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I might be in the wrong proposing this, but after I made this small edit, it fixed the problem for me.
I'm trying to set up a conan recipe for truffleruby (yeah i know its java and conan is for c++ but truffleruby supports the ruby C api and conan is a pretty nice way of managing C/C++ dependencies) and I was getting a really weird build error that did not make much sense, I was not getting the error building the recipe directly from the recipe's git repo, but I was getting it using conan install.

Conan install is a much more sandboxed environment that was likely messing with things causing the problem.
I decided to go through mx.py and see where it was trying to find .mx_vcs_root, and I noticed that it doesn't actually check if the directory starts with mx. (this is printing out current_dir)


After changing some lines around to check inside the mx dir that might be in current_dir, it fixed the problem.
hocon = join(current_dir, 'ci.hocon')
mx_vcs_root = join(current_dir, '.mx_vcs_root')
hocon = join(current_dir, "mx", 'ci.hocon')
mx_vcs_root = join(current_dir, "mx", '.mx_vcs_root')
Because I really don't understand how mx or any of the system revolving around it works, or even what these files are supposed to do, (I assume it marks where the mx git repo is?) I am unsure if this is intentional, or because this case happens so rarely nobody ever really tests it.
I'll assume it is the latter since when I tried a build straight from the truffleruby repository and patching mx.py, it worked fine.
I honestly don't really know what I am doing here, so I am probably wrong, but it's worth at least bringing the problem up.
- Ngôn ngữ chính
- Python
- Star
- 205
- Fork
- 131
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của graalvm/mx
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
Error while doing maven-installCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Use --depth 1 on "git clone"sĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Issue tương tự
-
[Suggestion]: Build a Zero-Dependency Python Supply-Chain, SBOM, & MCP Security Verifier CLIĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pdm-project/pdm#4042 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
change relation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
globalwordnet/english-wordnet#1467 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pr-babysit: the validator reports only the hex part of the harvest fingerprint, so a launch stops review-report-unusableCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởfollow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
521xueweihan/HelloGitHub#4618 ·