-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Hi, I've recently discovered this cool project and wanted to integrate it into my Vim config but I've encountered a bug that prevents me from doing so.
Steps to reproduce:
cat << EOF > Dockerfile
FROM python:3.10-slim-bookworm AS development
COPY pyproject.toml /app
RUN --mount=type=bind,source=requirements.lock,target=requirements.lock \
--mount=type=ssh \
pip install -r requirements.lock
COPY main.py /app
ENTRYPOINT ["python", "main.py"]
EOF
dockerfmt DockerfileOutput:
FROM python:3.10-slim-bookworm AS development
COPY pyproject.toml /app
RUN --mount=type=bind,source=requirements.lock,target=requirements.lock --mount=type=ssh --mount=type=ssh pip install -r requirements.lock
COPY main.py /app
ENTRYPOINT ["python", "main.py"]Notice how --mount=type=ssh option got duplicated when line breaks were eliminated.
I'm using dockerfmt version 0.3.9.
m15a and nukdokplex
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers