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
{{ message }}
Repository navigation
adk deploy cloud_run does not respect .gitignore or .gcloudignore #4183
When running the adk deploy (to cloud_run) command, the process is copying every file in the source directory, regardless of the presence of a .gitignore or .gcloudignore file.
To Reproduce
Load ADK project in vs code
Add .gitignore (or .gcloudignore) to exclude system/temp/other files
Run adk deploy cloud_run ...
Console message = 'INFO: Not using ignore file.'
Expected behavior
The process respects the .gitignore file
Desktop (please complete the following information):
I have created a PR #4187 that fixes this issue. This fix ensures that .gitignore, .gcloudignore, and .ae_ignore are respected across all deployment targets (Cloud Run, Agent Engine, GKE).
Maintainers, please take a look when you have a moment. @stevewalker-de, feel free to check it out as well if you'd like. Thank you!
Hello @kotaitos and @cloude-google ,
It appears there are some issues with the test cases and the branch needs to be rebased as it is currently out of date.
Hello @ryanaiagent, could you please review this and advise on the next steps required to get this merged as soon as possible?
Thank you @llalitkumarrr for the heads-up and for following up.
I've rebased the branch onto the latest main. The test issues previously mentioned seemed unrelated to my changes, but I've confirmed that all tests are now passing in my local environment. Ready for another look.
Activity
fix(cli): respect ignore files in adk deploy commands
kotaitos commentedon Jan 17, 2026
I have created a PR #4187 that fixes this issue. This fix ensures that
.gitignore,.gcloudignore, and.ae_ignoreare respected across all deployment targets (Cloud Run, Agent Engine, GKE).Maintainers, please take a look when you have a moment. @stevewalker-de, feel free to check it out as well if you'd like. Thank you!
cloude-google commentedon Feb 10, 2026
Can we get an update on when this is going to get merged and resolved? Thanks.
llalitkumarrr commentedon Feb 11, 2026
Hello @kotaitos and @cloude-google ,
It appears there are some issues with the test cases and the branch needs to be rebased as it is currently out of date.
Hello @ryanaiagent, could you please review this and advise on the next steps required to get this merged as soon as possible?
fix(cli): respect ignore files in adk deploy commands
kotaitos commentedon Feb 12, 2026
Thank you @llalitkumarrr for the heads-up and for following up.
I've rebased the branch onto the latest
main. The test issues previously mentioned seemed unrelated to my changes, but I've confirmed that all tests are now passing in my local environment. Ready for another look.llalitkumarrr commentedon Feb 23, 2026
Hello @kotaitos ,
Thank you for updating, your PR is under review, we thank you for your patience and support.
fix(cli): respect ignore files in adk deploy commands
fix(cli): respect ignore files in adk deploy commands
fix(cli): respect ignore files in adk deploy commands
fix(cli): respect ignore files in adk deploy commands
fix(cli): respect ignore files in adk deploy commands