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

[Formatting Blade]: Corrupt envoy script - format on save #770

Closed
franckysolo opened this issue Sep 5, 2023 · 2 comments
Closed

[Formatting Blade]: Corrupt envoy script - format on save #770

franckysolo opened this issue Sep 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working Stale Stale label

Comments

@franckysolo
Copy link

franckysolo commented Sep 5, 2023

Platform

Linux

Template before formatting

@task('symlink:env', ['on' => $on, 'path' => $path])
    echo "Copy configuration file, please wait..."
    echo "Verify path : " {{ $path }}
    [ -d {{ $path }}/shared ] || mkdir -p {{ $path }}/shared
    @foreach ($sharedFiles as $file => $dest)
        if [ ! -f {{ $path }}/shared/{{ $file }} ]
        then
            echo "The shared file {{ $file }} is missing"
            echo " "
            exit 1
        else
            ln -nfs {{ $path }}/shared/{{ $file }} {{ $currentReleaseDirectory }}/{{ $dest }}{{ $file }}
            echo "Copy file done!"
        fi
    @endforeach
@endtask

Template after formatting

@task('symlink:env', ['on' => $on, 'path' => $path])
    echo "Copy configuration file, please wait..."
    echo "Verify path : " {{ $path }}
    [ -d {{ $path }}/shared ] || mkdir -p {{ $path }}/shared
    @foreach ($sharedFiles as $file => $dest)
        if [ ! -f {{ $path }}/shared/{{ $file }} ]
        then
        echo "The shared file {{ $file }} is missing"
        echo " "
        exit 1
        else
        ln -nfs {{ $path }}/shared/{{ $file }} {{ $currentReleaseDirectory }}/{{ $dest }}{{ $file }}
        echo "Copy file done!"
        fi
    @endforeach
@endtask

Expected Behaviour

the bash part should not be on same column otherwise condition will not work

Relevant log output

No response

@franckysolo franckysolo added the bug Something isn't working label Sep 5, 2023
Copy link
Contributor

github-actions bot commented Nov 5, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale Stale label label Nov 5, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2023
@shufo shufo removed the Stale Stale label label Dec 31, 2023
@shufo shufo reopened this Dec 31, 2023
Copy link
Contributor

github-actions bot commented Mar 1, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale Stale label label Mar 1, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale Stale label
Projects
None yet
Development

No branches or pull requests

2 participants