BuildStream silently allows overriding list defined in include

Aperta
#2,028 3 commenti 2 reazioni 1 assegnatario Vedi su GitHub

@nathanwilliams-ct ci sta già lavorando.

Dal 4/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

When you define a list like

build-depends:
- foo.bst
- bar.bst

in include and then set same in element body, there will be silent possibly unexpected replace when user was supposed to instead append. I propose behaviour be slightly adjusted such that when you redefine list with above syntax in element, there will be a warning that can be made fatal. (implicit-list-replace or something else, I'm up to different names) To fix the warning, you would have to in element in this case state intent you want to replace existing list through

build-depends:
  (=):
  - foo.bst
  - bar.bst

If the list is not defined before, then there will be no warning with the short-hand syntax.

Lingua principale
Python
Stelle
144
Fork
45
Merge medio
20h 38m
PR unite (30g)
6

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 apache/buildstream

Tutte le issue di apache/buildstream

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.