Skip to content

Commit b6a9f87

Browse files
committed
Use "go/autobuilder/" as prefix for all diagnostics
1 parent 4907e57 commit b6a9f87

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

go/extractor/diagnostics/diagnostics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func emitDiagnostic(sourceid, sourcename, markdownMessage string, severity diagn
8181
if diagnosticsEmitted == diagnosticsLimit {
8282
d = diagnostic{
8383
time.Now().UTC().Format("2006-01-02T15:04:05.000") + "Z",
84-
sourceStruct{"go/diagnostic-limit-hit", "Some diagnostics were dropped", "go"},
84+
sourceStruct{"go/autobuilder/diagnostic-limit-hit", "Some diagnostics were dropped", "go"},
8585
fmt.Sprintf("The number of diagnostics exceeded the limit (%d); the remainder were dropped.", diagnosticsLimit),
8686
string(severityWarning),
8787
false,
@@ -115,7 +115,7 @@ func emitDiagnostic(sourceid, sourcename, markdownMessage string, severity diagn
115115
}
116116

117117
func EmitPackageDifferentOSArchitecture(pkgPath string) {
118-
emitDiagnostic("go/extractor/package-different-os-architecture",
118+
emitDiagnostic("go/autobuilder/package-different-os-architecture",
119119
"Package "+pkgPath+" is intended for a different OS or architecture",
120120
"Make sure the `GOOS` and `GOARCH` [environment variables are correctly set](https://docs.github.com/en/actions/learn-github-actions/variables#defining-environment-variables-for-a-single-workflow). Alternatively, [change your OS and architecture](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#using-a-github-hosted-runner)",
121121
severityWarning, false,
@@ -125,7 +125,7 @@ func EmitPackageDifferentOSArchitecture(pkgPath string) {
125125
}
126126

127127
func EmitCannotFindPackage(pkgPath string) {
128-
emitDiagnostic("go/extractor/package-not-found",
128+
emitDiagnostic("go/autobuilder/package-not-found",
129129
"Package "+pkgPath+" could not be found",
130130
"Check that the path is correct. If it is a private package, make sure it can be accessed. If it is contained in the repository then you may need a [custom build command](https://docs.github.com/en/github-ae@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-compiled-language)",
131131
severityError, false,

go/ql/integration-tests/all-platforms/go/diagnostics/build-constraints-exclude-all-go-files/diagnostics.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"severity": "warning",
55
"source": {
66
"extractorName": "go",
7-
"id": "go/extractor/package-different-os-architecture",
7+
"id": "go/autobuilder/package-different-os-architecture",
88
"name": "Package syscall/js is intended for a different OS or architecture"
99
},
1010
"visibility": {

go/ql/integration-tests/all-platforms/go/diagnostics/package-not-found-with-go-mod/diagnostics.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"severity": "error",
55
"source": {
66
"extractorName": "go",
7-
"id": "go/extractor/package-not-found",
7+
"id": "go/autobuilder/package-not-found",
88
"name": "Package github.com/linode/linode-docs-theme could not be found"
99
},
1010
"visibility": {

go/ql/integration-tests/all-platforms/go/diagnostics/package-not-found-without-go-mod/diagnostics.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"severity": "error",
55
"source": {
66
"extractorName": "go",
7-
"id": "go/extractor/package-not-found",
7+
"id": "go/autobuilder/package-not-found",
88
"name": "Package github.com/linode/linode-docs-theme could not be found"
99
},
1010
"visibility": {

0 commit comments

Comments
 (0)