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 12, 2024
1 parent 09448ed commit 2c0e56f
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 @@ -399,7 +399,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 2c0e56f

Please sign in to comment.