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

Air always assumes that there is binary build target #561

Open
jimidle opened this issue Mar 29, 2024 · 2 comments
Open

Air always assumes that there is binary build target #561

jimidle opened this issue Mar 29, 2024 · 2 comments

Comments

@jimidle
Copy link

jimidle commented Mar 29, 2024

As I don't want to have more than one tool in use for monitoring rebuilds, I want to use air to also regenerate templates in module that does not produce a binary. Air does not support this even if you make the binary an empty target, it decides to try and run main.

As a feature request, create a way to specify that there is no binary to run and just run the build command.

Also, there are 112 issues and 38 pull requests. Has the author abandoned this project?

@jackielii
Copy link

jackielii commented Apr 4, 2024

I got a work around: just use true. See this example: a-h/templ#667. See live/sync_assets section of the makefile

@makiuchi-d
Copy link
Contributor

In such cases, arelo is more suitable.
You can just execute the code generation command.

e.g. sqlc:

arelo -p '**/*.sql' -- sqlc generate

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

No branches or pull requests

3 participants