Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8189 (new defect)

Opened 3 years ago

Last modified 3 years ago

Plugin#install_using_http does not revert working directory

Reported by: cainlevy Assigned to: core
Priority: normal Milestone: 2.x
Component: Railties Version: 1.2.2
Severity: normal Keywords:
Cc:

Description

When running script/plugin install, the Plugin#install_using_http method changes the working directory to "#{root}/vendor/plugins", but does not change back. This means that when Plugin#run_install_hook is executed after http-based fetching, the RAILS_ROOT (i.e. "script/../config/../") is no longer relative to the working directory and any install script that assumes such will fail.