release: Use ubuntu golang for godoc and go vet.
- The github versions weren't installing anymore.
This commit is contained in:
parent
5d553a6542
commit
3e7d306273
3 changed files with 6 additions and 6 deletions
|
|
@ -468,13 +468,13 @@ def svglib(path):
|
||||||
return Status.normal, _image_to_text(image)
|
return Status.normal, _image_to_text(image)
|
||||||
|
|
||||||
|
|
||||||
@deps(deps={"go/github.com/golang/go/src/cmd/godoc"},
|
@deps(deps={"golang-go"},
|
||||||
url="https://github.com/golang/go", executables={"godoc"})
|
url="https://github.com/golang/go", executables={"go"})
|
||||||
def godoc(path):
|
def godoc(path):
|
||||||
with tempfile.TemporaryDirectory() as temp_dir:
|
with tempfile.TemporaryDirectory() as temp_dir:
|
||||||
symlink_path = os.path.join(temp_dir, "file.go")
|
symlink_path = os.path.join(temp_dir, "file.go")
|
||||||
os.symlink(os.path.abspath(path), symlink_path)
|
os.symlink(os.path.abspath(path), symlink_path)
|
||||||
stdout, stderr, returncode = _do_command(["godoc", "."], cwd=temp_dir)
|
stdout, stderr, returncode = _do_command(["go", "doc", "."], cwd=temp_dir)
|
||||||
os.remove(symlink_path)
|
os.remove(symlink_path)
|
||||||
return Status.normal, stdout
|
return Status.normal, stdout
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -278,9 +278,9 @@ tools_for_extensions = [
|
||||||
has_color = true
|
has_color = true
|
||||||
|
|
||||||
[go_vet]
|
[go_vet]
|
||||||
dependencies = ["go/github.com/golang/go/src/cmd/vet"]
|
dependencies = ["golang-go"]
|
||||||
url = "https://github.com/golang/go"
|
url = "https://github.com/golang/go"
|
||||||
command = "vet"
|
command = "go vet"
|
||||||
|
|
||||||
[golint]
|
[golint]
|
||||||
dependencies = ["go/golang.org/x/lint/golint"]
|
dependencies = ["go/golang.org/x/lint/golint"]
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
[m[38;2;106;184;37m[48;2;32;32;32m[1mdef[m[38;2;208;208;208m[48;2;32;32;32m [m[38;2;68;127;207m[48;2;32;32;32mhi[m[38;2;208;208;208m[48;2;32;32;32m():[m[38;2;255;255;255m[48;2;32;32;32m [m[38;2;255;255;255m[48;2;0;0;0m
|
[m[38;2;106;184;37m[48;2;32;32;32m[1mdef[m[38;2;208;208;208m[48;2;32;32;32m [m[38;2;68;127;207m[48;2;32;32;32mhi[m[38;2;208;208;208m[48;2;32;32;32m():[m[38;2;255;255;255m[48;2;32;32;32m [m[38;2;255;255;255m[48;2;0;0;0m
|
||||||
[m[38;2;208;208;208m[48;2;32;32;32m [m[38;2;106;184;37m[48;2;32;32;32m[1mprint[m[38;2;208;208;208m[48;2;32;32;32m([m[38;2;237;157;19m[48;2;32;32;32m"hi"[m[38;2;208;208;208m[48;2;32;32;32m)[m
|
[m[38;2;208;208;208m[48;2;32;32;32m [m[38;2;36;144;157m[48;2;32;32;32mprint[m[38;2;208;208;208m[48;2;32;32;32m([m[38;2;237;157;19m[48;2;32;32;32m"hi"[m[38;2;208;208;208m[48;2;32;32;32m)[m
|
||||||
Loading…
Add table
Add a link
Reference in a new issue