You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tasks/GoToolV0/Strings/resources.resjson/en-US/resources.resjson
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,20 @@
4
4
"loc.description": "Find in cache or download a specific version of Go and add it to the PATH",
5
5
"loc.instanceNameFormat": "Use Go $(version)",
6
6
"loc.group.displayName.advanced": "Advanced",
7
+
"loc.input.label.useGoMod": "Use go.mod",
8
+
"loc.input.help.useGoMod": "Select this option to install the Go version matching the specified go.mod file. These files are searched from system.DefaultWorkingDirectory. You can change the search root path by setting working directory input.",
"loc.input.help.workingDirectory": "Specify path from where go.mod files should be searched when using `Use go.mod`. If empty, `system.DefaultWorkingDirectory` will be considered as the root path.",
7
11
"loc.input.label.version": "Version",
8
12
"loc.input.help.version": "The Go version to download (if necessary) and use. Example: 1.9.3",
9
13
"loc.input.label.goPath": "GOPATH",
10
14
"loc.input.help.goPath": "A custom value for the GOPATH environment variable.",
11
15
"loc.input.label.goBin": "GOBIN",
12
16
"loc.input.help.goBin": "A custom value for the GOBIN environment variable.",
13
17
"loc.messages.FailedToDownload": "Failed to download Go version %s. Verify that the version is valid and resolve any other issues. Error: %s",
14
-
"loc.messages.TempDirNotSet": "The 'Agent.TempDirectory' environment variable was expected to be set."
18
+
"loc.messages.TempDirNotSet": "The 'Agent.TempDirectory' environment variable was expected to be set.",
19
+
"loc.messages.FailedToFindGoMod": "No go.mod file found in directory '%s'. Make sure go.mod file exists in the specified directory or its subdirectories.",
20
+
"loc.messages.GoModVersionDetected": "Detected Go version '%s' from go.mod file: %s",
21
+
"loc.messages.GoModVersionNotFound": "Could not find Go version directive in go.mod file: %s",
22
+
"loc.messages.FailedToReadGoMod": "Failed to read go.mod file '%s': %s"
Copy file name to clipboardExpand all lines: Tasks/GoToolV0/task.json
+25-3Lines changed: 25 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
"author": "Microsoft Corporation",
14
14
"version": {
15
15
"Major": 0,
16
-
"Minor": 207,
16
+
"Minor": 208,
17
17
"Patch": 0
18
18
},
19
19
"satisfies": [
@@ -29,13 +29,31 @@
29
29
}
30
30
],
31
31
"inputs": [
32
+
{
33
+
"name": "useGoMod",
34
+
"type": "boolean",
35
+
"label": "Use go.mod",
36
+
"defaultValue": false,
37
+
"required": false,
38
+
"helpMarkDown": "Select this option to install the Go version matching the specified go.mod file. These files are searched from system.DefaultWorkingDirectory. You can change the search root path by setting working directory input."
39
+
},
40
+
{
41
+
"name": "workingDirectory",
42
+
"type": "filePath",
43
+
"label": "Working Directory",
44
+
"defaultValue": "",
45
+
"required": false,
46
+
"helpMarkDown": "Specify path from where go.mod files should be searched when using `Use go.mod`. If empty, `system.DefaultWorkingDirectory` will be considered as the root path.",
47
+
"visibleRule": "useGoMod = true"
48
+
},
32
49
{
33
50
"name": "version",
34
51
"type": "string",
35
52
"label": "Version",
36
53
"defaultValue": "1.10",
37
54
"required": true,
38
-
"helpMarkDown": "The Go version to download (if necessary) and use. Example: 1.9.3"
55
+
"helpMarkDown": "The Go version to download (if necessary) and use. Example: 1.9.3",
56
+
"visibleRule": "useGoMod = false"
39
57
},
40
58
{
41
59
"name": "goPath",
@@ -60,6 +78,10 @@
60
78
},
61
79
"messages": {
62
80
"FailedToDownload": "Failed to download Go version %s. Verify that the version is valid and resolve any other issues. Error: %s",
63
-
"TempDirNotSet": "The 'Agent.TempDirectory' environment variable was expected to be set."
81
+
"TempDirNotSet": "The 'Agent.TempDirectory' environment variable was expected to be set.",
82
+
"FailedToFindGoMod": "No go.mod file found in directory '%s'. Make sure go.mod file exists in the specified directory or its subdirectories.",
83
+
"GoModVersionDetected": "Detected Go version '%s' from go.mod file: %s",
84
+
"GoModVersionNotFound": "Could not find Go version directive in go.mod file: %s",
85
+
"FailedToReadGoMod": "Failed to read go.mod file '%s': %s"
0 commit comments