support more than strings and lists in `from-dep`'s `with-attributes`

Aperta
#341 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
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
devops

Direzione di ricerca

Start by locating the from-dep handling for with-attributes and the existing matching logic for direct values and lists. Confirm how true and other basic types are currently treated, then make direct values and list members consistent; done means both examples match as intended and the relevant behavior is covered by tests.

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

Descrizione

Right now, from-dep supports matching arbitrary values if they are part of a list of values, but only matching strings when directly defined. For example, you can do this:

from-deps:
  with-attributes:
    foo: [true]

But not:

from-deps:
  with-attributes:
    foo: true

We should probably be more lenient about the types of values we allow outside of the list, or more restrictive about what's allowed in the list. (I suggest that all basic types should be allowed in both places.)

Lingua principale
Python
Stelle
26
Fork
55
Merge medio
2g 6m
PR unite (30g)
15

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 taskcluster/taskgraph

Tutte le issue di taskcluster/taskgraph

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.