Regenerate saved examples and test that compare() sets windowsOnly
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
- 50/100
Hướng nghiên cứu
Start with make examples and the diff command in the issue, which compares examples/shop output against examples/shop-1.21-to-1.24.txt; examples/real/cobra.txt needs the project cloned, per examples/README.md. For the test gap, read compare() and isWindowsOnly in plugin/scripts, then TestWindowsOnly, which sets WindowsOnly by hand. Done means the regenerated examples match, a test through compare() or tests/ fails when the assignment is removed, and the three polish points are settled.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up from #7. The Windows-only mark works; these are small cleanups.
-
Saved examples are out of date. To reproduce:
go run ./plugin/scripts --from 1.21 --to 1.24 examples/shop | diff examples/shop-1.21-to-1.24.txt -differs at lines 20 and 25, which lack(Windows only). Runmake examples.examples/real/cobra.txtlists the same settings, so update it too (it needs the project cloned, see examples/README.md). -
No test checks that
compare()sets the flag.TestWindowsOnlysetsWindowsOnly: trueby hand. To reproduce: deletec.WindowsOnly = isWindowsOnly(k)fromcompare()and rungo test -count=1 ./.... Both packages still pass, while the report loses the mark. Add a test throughcompare()ortests/asserting thatwinsymlinkgetswindowsOnly: trueand a non-win setting does not. Computing the mark from the name in one place, instead of storing it onChange, would also remove the chance of the two disagreeing. -
Output and JSON polish:
- The "No binary imports the package, so no effect" section prints
winsymlink (os) (Windows only), where the mark adds nothing. To reproduce: run the tool from 1.22 to 1.23 on a module whose only binary is an emptyfunc main() {}. windowsOnlyusesomitemptywhilegoCommandis always present, so the JSON key is absent for most changes. Decide whether to always emit it.- The field comment on
WindowsOnlysays "Linux services can skip", which does not hold for modules built for Windows. Reword it. - Windows-only settings still count as reaching binaries and still appear in the suggested go.mod pins. That is accurate for Windows builds, but consider saying in the report that Linux-only services can ignore those pins.
- Ngôn ngữ chính
- Go
- Star
- 0
- Fork
- 3
- Merge trung bình
- 6 giờ 20 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- 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 GillMacedo/godebugdiff
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Add a --only flag to filter by packageCó thể đã có người làm @snehaapratap đã nhận 4 ngày trước. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
-
Read the go line from go.work in workspace modeCó thể đã có người làm @ducnhan123-co đã nhận 4 ngày trước. Đang mởgood first issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
GillMacedo/godebugdiff#4 · 1 bình luận ·
-
good first issue
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Tất cả issue của GillMacedo/godebugdiff
Issue tương tự
-
Cluster details: the Control Plane version field has a different border color than its icon boxĐang mởkind/design sig/ui
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
kubermatic/dashboard#8449 ·
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 65/100
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 78/100
filecoin-project/curio#1632 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
compose: derived node options overwrite each other's targetsCó thể đã có người làm @yangjj-iso đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày