Disable private imports by default

Aperta
#1,254 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
swift

Direzione di ricerca

Start by locating the package settings that define ENABLE_PRIVATE_IMPORTS, the macOS, Ubuntu, and iOS unit-test jobs, and the test entry points and contributor instructions. Check how those settings reach the tested libraries and their tests. Done means private imports are off by default, explicit opt-in enables both required settings consistently, and the test instructions explain when to use it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: tooling type: build type: ci

Summary

Disable private imports for normal builds so the compiler can optimize private storage access. Enable them explicitly when tests need private declarations.

Scope

  • Default ENABLE_PRIVATE_IMPORTS to false.
  • Enable private imports in the macOS, Ubuntu, and iOS unit-test jobs.
  • Document how to run tests that require private imports.

Acceptance criteria

  • Default package settings omit the private-import compiler flag and conditional definition.
  • An explicit opt-in enables both settings for the tested libraries and their tests.
  • Test entry points and contributor instructions use consistent settings.
Lingua principale
Swift
Stelle
2.5k
Fork
84
Merge medio
5h 45m
PR unite (30g)
70

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenSwiftUIProject/OpenSwiftUI

Tutte le issue di OpenSwiftUIProject/OpenSwiftUI

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.