Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing slashes removed in Dockerfile RUN command #374

Closed
cdaringe opened this issue Feb 6, 2024 · 2 comments
Closed

Trailing slashes removed in Dockerfile RUN command #374

cdaringe opened this issue Feb 6, 2024 · 2 comments

Comments

@cdaringe
Copy link

cdaringe commented Feb 6, 2024

Problem

in my file, Dockerfile.foo (which VSCode correctly identifies as Docker) slashes are incorrectly removed.

E.g.

RUN echo "${alpineHost}/ark/apk/published/alpine/${alpineVersion}/whatever/main" >/etc/apk/repositories && \
  some_other_cmd

gets formatted to:

RUN echo "${alpineHost}/ark/apk/published/alpine/${alpineVersion}/whatever/main" >/etc/apk/repositories &&
  some_other_cmd

Which is incorrect.

@cdaringe
Copy link
Author

cdaringe commented Feb 6, 2024

i now see this is shfmt behavior 🤔

@cdaringe
Copy link
Author

cdaringe commented Feb 6, 2024

dupe with #304

@cdaringe cdaringe closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant