Repository navigation
chore(devenv): add live reload support for Go backend server using air (#1019) - #1023
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
September 17, 2026 05:30
Contributor
There was a problem hiding this comment.
Code Review
This pull request integrates the air tool to enable live reloading for the Go backend server during development. It adds the .air.toml configuration, updates the Makefile and .gitignore to manage .air build artifacts, documents the new make watch-go command, and updates go.mod and go.sum with the necessary dependencies. However, a critical issue was found in scripts/make/build.mk where the definitions of PORT and BACKEND_PORT create a circular dependency in GNU Make, which will cause a fatal error during execution.
…ND_PORT in build.mk
kyasbal
enabled auto-merge
September 17, 2026 06:07
Merged
via the queue into
GoogleCloudPlatform:main
with commit Sep 17, 2026
85d85ec
17 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1019
Summary
github.com/air-verse/airas a Go tool dependency ingo.mod(go tool air) so developers can use live reload without manual global installation..air.tomlconfigured to watchcmd/andpkg/while excludingweb/,pkg/server/dist/, test utilities (pkg/testutil), and*_test.gofiles. Enabledsend_interrupt = truefor graceful shutdown.make watch-gotarget inscripts/make/build.mkthat supports port/host customization viaPORT/BACKEND_PORTandHOST/BACKEND_HOST. Runsmake build-webonly whenpkg/server/dist/browser/build-web.donedoes not exist yet (initial build or aftermake clean), avoiding redundant frontend builds on subsequent web file edits.Makefilecleantarget and.gitignoreto handle.airbuild artifacts.development-guide.md) withmake watch-goinstructions.