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
np
doesn't actually check for unpulled changes (before showing version selection in interactive mode)
#414
Comments
np
doesn't actually check for unpulled changes (when used without parameters)np
doesn't actually check for unpulled changes (before showing version selection in interactive mode)
If you still don't get an error reported, try running |
I now understand how it works (and indeed, selecting a version then runs into the failing check), but it wasn't what I was expected. This false start of showing a wrong version and using a wrong tag to display the commits could be avoided if the "is it up to date" check would be done before the version selection is displayed. |
This isn't really a bug, but I agree that currently
However both of these solutions feel a bit hacky to me. |
I know almost nothing about how And yep, having the same check run twice in interactive mode feels a bit hacky. But I don't really have an alternative, other than maybe moving all the checks before the increment selection UI - but that probably doesn't make sense because of other reasons (like some of the checks actually requiring the target version to work maybe?). (While we are at it thinking about this: Are there any other checks that might be useful before showing the increment selection UI?) |
Yes
Yeah, that's not what we're aiming for (and also the
Not that I can think of. |
In case you're interested, feel free to create a PR with what we discussed above and we'll proceed to getting this landed in |
On it. |
For anyone that wants to work on this, see the feedback in #415. |
Explicit links to stuff I could not take care of, which caused the PR to stall:
<3 |
For anyone trying to pick this up, read through the comments in #562 I'll give a quick summary of what was decided in #562 .
|
Description
The readme states:
When trying
np
for the first time on a random repo I had checked out, this did not happen though:As
(4 unpulled changes) both the current version
5.0.3-dev
and the last tag5.0.2
used to get the commits were wrong.Running
git pull
andgit fetch --tags
manually fixed the problem.Expected behavior
I expected
np
to also check for unpulled changes (and unfetched tags possibly) and exiting before offering the version selection with wrong information to me.Environment
np - 5.0.2
Node.js - 10.15.1
npm - 6.4.1
Git - 2.21.0.windows.1
OS - Windows 10
The text was updated successfully, but these errors were encountered: