in tools/build-release.py [0:0]
def update_dep_ref_core(local_repo_path):
print("updating dependency for core")
mod_file = os.path.join(local_repo_path, "go.mod")
if not os.path.isfile(mod_file):
fail("core go.mod does not exist")
path = os.getcwd()
os.chdir(local_repo_path)
command = ['go', 'mod', 'edit']
command.extend(['-replace', 'github.com/apache/yunikorn-scheduler-interface=../scheduler-interface'])
retcode = subprocess.call(command)
if retcode:
fail("failed to update core go.mod references")
os.chdir(path)