Record what an update follows and the installed commit in `.quarto-source.yml`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start by finding the code that reads and writes .quarto-source.yml records and the schema for version 1; the issue does not name specific files or tests. Check how install sources determine the tracking mode and commit, including @<sha> installs. Done means records can include optional track and commit keys while existing records without them remain accepted.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Context
The record has source, kind, and an optional ref.
ref is what the user typed, not what was installed.
A plain owner/repo installs the head of the default branch.
The record doesn't say which commit that was, nor whether a later update should follow the branch or the latest release.
A future q2 update can't tell whether the branch has moved.
Other tools need the same two facts.
The development version of Quarto Wizard keeps them for now in its own quarto-wizard: block, and would move to keys that q2 defines.
Proposal
Add two optional keys to schema version 1 of the record:
version: 1
source: acme/demo
kind: github
track: branch # tag | branch: what an update follows
commit: 3f2a9c1e5b7d4a60918c2d4e6f8a0b1c3d5e7f90 # full SHA of what is installed
files:
_extension.yml: <sha256>
filter.lua: <sha256>
Both are optional, so the readers of today still accept the file.
q2 writes commit when it knows it, for example for an @<sha> install, and track from how the user installed.
Why
What an update follows and what is installed both describe the install, and the record is where q2 keeps that.
Benefits
q2 update can tell from the record alone whether a branch has moved.
A committed record shows exactly which commit a project uses.
Other tools, such as Quarto Wizard or a future official q2 extension for Positron and VS Code, can read the same keys instead of keeping their own.
Related:
- Ngôn ngữ chính
- Rust
- Star
- 302
- Fork
- 22
- Merge trung bình
- 5 giờ 2 phút
- Pull request đã merge (30 ngày)
- 213
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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 quarto-dev/q2
-
`dir: rtl` isn't written to `<html>` in HTML outputCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
quarto-dev/q2#1219 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
quarto-dev/q2#1188 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
quarto-dev/q2#1179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
quarto-dev/q2#1133 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
quarto-dev/q2#1103 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/q2
Issue tương tự
-
bug image layout P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày