Regenerate saved examples and test that compare() sets windowsOnly
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 50/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 0
- Fork
- 3
- Merge medio
- 6h 20m
- PR unite (30g)
- 3
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
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 GillMacedo/godebugdiff
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Add a --only flag to filter by packageForse già presa @snehaapratap l’ha presa 3 giorni fa. Apertagood first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
-
Read the go line from go.work in workspace modeForse già presa @ducnhan123-co l’ha presa 3 giorni fa. Apertagood first issue
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
GillMacedo/godebugdiff#4 · 1 commento ·
-
good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
Tutte le issue di GillMacedo/godebugdiff
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
blocked-needs-validation bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
projectcapsule/capsule#2280 ·
I maintainer di solito rispondono entro 1 giorno
-
bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
kerti/balances-v2#801 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] AdvancedCronJob validating webhook reports incorrect field paths for concurrencyPolicy and pod templatesForse già presa @bhuvan-somisetty l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openkruise/kruise#2650 ·
I maintainer di solito rispondono entro 1 giorno