Go: LoadGoModules
incorrectly still flags 1.23 as an invalid toolchain
#18447
Labels
LoadGoModules
incorrectly still flags 1.23 as an invalid toolchain
#18447
Description of the false positive
The Go team had a change of heart in Go 1.23 and re-permitted
go 1.23
as an alias forgo 1.23.0
The change in behaviour in 1.23 is referenced in this comment on this well-cited GH issue on the confusion around the go directive changes:
golang/go#62278 (comment)
However, CodeQL is flagging this as invalid due to not using 1.N.P syntax:
Code samples or links to source code
Reduced testcase pushed as a sample repo here with CodeQL scanning enabled:
https://github.com/dnwe/go-codeql
URL to the alert on GitHub code scanning
https://github.com/dnwe/go-codeql/security/code-scanning/tools/CodeQL/status/configurations/actions-FZTWS5DIOVRC653POJVWM3DPO5ZS6Y3PMRSXC3BNMFXGC3DZONUXGLTZNVWA/c1646cb64b746876ea230e833d950329e5308885d88be821300b330d9b9a7f83
The text was updated successfully, but these errors were encountered: