You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
What is the connection between the problem and -buildvcs=false buildvcs its just metadata embedding.
I updated to version 1.61.5 of air and started encountering this issue then downgraded to 1.61.4, but the problem persisted. Before 1.61.1, I didn't have any problems, and I haven't tried versions 1.61.2 or 1.61.3.
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 1.61.1+ .
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: