New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept web3 1.2.0 as valid version #63
Accept web3 1.2.0 as valid version #63
Conversation
Hey there @cgewecke, thank you very much for tackling this! We've just got a report about this from @ccolorado in #62, but this seems to be a bit more widespread than I anticipated. I'll thrown an integration test to make sure this stays fixed, and publish the changes as v0.4.1.
I worry this may cause issues later down the road, perhaps it'd be best to use Also, just out of curiosity, how did you stumble upon these CI failures? Are you running some sort of monitoring tool, or was it simply a coincidence? |
Yes - I'm just watching them on GH and got notifications. Solidity-coverage is my CI job and Gnosis installed a tool I'm writing that I want to make sure works ok. |
Ah! I was looking at the semver docs but didn't see the caret ranges - will fix rn. |
b7dba0f
to
be8f811
Compare
I ended up creating a sort of 'template' test from the old truffle integration test, which is now reused on both the 5.0.1 and 5.0.29 tests. @frangio could you take a quick look at this so we can release a bugfix? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
cp -r ../simple-project-truffle-template . | ||
|
||
sed -i "s/\"truffle\": \"5.0.1\"/\"truffle\": \"5.0.29\"/g" simple-project-truffle-template/package.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-i
with no arguments is not portable, it doesn't work in macOS. (However, see next comment.)
sed -i "s/\"truffle\": \"5.0.1\"/\"truffle\": \"5.0.29\"/g" simple-project-truffle-template/package.json | |
sed -i.bak "s/\"truffle\": \"5.0.1\"/\"truffle\": \"5.0.29\"/g" simple-project-truffle-template/package.json | |
rm simple-project-truffle-template/package.json.bak |
|
||
cp -r ../simple-project-truffle-template . | ||
|
||
sed -i "s/\"truffle\": \"5.0.1\"/\"truffle\": \"5.0.29\"/g" simple-project-truffle-template/package.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really think it would be best to simply use npm install
.
sed -i "s/\"truffle\": \"5.0.1\"/\"truffle\": \"5.0.29\"/g" simple-project-truffle-template/package.json | |
cd simple-project-truffle-template | |
npm install truffle@5.0.29 |
|
||
sed -i "s/\"truffle\": \"5.0.1\"/\"truffle\": \"5.0.29\"/g" simple-project-truffle-template/package.json | ||
|
||
./simple-project-truffle-template/run.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the above suggestion is accepted.
./simple-project-truffle-template/run.sh | |
./run.sh |
The |
@nventuro Yes sounds good! Please feel free to modify this PR however you wish. :) |
Hi, am seeing a handlful of CI failures today in projects that float their truffle version and use the zeppelin helpers. Their latest release (v5.0.29) upgrades to the new Web3 stable (v1.2.0) and triggers this error:
Examples
gnosis-hg greenkeeper CI
solidity-coverage nightly CI
Additional context about
semver.satisfies
Another possibility is
1.0.0-beta.37 || 1.x
but there are some (wrongly) published versions below 1.2....Fixes #62