Skip to content

Commit

Permalink
chore: switch CLI download strategy (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch authored Oct 24, 2024
1 parent b36e946 commit 390c9ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static synchronized Preferences getInstance(PreferenceStore store) {
}

if (getPref(CLI_BASE_URL) == null || getPref(CLI_BASE_URL).isBlank()) {
store(CLI_BASE_URL, "https://static.snyk.io");
store(CLI_BASE_URL, "https://downloads.snyk.io");
}

if (getPref(SCANNING_MODE_AUTOMATIC) == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void shouldDownloadFromGithubWithOsDetectionByDefault() throws URISyntaxExceptio
LsDownloadRequest cut = new LsDownloadRequest(version, environment);

URI expectedUri = new URI(
"https://static.snyk.io/cli/v" + version + "/" + binary);
"https://downloads.snyk.io/cli/v" + version + "/" + binary);
assertEquals(expectedUri, cut.getURI());
verify(environment).getDownloadBinaryName();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void shouldDownloadFromSnyk() throws URISyntaxException {

LsShaRequest cut = new LsShaRequest(version);

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

0 comments on commit 390c9ba

Please sign in to comment.