acoustic-carpenter-78188
04/03/2026, 8:57 PMupdate_hasher_for_source function docstring to clarify that it now handles both single files and directory trees, ensuring content and relative paths are incorporated into the hash.
• Fixed the logic in compute_digest_for_dir to properly handle the case when the input is a single file, ensuring that file contents are hashed even when not inside a directory.
• Added a test in test_with_source to verify that hashing a single file reflects changes in its content, ensuring correctness for image layer hashing.
Development environment/type checking:
• Added types-PyYAML and types-aiofiles to the dev dependencies in pyproject.toml to improve static type checking and developer experience.
flyteorg/flyte-sdkacoustic-carpenter-78188
04/05/2026, 11:30 AM