Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Fix download compiler only once #175

Merged
merged 1 commit into from
Apr 12, 2019
Merged

Fix download compiler only once #175

merged 1 commit into from
Apr 12, 2019

Conversation

daniyarchambylov
Copy link
Collaborator

No description provided.

nbanmp
nbanmp previously approved these changes Apr 12, 2019
Copy link
Contributor

@nbanmp nbanmp left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I'm not sure if we handled this before, but an invalid compiler version will silently error and immediately quit. We can add an error message now, or we can create an issue and get back to that later, as its not too pressing.

━━┫ vim truffle-config.js # set solc to 0.6.100
━━┫ truffle run verify
<nothing>
━━┫ truffle compile   
Error: Error: Could not find a compiler version matching 0.6.100. Please ensure you are specifying a valid version, constraint or build in the truffle config. Run `truffle compile --list` to see available versions.
    at VersionRange.load (/home/nat/.nvm/versions/node/v11.10.0/lib/node_modules/truffle/build/webpack:/packages/truffle-compile/compilerSupplier/loadingStrategies/VersionRange.js:188:1)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Truffle v5.0.4 (core: 5.0.4)
Node v11.10.0

@nbanmp nbanmp dismissed their stale review April 12, 2019 16:12

Actually... let me test this a bit more, something came up, I'm not sure it was introduced by this, but its very related to this. It happened when I was compiling the proxy contracts from the swc registry.

@nbanmp nbanmp merged commit d9a0ee7 into master Apr 12, 2019
@nbanmp nbanmp deleted the download-compiler branch June 12, 2019 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants