Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bento: checksum name support
Browse files Browse the repository at this point in the history
spinx committed Sep 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b756d4b commit b8748a0
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
@@ -10,6 +10,10 @@ export const loadConfig = async (configPath) => {
)
}

if (typeof config.checksum === 'undefined') {
config.checksum = 'benthos'
}

return config
}

2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ const get = async (benthos) => {

const [data, checksums] = await Promise.all([
download(`${root}/${name}`),
download(`${root}/benthos_${benthos.version}_checksums.txt`)
download(`${root}/${benthos.checksum}_${benthos.version}_checksums.txt`)
])

return { name, data, checksums }

0 comments on commit b8748a0

Please sign in to comment.