devcontainers / devcontainers/cli

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

Đang mở
#1,017 0 bình luận 1 reaction 1 người được giao Được @v-Kaniska244 nhận Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

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:
- https://github.com/devcontainers/cli/blob/c246645f97fba402c3b1b95983e573e92bcec464/src/spec-node/dockerCompose.ts#L698
- https://github.com/devcontainers/cli/blob/c246645f97fba402c3b1b95983e573e92bcec464/src/spec-node/dockerCompose.ts#L465

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.

```python
#!/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:])
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.