Skip to content

fix: ignore '__pycache__' dirs when generating docker contexts#908

Merged
abhishekmadan30 merged 1 commit intotaskcluster:mainfrom
ahal:ahal/push-qqxmzzmzxovv
Feb 17, 2026
Merged

fix: ignore '__pycache__' dirs when generating docker contexts#908
abhishekmadan30 merged 1 commit intotaskcluster:mainfrom
ahal:ahal/push-qqxmzzmzxovv

Conversation

@ahal
Copy link
Collaborator

@ahal ahal commented Feb 17, 2026

It looks like we're modifying an unused variable, but modifying the list in-place changes os.walk's behaviour. This seems a bit hacky, but this exact use case is actually used in the official documentation as an example.

@ahal ahal self-assigned this Feb 17, 2026
@ahal ahal requested a review from a team as a code owner February 17, 2026 21:11
@ahal ahal requested a review from abhishekmadan30 February 17, 2026 21:11
It looks like we're modifying an unused variable, but modifying the
list in-place changes `os.walk`'s behaviour. This seems a bit hacky, but
this exact use case is actually used in the official documentation as an
example.
@ahal ahal force-pushed the ahal/push-qqxmzzmzxovv branch from 218adad to d062312 Compare February 17, 2026 21:12
@ahal
Copy link
Collaborator Author

ahal commented Feb 17, 2026

Maybe this should be using tracked files instead? Should still be an improvement at least.

Copy link
Contributor

@abhishekmadan30 abhishekmadan30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abhishekmadan30 abhishekmadan30 merged commit 2e2d8f2 into taskcluster:main Feb 17, 2026
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants