v2ray/v2ray-core

[homebrew] it's impractical to use jsonv5 in macOS installed with brew

frankli0324 opened this issue · 2 comments

https://github.com/v2fly/discussion/issues 已无法使用

What version of V2Ray are you using?

V2Ray 5.7.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.20.6 darwin/amd64)
A unified platform for anti-censorship.

What's your scenario of using V2Ray?

irrelevant

What did you see?

homebrew services still locked to old configuration format (v2ray run -c /usr/local/etc/v2ray/config.json)

also -d option doesn't pick up v5.json files.

image

What's your expectation?

  1. fix configdir option so v2ray could pick up config.v5.json etc. and parse them correctly.

  2. modify https://github.com/Homebrew/homebrew-core/blob/master/Formula/v2ray.rb#L65 to run -d /usr/local/etc/v2ray so brew v2ray keeps jsonv4 backward compatibility while jsonv5 users could also live.

modifying the plist file would be overridden when updated, so that's not an option

I'm thankful for the lack of documentation and the fact that it wasted me an entire night on this. I would love to write a detailed bug report but I need sleep.

sorry for not raising the issue in the correct repo.