Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bhperry
Copy link
Contributor

@bhperry bhperry commented Sep 18, 2025

Fix #264

binHash promise was not being resolved.

@pavelzw pavelzw added the bug Something isn't working label Sep 18, 2025
@pavelzw pavelzw merged commit add3a49 into mamba-org:main Sep 18, 2025
64 of 65 checks passed
const createArgs = options.createArgs ? `-args-${sha256Short(JSON.stringify(options.createArgs))}` : ''
const rootPrefix = `-root-${sha256Short(options.micromambaRootPath)}`
const binHash = fs.readFile(options.micromambaBinPath).then(sha256)
const binHash = await fs.readFile(options.micromambaBinPath, 'utf-8').then(sha256)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading this binary executable as UTF-8 seems wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point, wasn't thinking. Should just hash as bytes

@bhperry bhperry deleted the bin-hash-promise branch September 19, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cache key contains [object Promise]

3 participants