We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
go clean -modcache
finally
1 parent a99849d commit caaccb7Copy full SHA for caaccb7
1 file changed
go/integration-tests-lib/go_integration_test.py
@@ -9,10 +9,11 @@ def go_integration_test(source = "src"):
9
goPath = os.path.join(os.path.abspath(os.getcwd()), ".go")
10
os.environ['GOPATH'] = goPath
11
12
- run_codeql_database_create([], lang="go", source=source)
+ try:
13
+ run_codeql_database_create([], lang="go", source=source)
14
- check_diagnostics()
15
-
16
- # Clean up the temporary GOPATH to prevent Bazel failures next
17
- # time the tests are run; see https://github.com/golang/go/issues/27161
18
- subprocess.call(["go", "clean", "-modcache"])
+ check_diagnostics()
+ finally:
+ # Clean up the temporary GOPATH to prevent Bazel failures next
+ # time the tests are run; see https://github.com/golang/go/issues/27161
19
+ subprocess.call(["go", "clean", "-modcache"])
0 commit comments