-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(golang-rewrite): misc. plugin improvements #94
Conversation
err = versions.InstallOneVersion(conf, plugin, toolVersion, false, os.Stdout, os.Stderr) | ||
if err != nil { | ||
failTest(l, "install exited with an error") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plugin test command needs to install a tool version to verify the plugin is behaving correctly.
if err != nil { | ||
os.Exit(1) | ||
return err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List all command should print an error and exit if plugin is not installed.
@@ -153,6 +154,8 @@ func InstallOneVersion(conf config.Config, plugin plugins.Plugin, versionStr str | |||
"ASDF_CONCURRENCY": asdfConcurrency(conf), | |||
} | |||
|
|||
env = execenv.MergeEnv(execenv.SliceToMap(os.Environ()), env) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Install callback needs to run in an environment that has the above variables set, along with env vars that were set at the time asdf was invoked.
* Correct the environment `bin/install` runs in * Improve output of `asdf list all` command when plugin not found * Update `asdf plugin test` command to install a tool version in the test
3c4d1c9
to
408f8b3
Compare
bin/install
runs inasdf list all
command when plugin not foundasdf plugin test
command to install a tool version in the test