Skip to content

Compose project name is stripped of punctuation when using podman-compose #1017

Open
@uosis

Description

@uosis

Currently, as of podman-compose 1.4.0, podman-compose allows punctuation in project name, and uses underscore for separating project name from image names. As a result, the following version checks are broken when using podman-compose:

This results in unreadable project names.

Workaround

Point devcontainers (either cli or through vscode) to the below wrapper script. This will fake the version to be just right - after punctuation support but before change to use hyphens for separators.

#!/usr/bin/env python

from sys import argv
from os import execvp

if argv[1:] == ['compose', 'version', '--short']:
  print('2.7.0')
else:
  execvp('podman', ['podman'] + argv[1:])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions