Skip to content

Conversation

@nickrolfe
Copy link
Contributor

Ever since CodeQL 2.0.2 (~6 months ago IIRC), codeql.cmd has been a trivial wrapper around codeql.exe on Windows - it just forwards all arguments.

Since we may want to remove it in the future, I think it makes sense for the action to stop using the wrapper. I assume we are using a relatively recent version of the CodeQL tools on Actions, that includes codeql.exe.

Sorry, I'm not sure how to test this, and I may not have made the change correctly - I just edited the two files where I found the .cmd extension being added. One of them appears to be generated from the other, but I edited it manually.

Merge / deployment checklist

  • Run test builds as necessary. Can be on this repository or elsewhere as needed in order to test the change - please include links to tests in other repos!
    • CodeQL using init/analyze actions
    • 3rd party tool using upload action
  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.

@robertbrignull
Copy link
Contributor

Thanks for this. I'd heard codeql was switching to exe but was confused because the current call still works, but that explains it now if it's a trivial wrapper.

You're right the error is due to generated files. Run npm run build to generate them and check in the result.

@nickrolfe nickrolfe force-pushed the nickrolfe/codeql.exe branch from d3be680 to 852d99d Compare June 23, 2020 14:26
@robertbrignull
Copy link
Contributor

Sorry I think this now conflicts because we've normalised all the indentation. You'll have to merge in main again. Once that's done and the CI passes then you can just merge.

@nickrolfe
Copy link
Contributor Author

Thanks, I've merged main and fixed the trivial conflict.

@nickrolfe
Copy link
Contributor Author

@robertbrignull thanks for your help. Can you please merge? I don't have write access to this repository.

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 this pull request may close these issues.

2 participants