Disable private imports by default

Offen
#1,254 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
66/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
swift

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
Swift
Sterne
2.5k
Forks
84
Ø Merge
5 Std. 45 Min.
Gemergte PRs (30 T.)
70

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus OpenSwiftUIProject/OpenSwiftUI

Alle Issues in OpenSwiftUIProject/OpenSwiftUI

Ähnliche Issues

Weitere Issues zu Swift

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.