Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Plugin directory has created unless plugin is exist

#5957

I tried at Rails 3.0.1.

$ rails plugin install open_id_authentication

plugin open_id_authentication is not exist, so I ran another command again

$ rails plugin install https://github.com/rails/open_id_authentication.git

but rails command said "Already installed".
I think "RAILS_ROOT/vendor/open_id_authentication" are created by first command,
but it's empty directory because plugin is not exist. I can install plugin after removed "RAILS_ROOT/vendor/open_id_authentication".

Reported by sora_h · November 12th, 2010 @ 02:14 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. reys.vasily (at gmail)
    reys.vasily (at gmail)

    I think this is normal behavior. You can run this command with --force option, like so:
    $ rails plugin install https://github.com/rails/open_id_authentication.git --force

    Actually, rails notifies you if trying to install plugin and there is existent directory with the same name in vendor/plugins:
    $ rails plugin install open_id_authentication Plugin not found: ["open_id_authentication"]
    $ rails plugin install https://github.com/rails/open_id_authentication.git already installed: open_id_authentication (https://github.com/rails/open_id_authentication.git). pass --force to reinstall

    November 12th, 2010 @ 09:18 AM

  2. sora_h
    sora_h

    Hm, I think that directory has created if plugin not found is bug....

    Why I have to type "--force" if i missed repository?

    I think that directory hasn't created if plugin not found; It is kinder than current behavior...

    November 12th, 2010 @ 09:30 AM

  3. reys.vasily (at gmail)
    reys.vasily (at gmail)

    Sorry for previous formatting issues, here again:

    $ rails plugin install open_id_authentication

    Plugin not found: ["open_id_authentication"]

    $ rails plugin install https://github.com/rails/open_id_authentication.git

    already installed: open_id_authentication (https://github.com/rails/open_id_authentication.git). pass --force to reinstall

    November 12th, 2010 @ 09:31 AM

  4. reys.vasily (at gmail)
    reys.vasily (at gmail)

    hmmm... you're right, sora_h. Maybe rails should check if plugin is available and if so then create directory?

    November 12th, 2010 @ 09:33 AM

  5. sora_h
  6. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 12th, 2011 @ 07:18 PM

  7. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 12th, 2011 @ 07:18 PM