Skip to content

Commit b62162e

Browse files
authored
Temporary fix for sparse checkout in From Source runs (Azure#44126)
1 parent 3f90501 commit b62162e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

eng/scripts/generate_from_source_pom.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,13 @@ def create_from_source_pom(artifacts_list: str, additional_modules_list: str, se
113113
# the directory path needs to be added to the sparse checkout, otherwise it's one
114114
# directory up.
115115
proj_path = os.path.normpath(root_path + p.directory_path )
116-
proj_path_with_yml = os.path.normpath(proj_path + "/ci.yml")
117-
if os.path.exists(proj_path_with_yml):
118-
sparse_checkout_directory = p.directory_path
119-
else:
120-
sparse_checkout_directory = '/'.join(p.directory_path.split('/')[0:-1])
116+
# proj_path_with_yml = os.path.normpath(proj_path + "/ci.yml")
117+
# if os.path.exists(proj_path_with_yml):
118+
# sparse_checkout_directory = p.directory_path
119+
# else:
120+
# Temporarily commenting out if / else above to resolve sparse checkout issue when running Communication
121+
# library From Source live tests (plus possibly more). Will be reverted once all library checkouts are resolved.
122+
sparse_checkout_directory = '/'.join(p.directory_path.split('/')[0:-1])
121123

122124
sparse_checkout_directories.add(sparse_checkout_directory)
123125

0 commit comments

Comments
 (0)