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

codeintel: handle -insecure-skip-verify in SCIP endpoint detection #1012

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

Strum355
Copy link
Contributor

Previously, we were doing SCIP detection before parsing cli flags. As SCIP detection makes a HTTP request, this meant it wasnt configured with the (global 😬) API client flags

Test plan

Ran manually to confirm flag is picked up at the correct time with ✨ print statements ✨

if err := codeintelUploadFlagSet.Parse(args); err != nil {
return nil, err
return nil, false, err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: we default to "scip is not available", but it might make sense to flip the boolean and rename it into isLSIFRequired or something like that

@Strum355 Strum355 merged commit c0e74d1 into main Jul 26, 2023
6 of 7 checks passed
@Strum355 Strum355 deleted the nsc/insecure-scip-verify branch July 26, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants