di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
6.15k stars 328 forks source link

[Bug]: Wrong version (2.4.1) being returned by `opencommit --version` after updating to 2.4.2 #235

Closed timothy-bryant-simplisafe closed 1 year ago

timothy-bryant-simplisafe commented 1 year ago

Opencommit Version

2.4.2

Node Version

18.17.0

NPM Version

9.6.7

What OS are you seeing the problem on?

macOS 13.4.1

What happened?

After updating to 2.4.2 via npm i -g opencommit@latest I'm still being advised that I am on the previous version:

npm list -g shows I'm on the latest:

├── npm@9.6.7
├── opencommit@2.4.2
├── pm2@5.3.0

But opencommit --version returns the previous version, even when I run it from the direct path

╰─ /Users/timothybryant/.nvm/versions/node/v18.17.0/bin/opencommit --version
2.4.1

Expected Behavior

After updating, opencommit --version should return the correct version.

Current Behavior

opencommit --version appears to return the wrong version.

Possible Solution

I feel like the tool is running the latest version, its just not reporting it when you run the --version flag. A few things I tried though were uninstalling the tool across all nvm versions and then reinstalling it to just one version. I also tried clearing my npm cash with npm cache clean -f.

Steps to Reproduce

1) Install opencommit 2.4.1 2) Update to 2.4.2 3) Run opencommit --version

Relevant log output

No response

di-sukharev commented 1 year ago

thanks for the report, I will be publishing new version in the coming weekend, will fix this ;)

ionutz89 commented 1 year ago

Any update about this issue?

di-sukharev commented 1 year ago

@ionutz89 not yet, for some reason when publishing a new package version, npm sets latest version correct, but the version which is being downloaded is latest-1, any volunteers to investigate this and make the world a better place?

di-sukharev commented 1 year ago

fixed, please update to npm i -g opencommit@latest

robertoandrade commented 1 year ago

Just tried upgrading to get this annoying warning to go and ended up breaking my local setup :\ reported as https://github.com/di-sukharev/opencommit/issues/247

robertoandrade commented 1 year ago

it's now fixed in 3.0.3