Skip to content

strip trailing slashes from repository (lsif)

Erik Seliger requested to merge bo/trim-trailing-slash-repo-field-lsif-upload into main

Created by: BolajiOlajide

Test plan

Test src lsif upload -file dump.lsif -repo https://github.com/foo/bar/ with a trailing slash and ensured from the inferred arguments, the trailing slash was stripped off.

$ go run ./cmd/src lsif upload -file dump.lsif -repo github.com/BolajiOlajide/env-utils/
💡 Inferred arguments
   repo: github.com/BolajiOlajide/env-utils
   commit: 812cde19b17fc6ca631f03c3abc02fd96d2272ce
   root: .
   file: dump.lsif
   indexer:
   indexerVersion:

Merge request reports

Loading