Disable private imports by default

Abierto
#1,254 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
66/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
swift

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Swift
Estrellas
2.5k
Forks
84
Merge medio
5 h 45 min
PR fusionados (30 d)
70

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenSwiftUIProject/OpenSwiftUI

Todos los issues de OpenSwiftUIProject/OpenSwiftUI

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.