Skip to content

Commit

Permalink
Fix CodeSearch download (#2078) (#2121)
Browse files Browse the repository at this point in the history
## Changes

Fix the build after the sourcegraph repo become private

## Test plan
- green ci

Co-authored-by: Mikołaj Kondratek <[email protected]>
  • Loading branch information
pkukielka and mkondratek authored Aug 26, 2024
1 parent ba4e022 commit 0e668a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ val pnpmPath =
tasks {
val codeSearchCommit = "9d86a4f7d183e980acfe5d6b6468f06aaa0d8acf"
fun downloadCodeSearch(): File {
val url = "https://github.com/sourcegraph/sourcegraph/archive/$codeSearchCommit.zip"
val url =
"https://github.com/sourcegraph/sourcegraph-public-snapshot/archive/$codeSearchCommit.zip"
val destination = githubArchiveCache.resolve("$codeSearchCommit.zip")
download(url, destination)
return destination
Expand All @@ -261,7 +262,7 @@ tasks {
val zip = downloadCodeSearch()
val dir = githubArchiveCache.resolve("code-search")
unzip(zip, dir, FileSystems.getDefault().getPathMatcher("glob:**.go"))
return dir.resolve("sourcegraph-$codeSearchCommit")
return dir.resolve("sourcegraph-public-snapshot-$codeSearchCommit")
}

fun buildCodeSearch(): File? {
Expand Down

0 comments on commit 0e668a8

Please sign in to comment.