Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins misbehave if $CF_HOME is set but $CF_PLUGIN_HOME is not set #1137

Closed
glyn opened this issue May 10, 2017 · 2 comments · Fixed by cloudfoundry/docs-cf-cli#27
Closed

Comments

@glyn
Copy link
Contributor

glyn commented May 10, 2017

I found the following behaviour with cf version 6.22.2+a95e24c-2016-10-27.

Attempt to get help for one my my plugin's commands:

$ CF_HOME=/tmp/tmpcfhome cf help config-server-encrypt-value
'config-server-encrypt-value' is not a registered command. See 'cf help'
FAILED

So it appears that the plugin is not installed. If I attempt to install it:

$ CF_HOME=/tmp/tmpcfhome cf install-plugin -f /path/to/spring-cloud-services-cli-plugin
Installing plugin spring-cloud-services-cli-plugin...
FAILED
The file spring-cloud-services-cli-plugin already exists under the plugin directory.

then it appears that the plugin is already installed.

I can work around this problem by setting $CF_PLUGIN_HOME.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/145215075

The labels on this github issue will be updated when the story is started.

@dkoper
Copy link

dkoper commented Jun 9, 2017

The plugin commands (and help) are now consistently falling back to $CF_HOME when $CF_PLUGIN_HOME is not set. Thanks for reporting.
https://github.com/cloudfoundry/cli#downloads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants