-
Notifications
You must be signed in to change notification settings - Fork 20
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
Bug with nextstrain update in >1.7 #37
Comments
Ah, thanks for this. I'll fix it up when I have a chance. It looks like loading the config should guard against the file missing and return a default instead. |
Hmm. I can't reproduce this on 1.7.1, and indeed the code already guards against the cases I thought you were hitting: https://github.com/nextstrain/cli/blob/master/nextstrain/cli/config.py#L36-L41 That error is what I'd expect if the |
Ah ha! I think you're hitting this Python bug in path.resolve(), which was fixed first in 3.6.2 (you have 3.6.1) and noted with the following changelog entry:
Note that Indeed, this description of the effect of the bug matches what we're seeing:
This means that the I'll add a workaround in our code next week. In the meantime, you can On top of all this, I also now see that the default behaviour for |
• 3.5 is the earliest version with which we aim to maintain compat • a change in default behaviour from 3.6.1 → 3.6.2 caused issue #37 • 3.7 has been released • 3.8 is the new dev focus
• 3.5 is the earliest version with which we aim to maintain compat • a change in default behaviour from 3.6.1 → 3.6.2 caused issue #37 • 3.7 has been released • 3.8 is the new dev focus The use of an explicit build matrix is because only trusty contains 3.6.1 and only xenial contains 3.7 and 3.8-dev. The latter is the newer dist, so we use that for 3.5 and 3.6 as well.
• 3.5 is the earliest version with which we aim to maintain compat • a change in default behaviour from 3.6.1 → 3.6.2 caused issue #37 • 3.7 has been released • 3.8 is the new dev focus The use of an explicit build matrix is because only trusty contains 3.6.1 and only xenial contains 3.7 and 3.8-dev. The latter is the newer dist, so we use that for 3.5 and 3.6 as well.
This should reveal failures on 3.5 and 3.6.1. • 3.5 is the earliest version with which we aim to maintain compat, but it's broken as noticed in issue #37 • 3.6.1 has a different default behaviour than 3.6.2+ for Path.resolve(), causing issue #37 • 3.7 has been released • 3.8 is the new dev focus The use of an explicit build matrix is because only trusty contains 3.6.1 and only xenial contains 3.7 and 3.8-dev. The latter is the newer dist, so we use that for 3.5 and 3.6 as well.
Calling
nextstrain update
in version 1.6.1 gets me:Everything working as it should be. However, running
nextstrain update
in 1.7.0 or 1.7.1 gets me:The text was updated successfully, but these errors were encountered: