Skip to content

Commit b9fa19b

Browse files
committed
Remove entrypoint check.
1 parent 9906ee9 commit b9fa19b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ads/jobs/builders/runtimes/artifact.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,6 @@ def build(self):
183183
if os.path.isdir(source):
184184
basename = os.path.basename(str(source).rstrip("/"))
185185
source = str(source).rstrip("/")
186-
# Runtime must have entrypoint if the source is a directory
187-
if self.runtime and not self.runtime.entrypoint:
188-
raise ValueError(
189-
"Please specify entrypoint when script source is a directory."
190-
)
191186
output = os.path.join(self.temp_dir.name, basename)
192187
shutil.make_archive(
193188
output, "zip", os.path.dirname(source), base_dir=basename

0 commit comments

Comments
 (0)