Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeQL scanning fails due to autobuild not supporting go1.21 #147

Closed
ctlong opened this issue Sep 5, 2023 · 0 comments · Fixed by #151
Closed

CodeQL scanning fails due to autobuild not supporting go1.21 #147

ctlong opened this issue Sep 5, 2023 · 0 comments · Fixed by #151

Comments

@ctlong
Copy link
Member

ctlong commented Sep 5, 2023

Error log from GH action:

  2023/09/05 15:47:49 Autobuilder was built with go1.20.7, environment has go1.20.7
...
  2023/09/05 15:47:49 Error running go tooling: err: exit status 1: stderr: go: errors parsing go.mod:
  /home/runner/work/cf-smoke-tests/cf-smoke-tests/go.mod:5: unknown directive: toolchain
  
  2023/09/05 15:47:49 Extraction failed: exit status 1
  Error: We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.14.3/x64/codeql/go/tools/autobuild.sh". Exit code was 1 and error was: 2023/09/05 15:47:49 Autobuilder was built with go1.20.7, environment has go1.20.7

We could replace autobuild with our own buildstep, or let it fail until CodeQL supports go1.21.

@ctlong ctlong linked a pull request Sep 29, 2023 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant