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: add an --associated-index-id flag for autoindexer usage #430

Merged
merged 4 commits into from
Jan 18, 2021

Conversation

shrouxm
Copy link
Contributor

@shrouxm shrouxm commented Jan 18, 2021

Need to wait for the codeintelutils update before this works.

go.mod Outdated Show resolved Hide resolved
@@ -71,6 +72,7 @@ Examples:
flags.ignoreUploadFailures = flagSet.Bool("ignore-upload-failure", false, `Exit with status code zero on upload failure.`)
flags.uploadRoute = flagSet.String("upload-route", "/.api/lsif/upload", "The path of the upload route.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add 'internal use only' here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, if someone's changed this in a forked Sourcegraph instance they'll happily ignore that instruction.

@@ -70,7 +70,7 @@ Examples:
flags.noProgress = flagSet.Bool("no-progress", false, `Do not display a progress bar.`)
flags.maxPayloadSizeMb = flagSet.Int("max-payload-size", 100, `The maximum upload size (in megabytes). Indexes exceeding this limit will be uploaded over multiple HTTP requests.`)
flags.ignoreUploadFailures = flagSet.Bool("ignore-upload-failure", false, `Exit with status code zero on upload failure.`)
flags.uploadRoute = flagSet.String("upload-route", "/.api/lsif/upload", "The path of the upload route.")
flags.uploadRoute = flagSet.String("upload-route", "/.api/lsif/upload", "The path of the upload route. For internal use only.")
Copy link
Contributor

Choose a reason for hiding this comment

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

image

@efritz efritz self-requested a review January 18, 2021 23:15
@shrouxm shrouxm merged commit b7ed8a5 into main Jan 18, 2021
@shrouxm shrouxm deleted the garo/lsif_upload_associatedIndexId branch January 18, 2021 23:17
scjohns pushed a commit that referenced this pull request Apr 24, 2023
)

* accept and pass associated-index-id flag

* bump codeintelutils version

* bump codeintelutils version again

* mark 'upload-route' flag "for internal use only"
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.

2 participants