Skip to content

adk deploy cloud_run does not respect .gitignore or .gcloudignore #4183

Closed

Description

@stevewalker-de

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

  1. Load ADK project in vs code
  2. Add .gitignore (or .gcloudignore) to exclude system/temp/other files
  3. Run adk deploy cloud_run ...
  4. Console message = 'INFO: Not using ignore file.'

Expected behavior
The process respects the .gitignore file

Desktop (please complete the following information):

  • OS: macOS
  • Python version 12.1
  • ADK Version: 1.22.1

This is a major pain.

Activity

  1. added
    core[Component] This issue is related to the core interface and implementation
    on Jan 16, 2026
  2. added theissue type on Jan 16, 2026
  3. added a commit that references this issue on Jan 17, 2026
    0de8136
  4. kotaitos commented on Jan 17, 2026

    @kotaitos
    Contributor

    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!

  5. self-assigned this
    on Jan 20, 2026
  6. cloude-google commented on Feb 10, 2026

    @cloude-google

    Can we get an update on when this is going to get merged and resolved? Thanks.

  7. llalitkumarrr commented on Feb 11, 2026

    @llalitkumarrr
    Collaborator

    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?

  8. added a commit that references this issue on Feb 12, 2026
    7e7066f
  9. kotaitos commented on Feb 12, 2026

    @kotaitos
    Contributor

    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.

  10. llalitkumarrr commented on Feb 23, 2026

    @llalitkumarrr
    Collaborator

    Hello @kotaitos ,

    Thank you for updating, your PR is under review, we thank you for your patience and support.

  11. added
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Apr 22, 2026
  12. added 3 commits that reference this issue on Jun 17, 2026
    dbf6624
    471c3a7
    0f5dc7a
  13. added a commit that references this issue on Jun 18, 2026
    ee79e71
  14. added a commit that references this issue on Aug 11, 2026
    6a35ae2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

core[Component] This issue is related to the core interface and implementationneeds review[Status] The PR/issue is awaiting review from the maintainer

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions