17 go_root = self.m.vars.workdir.join(
'go',
'go')
30 symlink_version_file = go_root.join(
'VERSION')
31 step_result = self.m.
step(
'realpath go/go/VERSION',
32 cmd=[
'realpath', str(symlink_version_file)],
33 stdout=self.m.raw_io.output_text())
34 step_result = self.m.
step(
'dirname',
35 cmd=[
'dirname', step_result.stdout],
36 stdout=self.m.raw_io.output_text())
37 go_root_nosymlinks = step_result.stdout.strip()
38 if go_root_nosymlinks !=
"":
39 return go_root_nosymlinks