it never works as you want. it's behavior across languages is inconsistent. you need buf CLI as a workaround