Fail more clearly if the file
program is not installed on the runner
#3
__go-indirect-tracing-workaround-no-file-program.yml
on: pull_request
Matrix: Go: diagnostic when `file` is not installed
Annotations
11 errors and 2 warnings
Go: diagnostic when `file` is not installed (ubuntu-latest, stable-v2.14.6)
Expected exactly one status page reporting descriptor for this diagnostic in the 'runs[].invocations[].toolExecutionNotifications[]' SARIF property, but found 0. All notification reporting descriptors: [{"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main.go","uriBaseId":"%SRCROOT%","index":0}}}],"message":{"text":""},"level":"none","descriptor":{"id":"go/diagnostics/successfully-extracted-files","index":0,"toolComponent":{"index":0}},"properties":{"formattedMessage":{"text":""}}},{"message":{"text":"Extraction failed with error undefined: max"},"level":"error","descriptor":{"id":"go/diagnostics/extraction-errors","index":1,"toolComponent":{"index":0}},"properties":{"formattedMessage":{"text":"Extraction failed with error undefined: max"}}},{"message":{"text":"Extraction failed with error undefined: min"},"level":"error","descriptor":{"id":"go/diagnostics/extraction-errors","index":1,"toolComponent":{"index":0}},"properties":{"formattedMessage":{"text":"Extraction failed with error undefined: min"}}},{"message":{"text":"Extraction failed with error This application uses version go1.20 of the source-processing packages but runs version go1.22 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go."},"level":"error","descriptor":{"id":"go/diagnostics/extraction-errors","index":1,"toolComponent":{"index":0}},"properties":{"formattedMessage":{"text":"Extraction failed with error This application uses version go1.20 of the source-processing packages but runs version go1.22 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go."}}},{"message":{"text":"Extraction failed with error C source files not allowed when not using cgo or SWIG: main.c"},"level":"error","descriptor":{"id":"go/diagnostics/extraction-errors","index":1,"toolComponent":{"index":0}},"properties":{"formattedMessage":{"text":"Extraction failed with error C source files not allowed when not using cgo or SWIG: main.c"}}},{"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main.cs","uriBaseId":"%SRCROOT%","index":1}}}],"message":{"text":""},"level":"none","descriptor":{"id":"cs/baseline/expected-extracted-files","index":0},"properties":{"formattedMessage":{"text":""}}},{"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main.rb","uriBaseId":"%SRCROOT%","index":2}}}],"message":{"text":""},"level":"none","descriptor":{"id":"rb/baseline/expected-extracted-files","index":1},"properties":{"formattedMessage":{"text":""}}},{"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main.c","uriBaseId":"%SRCROOT%","index":3}}}],"message":{"text":""},"level":"none","descriptor":{"id":"cpp/baseline/expected-extracted-files","index":2},"properties":{"formattedMessage":{"text":""}}},{"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Main.java","uriBaseId":"%SRCROOT%","index":4}}}],"message":{"text":""},"level":"none","descriptor":{"id":"java/baseline/expected-extracted-files","index":3},"properties":{"formattedMessage":{"text":""}}},{"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main.kt","uriBaseId":"%SRCROOT%","index":5}}}],"message":{"text":""},"level":"none","descriptor":{"id":"java/baseline/expected-extracted-files","index":3},"properties":{"formattedMessage":{"text":""}}},{"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main.go","uriBaseId":"%SRCROOT%","index":0}}}],"message":{"text":""},"level":"none","descriptor":{"id":"go/baseline/expected-extracted-files","index":4},"properties":{"formattedMessage":{"text":""}}},{"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/update-supported-enterprise-server-versions/update.py","uriBaseId":"%SRCROOT%","index":6}}}],"message":{"text":""},"level":"none","descriptor":{"id":"py/baseline/expected-extracted-files","index":5},"properties":{"formattedMessage":{"text":""}}},{"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main.py","uriBaseId"
|
|
|
|
|
|
|
|
|
|
|
Go: diagnostic when `file` is not installed (ubuntu-latest, stable-v2.14.6)
Restore cache failed: Dependencies file is not found in /home/runner/work/codeql-action/codeql-action. Supported file pattern: go.sum
|
Go: diagnostic when `file` is not installed (ubuntu-latest, stable-v2.14.6)
Failed to determine the location of the Go binary: FileCmdNotFoundError: The `file` program is not installed: Error: Could not find program file on PATH.
|