25
25
from os import path
26
26
27
27
iceberg_lib_dir_name = "lib"
28
- iceberg_src_dir_name = "iceberg_src"
28
+ iceberg_src_dir_name = "iceberg_src" # this is a git dir
29
29
iceberg_patches_dir_name = "iceberg_src_patches"
30
30
31
31
iceberg_src_commit_hash = "ede085d0f7529f24acd0c81dd0a43f7bb969b763"
44
44
"data/build/libs/iceberg-data-*.jar"
45
45
]
46
46
47
- iceberg_root_dir = path .abspath (path .dirname (__file__ ))
47
+ iceberg_root_dir = path .abspath (path .dirname (__file__ )) # this is NOT a git dir
48
48
iceberg_src_dir = path .join (iceberg_root_dir , iceberg_src_dir_name )
49
49
iceberg_patches_dir = path .join (iceberg_root_dir , iceberg_patches_dir_name )
50
50
iceberg_lib_dir = path .join (iceberg_root_dir , iceberg_lib_dir_name )
@@ -65,25 +65,11 @@ def iceberg_jars_exists():
65
65
return True
66
66
67
67
68
- def set_git_config_if_empty (config_key , default_value ):
69
- curr_val = None
70
- try :
71
- (_ , curr_val , _ ) = run_cmd ("git config --get user.%s" % config_key )
72
- curr_val = curr_val .decode ("utf-8" )
73
- except :
74
- print ("Error getting user.%s" % config_key )
75
- if not curr_val :
76
- run_cmd ("git config user.%s \" %s\" " % (config_key , default_value ))
77
-
78
-
79
68
def prepare_iceberg_source ():
80
69
with WorkingDirectory (iceberg_root_dir ):
81
70
print (">>> Cloning Iceberg repo" )
82
71
shutil .rmtree (iceberg_src_dir_name , ignore_errors = True )
83
72
84
- set_git_config_if_empty ("email" , "<>" )
85
- set_git_config_if_empty ("name" , "Anonymous" )
86
-
87
73
# We just want the shallowest, smallest iceberg clone. We will check out the commit later.
88
74
run_cmd ("git clone --depth 1 --branch %s https://github.com/apache/iceberg.git %s" %
89
75
(iceberg_src_branch , iceberg_src_dir_name ))
0 commit comments