-
Notifications
You must be signed in to change notification settings - Fork 304
Display server version at startup when not running from git repository #1112
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
Conversation
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.
LGTM
Why it is showing I've installed latest v5.1.5 , is this a bug or a feature? |
@linonetwo I'd check to see what |
I've install solid via After install, it shows 5.1.5 installed, but then I run |
strange... I can't reproduce, and I don't know what could produce such a result. What does |
Is it possible that the npm install is inside some other git repository? Running |
It is not a git repo: ~$ which solid
~/.nvm/versions/node/v12.4.0/bin/solid
~$ solid -V
v0.33.8
~$ cd ~/.nvm/versions/node/v12.4.0/bin && git status
Not currently on any branch.
nothing to commit, working directory clean
~/.nvm/versions/node/v12.4.0/bin$ |
Thanks - I agree, it's not that. Next places I'd look are: .../bin/lib/cli.js, line 33:
.../package.json, line 4:
Beyond that, as far as I can tell, the version display is handled by the I'd be tempted to try inserting a |
Oh, note that, even if
|
This fixes the problem disribed in nodeSolidServer#1112
See #1110, #1111
This fix raises an error when the version information returned by running git is empty, thereby falling back to using package.json. (This is a new attempt to submit previous PR #1111, but this time based upon and updating the release/v5.0.0 branch.)