Create a 'download' language for fetching pre-built binaries
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Start by reading the existing pre-commit language support for python, node, and go, then compare the proposed download language with the current cache and hook environment behavior. Define the URL, ZIP, checksum, re-download, and PATH requirements, and consider how a complete implementation would demonstrate that non-managed hooks can use the fetched binaries.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm aware of the requirement that additional dependencies for system hooks - the 'escape hatch' for hooks that don't fit into the python/node/go etc. managed environments list, such as shellcheck, must be installed outside of pre-commit in order to work.
Also aware of the python module that can be used to 'mirror' shellcheck in particular, though that feels a little hacky.
I'm sure you've given this thought before, and there's a very good reason why this hasn't been done, but, is it conceivable, with a PR I'd be willing to write, that additional dependencies could be supported for non-python etc. hooks?
I'm thinking along the lines of being able to specify a URL to a ZIP, which pre-commit would wget into its cache directory, storing a checksum so it could 'manage' when to re-download it, and then adding the directory to the front of $PATH when running the hook.
I'm sure it's not possible, but would be keen to know why, as there are a few hooks I use that this applies too and would feel like a useful addition for others.
- Ngôn ngữ chính
- Python
- Star
- 15.6k
- Fork
- 1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 pre-commit/pre-commit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pre-commit/pre-commit#3664 · 3 bình luận ·
-
bug windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pre-commit/pre-commit#2530 · 6 bình luận ·
-
Use --store-dir for haskell Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
pre-commit/pre-commit#3501 · 1 bình luận ·
-
Add deno to supported languages Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
pre-commit/pre-commit#3410 · 4 bình luận · 3 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
pre-commit/pre-commit#3278 · 6 bình luận ·
Tất cả issue của pre-commit/pre-commit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
enhancement
Độ 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 74/100