Skip to content

Commit 23f4ad3

Browse files
committed
[release-v0.42] src/goToolsInformation: update tools versions
gomodifytags: v1.16.0 -> v1.17.0 https://github.com/fatih/gomodifytags/releases/tag/v1.17.0 impl: v1.1.0 -> v1.4.0 josharian/impl@v1.1.0...v1.4.0 gofumpt: v0.6.0 -> v0.7.0 https://github.com/mvdan/gofumpt/releases/tag/v0.7.0 (requires go1.22+) revive: v1.3.4 -> v1.3.9 https://github.com/mgechev/revive/releases Change-Id: Ie2ffe852e41ad6a394c37d2e7700f7b2752623c1 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/607757 kokoro-CI: kokoro <[email protected]> Commit-Queue: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Robert Findley <[email protected]> (cherry picked from commit 1d936ea) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/609278 Reviewed-by: Hongxiang Jiang <[email protected]>
1 parent 2c75908 commit 23f4ad3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

extension/src/goTools.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export function getImportPathWithVersion(
8282
if (goVersion.lt('1.21')) return importPath + '@v0.4.7';
8383
}
8484
if (tool.name === 'gofumpt') {
85-
if (goVersion.lt('1.19')) return importPath + '@v0.4.0';
86-
if (goVersion.lt('1.20')) return importPath + '@v0.5.0';
87-
if (goVersion.lt('1.21')) return importPath + '@v0.6.0';
85+
if (goVersion.lt('1.19')) return importPath + '@v0.4.0'; // pre-go1.19
86+
if (goVersion.lt('1.20')) return importPath + '@v0.5.0'; // go1.19
87+
if (goVersion.lt('1.22')) return importPath + '@v0.6.0'; // go1.20~1.21
8888
}
8989
if (tool.name === 'golangci-lint') {
9090
if (goVersion.lt('1.20')) return importPath + '@v1.53.3';

extension/src/goToolsInformation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const allToolsInformation: { [key: string]: Tool } = {
1212
replacedByGopls: false,
1313
isImportant: false,
1414
description: 'Modify tags on structs',
15-
defaultVersion: 'v1.16.0'
15+
defaultVersion: 'v1.17.0'
1616
},
1717
'goplay': {
1818
name: 'goplay',
@@ -30,7 +30,7 @@ export const allToolsInformation: { [key: string]: Tool } = {
3030
replacedByGopls: false,
3131
isImportant: false,
3232
description: 'Stubs for interfaces',
33-
defaultVersion: 'v1.1.0'
33+
defaultVersion: 'v1.4.0'
3434
},
3535
'gofumpt': {
3636
name: 'gofumpt',
@@ -39,7 +39,7 @@ export const allToolsInformation: { [key: string]: Tool } = {
3939
replacedByGopls: true,
4040
isImportant: false,
4141
description: 'Formatter',
42-
defaultVersion: 'v0.6.0'
42+
defaultVersion: 'v0.7.0'
4343
},
4444
'goimports': {
4545
name: 'goimports',
@@ -92,7 +92,7 @@ export const allToolsInformation: { [key: string]: Tool } = {
9292
modulePath: 'github.com/mgechev/revive',
9393
isImportant: true,
9494
description: 'Linter',
95-
defaultVersion: 'v1.3.4'
95+
defaultVersion: 'v1.3.9'
9696
},
9797
'gopls': {
9898
name: 'gopls',

extension/tools/allTools.ts.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const allToolsInformation: { [key: string]: Tool } = {
1010
replacedByGopls: false,
1111
isImportant: false,
1212
description: 'Modify tags on structs',
13-
defaultVersion: 'v1.16.0'
13+
defaultVersion: 'v1.17.0'
1414
},
1515
'goplay': {
1616
name: 'goplay',
@@ -28,7 +28,7 @@ export const allToolsInformation: { [key: string]: Tool } = {
2828
replacedByGopls: false,
2929
isImportant: false,
3030
description: 'Stubs for interfaces',
31-
defaultVersion: 'v1.1.0'
31+
defaultVersion: 'v1.4.0'
3232
},
3333
'gofumpt': {
3434
name: 'gofumpt',
@@ -37,7 +37,7 @@ export const allToolsInformation: { [key: string]: Tool } = {
3737
replacedByGopls: true,
3838
isImportant: false,
3939
description: 'Formatter',
40-
defaultVersion: 'v0.6.0'
40+
defaultVersion: 'v0.7.0'
4141
},
4242
'goimports': {
4343
name: 'goimports',
@@ -90,7 +90,7 @@ export const allToolsInformation: { [key: string]: Tool } = {
9090
modulePath: 'github.com/mgechev/revive',
9191
isImportant: true,
9292
description: 'Linter',
93-
defaultVersion: 'v1.3.4'
93+
defaultVersion: 'v1.3.9'
9494
},
9595
'gopls': {
9696
name: 'gopls',

0 commit comments

Comments
 (0)