nov / json-jwt

JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby
MIT License
299 stars 81 forks source link

Conflicting binary #106

Closed depesz closed 2 years ago

depesz commented 2 years ago

Hi. I'm not sure if this is an issue for you, but I was directed your way.

So, I'm using fluentd (td-agent). Their software bundles ruby gem system which includes preinstalled console program (in gem-path/bin) from rdkafka gem.

Something changed recently, not sure where/when, but now when I try to install their software, and some plugins, which depend on json-jwt, I'm getting error "json-jwt's executable "console" conflicts with rdkafka".

Asked for help on IRC #ruby channel, and this is what I got:

[16:41:36] <depesz> hi. i'm getting : "json-jwt's executable "console" conflicts with rdkafka"
[16:41:55] <depesz> is there any way I can force override, but not force disabling dependency check?
[21:03:12] <havenwood> depesz: The funny thing is that json-jwt doesn't mean to ship a `console` executable.
[21:06:17] <havenwood> depesz: The RubyGems default for executables is `spec.bindir = 'bin'` but json-jwt follows the Bundler convention of using `bin/, which should come with modifying the default to `spec.bindir = 'exe'` but the author didn't do that.
[21:06:34] <havenwood> I think they just didn't realize the RubyGems and Bundler conventions conflict. It causes an issue here.
[21:07:16] <havenwood> depesz: Maybe do a PR to the gem with `spec.bindir = 'exe'` to fix the issue upstream?
[21:07:30] <havenwood> This appears inadvertent.

So, while I'm not sure the problem lies on your end, there is non-zero chance that havenwood is on the right track.

Could you look into it? Thanks, and sorry if the problem has nothing do you with you, I'm just not sure.

Best regards,

depesz

nov commented 2 years ago

ah, sorry. it's my wrong.

v1.15.3 now has no bin/console file anymore.

depesz commented 2 years ago

Thanks a lot. That saves me a headache :)