6from recipe_engine
import recipe_api
9INFRA_GO_PKG =
'go.skia.org/infra'
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
48 return self.m.path.join(self.
goroot,
'bin')
53 'GOCACHE': self.m.vars.cache_dir.join(
'go_cache'),
56 'PATH': self.m.path.pathsep.join([
62 return self.m.vars.cache_dir.join(
'gopath')
static int step(int x, SkScalar min, SkScalar max)
static SkString join(const CommandLineFlags::StringArray &)