Skip to content

Need string_keyed_label_list_dict #7989

@excitoon

Description

@excitoon

Motivation.

  1. Have an ability to write my_pkg_tar not repeating directories list:
my_pkg_tar(
  name='xxx'
  files={
    'bin': [ *loooong_list ], # * just for clarity
    'lib': [ *one_more_long_list ],
  }
)

instead of:

my_pkg_tar(
  name='xxx'
  files={
    ':aaa': 'bin',
    ':aab': 'bin',
    ':aac': 'bin',
    ':aad': 'bin',
    ':aae': 'bin',
    ':aaf': 'bin',
    ':aag': 'bin',
......... looooooong list
    ':zzs': 'lib',
    ':zzt': 'lib',
    ':zzu': 'lib',
    ':zzv': 'lib',
    ':zzw': 'lib',
    ':zzx': 'lib',
    ':zzy': 'lib',
    ':zzz': 'lib',
  }
)
  1. Dicts can not be added to select's of dicts (and even more + is deprecated), one can not write:
{ ':aaa' : 'bin' } + select(....) + { ':zzz': 'lib' }

And we could write:

{ 'bin' : some_list + select(...), 'lib' : some_other_list }

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4This is either out of scope or we don't have bandwidth to review a PR. (No assignee)team-Loading-APIBUILD file and macro processing: labels, package(), visibility, globtype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions