MX will occasionally fail to find .mx_vcs_root in some circumstances
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia in mx.py dalla logica che cerca .mx_vcs_root e costruisce il percorso di ci.hocon a partire da current_dir. Riproduci la discrepanza tra una build diretta della recipe truffleruby e conan install, quindi determina quale directory dovrebbe essere controllata nel caso sandboxed. Il lavoro è completato quando la root viene trovata in modo affidabile senza compromettere la build dal repository diretto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 205
- Fork
- 131
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di graalvm/mx
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
-
Error while doing maven-installForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pdm-project/pdm#4042 ·
I maintainer di solito rispondono entro 1 giorno
-
change relation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
globalwordnet/english-wordnet#1467 ·
I maintainer di solito rispondono entro 1 giorno
-
pr-babysit: the validator reports only the hex part of the harvest fingerprint, so a launch stops review-report-unusableForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertafollow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
521xueweihan/HelloGitHub#4618 ·