Skip to content

CIBW_CONTAINER_ENGINE splits on : when it shouldn't #1600

@makslevental

Description

@makslevental

Description

CIBW_CONTAINER_ENGINE="docker; create_args: -p=8080:8080"

gets parsed into

  container_engine: 
    name: docker
    create_args: ['-p=8080', ':', '8080']

problem is here

shlexer = shlex.shlex(key_value_string, posix=True, punctuation_chars=";:")

potential fix from here:

shlexer = shlex.shlex(key_value_string, posix=True, punctuation_chars=True)
shlexer.wordchars += ':'

with this change, CIBW_CONTAINER_ENGINE="docker; create_args : -p=8080:8080" (note the space after create_args) parses to fields=[['docker'], ['create_args', ':', '-p=8080:8080']].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions