From 0e668a8732f99d00d40a7dbebf8125ddb6db5dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kukie=C5=82ka?= Date: Mon, 26 Aug 2024 18:10:14 +0200 Subject: [PATCH] Fix CodeSearch download (#2078) (#2121) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Changes Fix the build after the sourcegraph repo become private ## Test plan - green ci Co-authored-by: MikoĊ‚aj Kondratek --- build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 11be605540..25a83670a3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 @@ -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? {