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

just --fmt breaks else if statement #2569

Closed
dtomasi opened this issue Jan 13, 2025 · 1 comment · Fixed by #2573
Closed

just --fmt breaks else if statement #2569

dtomasi opened this issue Jan 13, 2025 · 1 comment · Fixed by #2573

Comments

@dtomasi
Copy link

dtomasi commented Jan 13, 2025

I noticed, that just --fmt --unstable breaks a else if statement.

Original statement:

linux_arch := if arch() == "x86_64" { "amd64" } else if arch() == "aarch64" { "arm64" } else { arch() }

Command: just --fmt --unstable -f test.just

Statement after formatting:

linux_arch := if arch() == "x86_64" { "amd64" } else { if arch() == "aarch64" { "arm64" } else { arch() } }

I know that formatting is unstable, but wanted to report this.

@casey casey linked a pull request Jan 14, 2025 that will close this issue
@casey
Copy link
Owner

casey commented Jan 14, 2025

Good catch! Fixed in #2573.

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

Successfully merging a pull request may close this issue.

2 participants