di-sukharev / opencommit

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

[Bug]: not supported on android (termux) #113

Closed holiq closed 1 year ago

holiq commented 1 year ago

Opencommit Version

1.1.39

Node Version

19.6.1

NPM Version

9.4.0

What OS are you seeing the problem on?

Other Linux Distro

What happened?

I want try opencommit on my android with termux and this got an error like this

$ opencommit
/data/data/com.termux/files/usr/lib/node_modules/opencommit/out/cli.cjs:18168
    throw new Error(`Unsupported platform: ${platform}`);
    ^

Error: Unsupported platform: android
    at Object.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/opencommit/out/cli.cjs:18168:11)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47

Node.js v19.6.1

Expected Behavior

I hope that it will support Android as well

Current Behavior

I don't use it on my android

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

holiq commented 1 year ago

20230403_011320

di-sukharev commented 1 year ago

fixed in the new version, update npm i -g opencommit@latest

di-sukharev commented 1 year ago

close if fixed pls

holiq commented 1 year ago

I'll try it

holiq commented 1 year ago

Oh yeah thats work, thanks @di-sukharev