-
-
Notifications
You must be signed in to change notification settings - Fork 263
Makefile: don't run git checkout on behalf of the user
#1630
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
Conversation
|
On the other hand, this adds more Make code to maintain, which is not ideal ... |
|
I get that it can be surprising or even worrying to have a repo being changed without much warning, like "have I been pwned? Why is my cpython repo in detached state? It was not 10mn ago !?". My first impression was "it's OK, translators may not be cpython contributors, they won't even notice." but I may be wrong, translators may spot upstream issues, and fix them themself (it happened quite a few times actually). @deronnax, @Seluj78, @christopheNan any feelings on this? The other way around is cloning a whole new cpython hidden in a gitignored directory say |
|
Considering the SolarWinds attack where the build system was compromised, I consider that nowadays it is not a good practice to modify a repo outside of the project. |
what do you mean? |
Sorry, I was confused with a concept of Centralised VCS (where you can extract a light working copy by cherrypicking on the repository). |
I tried to avoid it because it's time consuming, I mean That's also why lots of previous Makefiles attempts were trying to do shallow clones, but as we need a specific commit and there's no So I'd go for a full clone. Or maybe Should we call it |
|
or |
Pas sûr que ça élague beaucoup, la branche 3.9 à ses racines "jusqu'au début". Bon "pas sûr" n'étant pas un argument très solide j'ai testé : pas top. |
|
@dmerejkowsky What about the discussed idea of having a specific cpython clone inside the python-docs-fr hierarchy, hidden using the .gitignore?
|
|
.... or we could fetch https://github.com/python/cpython/archive/{sha}.zip |
Ça fait 26MB, c'est pas idiot. Bon ça nécessite un |
Non on peut pas. Mais on a Python, urllib et zipfile :) |
Alors oui. Mais ce serait super si le Makefile restait simple et lisible, donc bof ? Je comprend que sur certains gros projets en C le Makefile "grossisse" un peu, pour de la doc, bof. |
|
Après ça se tente avec |
prend exactement la même place sur le disque que le zip (normal : on obtient exactement les mêmes fichiers, dans la même hierarchie). Ça nécessite probablement plus de bande passante et de CPU :
Ah sinon au lieu de hardcoder une date on pourrait fetch le bon commit : mais ... ça prend 54s ☹ Donc peut être faire le |
I know this is safe because we check the repo is clean, but don't like code I run on a repo to change the git state of an other repo nearby. Maybe that's just me, though
3159ed4 to
6e86155
Compare
|
Attention j'ai rebasé sur la 3.10. |
|
On utilise notre propre clone de cpython, caché dans |
I know this is safe because we check the repo is clean, but don't like code I run on a repo to change the git state
of another repo nearby.
Maybe that's just me, though ...