Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

dev-infra: linting fails for `BUILD.bazel` file and `ng-dev format files` does not fix the failure

Đang mở
#2,346 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@josephperrott đang làm issue này rồi.

Từ ngày 3/2/2021.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area: build & ci P3

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.

Ngôn ngữ chính
JavaScript
Star
77
Fork
82
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của angular/dev-infra

Tất cả issue của angular/dev-infra

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.