Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

chore(flagd): protobuf modules are only generated by a build

Aperta
#446 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by comparing the flagd provider setup with the flagd testkit's hatch_build_sync.py and the poe test flow. Trace how protoc generation currently depends on the hatch-protobuf build hook, then update the provider's test and build configuration and CONTRIBUTING.md to use the uv-era workflow. Done means tests generate importable protobuf modules before running, builds package the generated output, and the documented commands work without hatch.

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

Descrizione

The flagd provider's protobuf modules are generated only by the hatch-protobuf build hook, so nothing importable exists until a distribution is built.

Two consequences:

  • CI runs uv build for every package on every Python version, purely so this one package gets its generated modules.
  • CONTRIBUTING.md still tells contributors to run hatch build once and to test with hatch test. Both predate the move to uv, and hatch is not a dependency of the repo any more, so following the instructions fails.

Generating code is a test input, not an artifact of the build (pypa/hatch#1824). The flagd testkit already handles this correctly: hatch_build_sync.py is an ordinary script, poe test runs it first, and the build hook only ships what it produced. The flagd provider should do the same for protoc.

Lingua principale
Python
Stelle
27
Fork
33
Merge medio
5h
PR unite (30g)
10

Guida per i contributori

Apri la guida per i contributori

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 open-feature/python-sdk-contrib

Tutte le issue di open-feature/python-sdk-contrib

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.