-
-
Notifications
You must be signed in to change notification settings - Fork 843
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
when building getting error that there is " no Go files in /home/.. " and does not detects in the subdirectory #724
Comments
I'm having the same issue. Go version go1.23.4 darwin/arm64 |
Have you tried this command: |
Haven't tried it. However I solved the issue by moving my |
What is the connection between the problem and I updated to version I havent looked very closely into the matter. Where and when exactly the problem started but still i know that. It seems like something specific changed after |
Same on upgrading from |
im using Go: 1.23.4 Air: 1.61.5 OS: nixos
After updating to version 1.61.5 of
air
, I encountered an issue where the main.go file is not detected when it is located in a subdirectory./cmd
. However, since the update, air fails to start or build the application unless the main.go file is moved to the root directory of the project.The only workaround I’ve found is to move the main.go file from the cmd folder to the root of the project.
and to the air.toml i have only changed :
cmd = "templ generate && go build -o tmp/main ./cmd"
The text was updated successfully, but these errors were encountered: