Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Guideline overrides do not work on Windows #236

@tmannherz

Description

@tmannherz

Laravel Package Version

1.0.21

Laravel Version

12.21.0

PHP Version

8.4.8

System Info

Windows 11 with native PHP installed

Description

After creating an AI guideline override in .ai/guidelines/inertia-laravel/core.blade.php with empty contents and running php artisan boost:install --silent, the rendered guideline in .github/copilot-instructions.md incorrectly includes the package's Inertia core guideline, when run on Windows. When a guideline exists in the user's directory, its contents should be used over the package's.

Related to #124

Output from the command:

PS C:\project> php artisan boost:install --silent
 ╭────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────╮
 │ .ai/core               │ .ai/project            │ boost                  │ foundation             │
 ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤
 │ inertia-laravel/core   │ inertia-laravel/v2     │ laravel/core           │ laravel/v12            │
 ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤
 │ php                    │ tailwindcss/core       │ tailwindcss/v3         │                        │
 ╰────────────────────────┴────────────────────────┴────────────────────────┴────────────────────────╯
                             Enjoy the boost 🚀 Next steps: https://boost.laravel.com/installed

Running the same command with the same file contents on macOS yields this output, which indicates that certain guidelines were overridden. Additionally, the outputted guidelines are rendered as expected.

~/project git:[production]
php artisan boost:install --silent
 ╭─────────────────────────┬─────────────────────────┬─────────────────────────┬─────────────────────────┬─────────────────────────╮
 │ .ai/project*            │ boost                   │ foundation              │ inertia-laravel/core*   │ inertia-laravel/v2*     │
 ├─────────────────────────┼─────────────────────────┼─────────────────────────┼─────────────────────────┼─────────────────────────┤
 │ laravel/core            │ laravel/v12             │ php                     │ tailwindcss/core        │ tailwindcss/v3          │
 ╰─────────────────────────┴─────────────────────────┴─────────────────────────┴─────────────────────────┴─────────────────────────╯
                                       Enjoy the boost :rocket: Next steps: https://boost.laravel.com/installed 

Steps To Reproduce

On Windows 11:

  1. Install boost
  2. Create a guideline override for a package that would otherwise be included in your project's rendered guidelines. For example, create an empty file in .ai/guidelines/inertia-laravel/core.blade.php.
  3. Run php artisan boost:install --silent
  4. View the rendered guidelines in .github/copilot-instructions.md -- you'll find the Boost package's rules for === inertia-laravel/core rules === included when they shouldn't be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions