-
Notifications
You must be signed in to change notification settings - Fork 10
Invalid indentaion #21
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
Comments
What is your |
This report is not consistent with my test suite output from |
dockerfmt: |
Invoked from the |
You need dockerfmt |
Not published yet, will wait. |
What leads you to believe it isn't published? You should double check whatever you are claiming before you write it... |
|
I cannot reproduce. I made an empty repo, and did |
With |
If you want to report a bug in the JS formatter wrapper, please report it there. If you want to report a bug in the golang parser, please show your dockerfmt version and invocation. That is, invoke the go binary on the command line. |
import { formatDockerfileContents } from '@reteps/dockerfmt'
console.log(
await formatDockerfileContents(
`
RUN \
# install dependencies
NODE_ENV=production npm install-clean \
\
# cleanup
&& /usr/bin/env bash <(curl -fsSL https://raw.githubusercontent.com/softvisio/scripts/main/env-build-node.sh) cleanup
`.trim(),
{
indent: 4,
spaceRedirects: false,
trailingNewline: true,
},
),
) Output: RUN \
# install dependencies |
I can't replicate this -- can you show the bug as replicated on the CLI? |
In |
|
@reteps What do you mean? I'm using the js API, not CLI? Isn't it the WASM/js library you provided? |
It's hard for me to tell if this is a bug in the JS API or in the internal golang formatter. If I can replicate through the CLI, I can fix the issue much easier. |
If there is a difference in behavior between the WASM library and the golang library, then potentially there is an issue in the WASM bindings. |
Then it's an issue from the js/wasm API? For example, byte size, etc. |
If you can't replicate it via the CLI, then it must be an issue with the wasm API. |
@reteps Yes, then are we going to resolve the WASM API issue here? |
Possible to fix this? Does any help needed? |
Help is wanted; this seems related to #25 as well. They are both JS WASM issues that I don't have a clear solution for. |
I don't understand anything in |
Hi,
Multiline command indentation is broken.
Result:
I have 4 spaces indentation configured, but it always make 1 space indent, which is not very readable.
Link to the original issue: un-ts/prettier#441 (comment)
The text was updated successfully, but these errors were encountered: