dev-infra: linting fails for `BUILD.bazel` file and `ng-dev format files` does not fix the failure
@josephperrott ci sta già lavorando.
Dal 3/2/2021.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
In angular/angular#40621, we run into a situation where the ng-dev format ... --check command (run as part of the lint job on CI) finds some formatting issues with a BAZEL.build file and fails. It suggests (or prompts the user) to run ng-dev format files ... to fix the issue, but that command does not fix the linting failure.
In that case, the problem was a glob pattern that included a constant string (see https://github.com/angular/angular/pull/40621#issuecomment-772482472). The fix was to manually change the pattern as follows:
-srcs = glob(["constant.string", "glob/*.pattern"]),
+srcs = ["constant.string"] + glob(["glob/*.pattern"]),
Not sure what is the best way to fix this. Ideally, we should suggest (or prompt the user) to run a command that actually fixes the error. If there is no such command, we should at least show the error message, so users can figure out how to manually fix it themselves.
- Lingua principale
- JavaScript
- Stelle
- 77
- Fork
- 84
- Merge medio
- 2g 9h
- PR unite (30g)
- 42
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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 angular/dev-infra
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
domain: release automation
-
Handle RC cut failure Apertadomain: release automation
Tutte le issue di angular/dev-infra
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
neondatabase/website#5944 ·
-
module: core
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·