Skip to content

Commit

Permalink
fix(download): use all_commits [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 15, 2020
1 parent 03a4797 commit a217c3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/packages/fetch-engine/src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,12 @@ async function downloadBinary(options: DownloadBinaryOptions): Promise<void> {
binaryTarget,
binaryName,
} = options
const downloadUrl = getDownloadUrl(channel, version, binaryTarget, binaryName)
const downloadUrl = getDownloadUrl(
'all_commits',
version,
binaryTarget,
binaryName,
)

const targetDir = path.dirname(targetFilePath)

Expand Down
2 changes: 1 addition & 1 deletion src/packages/fetch-engine/src/getLatestTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function getLatestTag(): Promise<any> {
async function getFirstExistingCommit(commits: string[]): Promise<string> {
for (const commit of commits) {
const exists = await urlExists(
getDownloadUrl('master', commit, 'darwin', 'query-engine'),
getDownloadUrl('all_commits', commit, 'darwin', 'query-engine'),
)
if (exists) {
return commit
Expand Down

0 comments on commit a217c3b

Please sign in to comment.