Skip to content

Commit 390c9ba

Browse files
chore: switch CLI download strategy (#209)
1 parent b36e946 commit 390c9ba

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugin/src/main/java/io/snyk/eclipse/plugin/properties/preferences/Preferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static synchronized Preferences getInstance(PreferenceStore store) {
105105
}
106106

107107
if (getPref(CLI_BASE_URL) == null || getPref(CLI_BASE_URL).isBlank()) {
108-
store(CLI_BASE_URL, "https://static.snyk.io");
108+
store(CLI_BASE_URL, "https://downloads.snyk.io");
109109
}
110110

111111
if (getPref(SCANNING_MODE_AUTOMATIC) == null) {

tests/src/test/java/io/snyk/languageserver/download/LsDownloadRequestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void shouldDownloadFromGithubWithOsDetectionByDefault() throws URISyntaxExceptio
2121
LsDownloadRequest cut = new LsDownloadRequest(version, environment);
2222

2323
URI expectedUri = new URI(
24-
"https://static.snyk.io/cli/v" + version + "/" + binary);
24+
"https://downloads.snyk.io/cli/v" + version + "/" + binary);
2525
assertEquals(expectedUri, cut.getURI());
2626
verify(environment).getDownloadBinaryName();
2727
}

tests/src/test/java/io/snyk/languageserver/download/LsShaDownloadRequestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void shouldDownloadFromSnyk() throws URISyntaxException {
1818

1919
LsShaRequest cut = new LsShaRequest(version);
2020

21-
URI expectedUri = new URI("https://static.snyk.io/cli/v" + version
21+
URI expectedUri = new URI("https://downloads.snyk.io/cli/v" + version
2222
+ "/sha256sums.txt.asc");
2323
assertEquals(expectedUri, cut.getURI());
2424
}

0 commit comments

Comments
 (0)