Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 3945aed

Browse files
authored
Remove LSIF upload skip validation option. (#61)
1 parent 1b09830 commit 3945aed

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

cmd/src/lsif_upload.go

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ Examples:
3636
fmt.Println(usage)
3737
}
3838
var (
39-
repoFlag = flagSet.String("repo", "", `The name of the repository. (required)`)
40-
commitFlag = flagSet.String("commit", "", `The 40-character hash of the commit. (required)`)
41-
fileFlag = flagSet.String("file", "", `The path to the LSIF dump file. (required)`)
42-
githubTokenFlag = flagSet.String("github-token", "", `A GitHub access token with 'public_repo' scope that Sourcegraph uses to verify you have access to the repository.`)
43-
rootFlag = flagSet.String("root", "", `The path in the repository that matches the LSIF projectRoot (e.g. cmd/)`)
44-
skipValidationFlag = flagSet.Bool("skip-validation", false, `Whether or not to perform input validation on the server (much faster)`)
45-
apiFlags = newAPIFlags(flagSet)
39+
repoFlag = flagSet.String("repo", "", `The name of the repository. (required)`)
40+
commitFlag = flagSet.String("commit", "", `The 40-character hash of the commit. (required)`)
41+
fileFlag = flagSet.String("file", "", `The path to the LSIF dump file. (required)`)
42+
githubTokenFlag = flagSet.String("github-token", "", `A GitHub access token with 'public_repo' scope that Sourcegraph uses to verify you have access to the repository.`)
43+
rootFlag = flagSet.String("root", "", `The path in the repository that matches the LSIF projectRoot (e.g. cmd/)`)
44+
apiFlags = newAPIFlags(flagSet)
4645
)
4746

4847
handler := func(args []string) error {
@@ -74,9 +73,6 @@ Examples:
7473
if *rootFlag != "" {
7574
qs.Add("root", *rootFlag)
7675
}
77-
if *skipValidationFlag == true {
78-
qs.Add("skipValidation", "true")
79-
}
8076

8177
url, err := url.Parse(cfg.Endpoint + "/.api/lsif/upload")
8278
if err != nil {

0 commit comments

Comments
 (0)