Skip to content

Commit

Permalink
Fall back to default .truss_ignore in truss upload
Browse files Browse the repository at this point in the history
If a user doesn't provide a .truss_ignore in their truss directory, fall back to the default .truss_ignore file specified in the 
truss package.
  • Loading branch information
helenlyang committed Feb 28, 2024
1 parent a1eda26 commit 66c794b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions truss/remote/baseten/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def archive_truss(truss_handle: TrussHandle) -> IO:
truss_ignore_file = truss_dir / ".truss_ignore"
if truss_ignore_file.exists():
ignore_patterns = load_trussignore_patterns(truss_ignore_file=truss_ignore_file)
else:
ignore_patterns = load_trussignore_patterns()

try:
temp_file = create_tar_with_progress_bar(truss_dir, ignore_patterns)
Expand Down

0 comments on commit 66c794b

Please sign in to comment.