Allow leading `swift-tools-version` in `Package.swift` for Licensing check
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia individuando il controllo dell’intestazione della licenza del workflow Soundness e verificando come gestisce .licenseignore e i file Package.swift. Verifica il controllo con esempi di Package.swift e Package@swift-5.10.swift contenenti il commento swift-tools-version, sia con sia senza una riga vuota prima della licenza; il lavoro è completo quando tutte le forme richieste passano senza ignorare i manifesti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
By convention the first line of a Package.swift manifest is a comment containing the tools version:
"The version is specified on the first line of the manifest with the comment
// swift-tools-version:and the version for the Swift compiler."
Following this convention causes the license header check of the soundness workflow to fail, even if the tools version is followed by a valid license header.
The approach I have seen taken to work around this, is to add the Package.swift file to the .licenseignore file to allow this test to pass.
Since Package.swift files are almost always present in swiftlang repositories, having license checking automatically work with the documented comment on the first line would allow these files to be more easily checked (or checked at all, instead of ignored).
This should also be allowed in version-specific manifest files such as Package@swift-5.10.swift.
Ideally the check would be able to accept both:
- First line is swift-tools-version comment
- License begins on second line
AND
- First line is swift-tools-version comment
- Second line is an empty newline
- License begins on third line
Allowing the tools version to be separated from the license by an empty newline makes it clear the tools version is separate from the license and makes both more easily readable.
- Lingua principale
- Swift
- Stelle
- 115
- Fork
- 57
- Merge medio
- 1g 8h
- PR unite (30g)
- 3
Guida per i contributori
Apri 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 swiftlang/github-workflows
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
swiftlang/github-workflows#305 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
swiftlang/github-workflows#261 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
swiftlang/github-workflows#258 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
swiftlang/github-workflows#312 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
swiftlang/github-workflows#277 · 1 commento ·
Tutte le issue di swiftlang/github-workflows
Issue simili
-
task
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vsanthanam/JBird#429 ·
-
Bolus validation button text Apertaneeds-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nightscout/Trio#1574 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
pending-maintainer-response pending-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
make notarise-dmg notarises whichever dist/ image sorts last, not the one make dmg just built Apertaarea:build bug good first issue P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
uttrflow/uttrflow-swift#1412 ·