Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
golint, gogetdoc not supported for go 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Nov 1, 2018
1 parent 7cfc71a commit c2edc4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ install:
- npm run vscode:prepublish
- if [[ "$(go version)" =~ "go version go1.8" ]]; then go get -u -v github.com/nsf/gocode; else go get -u -v github.com/mdempsky/gocode; fi
- go get -u -v github.com/rogpeppe/godef
- go get -u -v github.com/zmb3/gogetdoc
- go get -u -v golang.org/x/lint/golint
- if [[ "$(go version)" =~ "go version go1.8" ]]; then echo skipping gogetdoc; else go get -u -v github.com/zmb3/gogetdoc; fi
- if [[ "$(go version)" =~ "go version go1.8" ]]; then echo skipping golint; else go get -u -v golang.org/x/lint/golint; fi
- go get -u -v github.com/ramya-rao-a/go-outline
- go get -u -v github.com/sqs/goreturns
- go get -u -v golang.org/x/tools/cmd/gorename
Expand Down
10 changes: 5 additions & 5 deletions test/go.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ suite('Go Extension Tests', () => {
'docsTool': { value: 'gogetdoc' }
});
getGoVersion().then(version => {
if (!version || version.major > 1 || (version.major === 1 && version.minor > 5)) {
if (!version || version.major > 1 || (version.major === 1 && version.minor > 8)) {
return testDefinitionProvider(config);
}
return Promise.resolve();
Expand Down Expand Up @@ -207,7 +207,7 @@ It returns the number of bytes written and any write error encountered.
'docsTool': { value: 'gogetdoc' }
});
getGoVersion().then(version => {
if (!version || version.major > 1 || (version.major === 1 && version.minor > 5)) {
if (!version || version.major > 1 || (version.major === 1 && version.minor > 8)) {
return testSignatureHelpProvider(config, testCases);
}
return Promise.resolve();
Expand Down Expand Up @@ -263,7 +263,7 @@ It returns the number of bytes written and any write error encountered.
'docsTool': { value: 'gogetdoc' }
});
getGoVersion().then(version => {
if (!version || version.major > 1 || (version.major === 1 && version.minor > 5)) {
if (!version || version.major > 1 || (version.major === 1 && version.minor > 8)) {
return testHoverProvider(config, testCases);
}
return Promise.resolve();
Expand All @@ -283,8 +283,8 @@ It returns the number of bytes written and any write error encountered.
{ line: 11, severity: 'error', msg: 'undefined: prin' },
];
getGoVersion().then(version => {
if (version && version.major === 1 && version.minor < 6) {
// golint is not supported in Go 1.5, so skip the test
if (version && version.major === 1 && version.minor < 9) {
// golint supports only latest 3 versions, so skip the test
return Promise.resolve();
}
return check(vscode.Uri.file(path.join(fixturePath, 'errorsTest', 'errors.go')), config).then(diagnostics => {
Expand Down

0 comments on commit c2edc4f

Please sign in to comment.