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

ahoy throws error after running starter script #1551

Open
richardgaunt opened this issue Mar 1, 2025 · 1 comment
Open

ahoy throws error after running starter script #1551

richardgaunt opened this issue Mar 1, 2025 · 1 comment

Comments

@richardgaunt
Copy link
Collaborator

Minor issue

Steps to reproduce

  1. Run the installation script
  2. run the ahoy command to see commands
  3. Receive [fatal] Command [local] has 'imports' set, but no commands were found. Check your yaml file.

Cause

.ahoy.local.example.yml is created but not .ahoy.local.yml and so ahoy cannot find the local file to import commands and throws this error.

Proposed fix

Change installation script to create a .ahoy.local.yml rather than an example file

@richardgaunt
Copy link
Collaborator Author

richardgaunt commented Mar 2, 2025

I can see why it's done this way .ahoy.local.yml is excluded via .gitignore so your local commands are not added to repository.

But equally it's referred to via .ahoy.yml so it is a file that needs to be added to repository or else every developer needs to create this file.

I guess there needs to be a direction on the preferred direction:

  1. whether this local command file is created when you install
  2. Change the .gitignore so it is added to the repository (which defeats the local aspect of the ahoy file)
  3. Request change with ahoy to make it a warning rather than an error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: BACKLOG
Development

No branches or pull requests

1 participant