Skip to content

Commit

Permalink
fixup! fixup! Add requirements.txt support
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-turbaszek committed Jun 11, 2024
1 parent db0db7d commit f5bf9bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/snowflake/cli/plugins/stage/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ def _check_for_requirements_file(
current_file = Path(stage_path_parts.path) / req_file_name
possible_req_files = []

while not current_file.parent.is_mount():
while (
current_file.parent != current_file
): # At some point .parent will return same root value
possible_req_files.append(str(current_file.parent / req_file_name))
current_file = current_file.parent

Expand Down

0 comments on commit f5bf9bb

Please sign in to comment.