mirror of https://github.com/pulumi/pulumi.git
c5889864c7
When the user specifies a provider with a specific path in the `Pulumi.yaml`, we later in the program assert that the path that was passed in also matches with the path where we found the plugin. We do this by using a string comparison, however that doesn't work if the path the user passes is not clean, e.g. has a trailing slash, or has a double slash, or some such. Fix this by using `filepath.Clean` on the user supplied path, which these things up. I was also briefly wondering if this works properly if the user passes in a path that is a symlink (it does), and wrote a test for that, checking that behaviour. Fixes https://github.com/pulumi/pulumi/issues/17130 |
||
---|---|---|
.. | ||
config.go | ||
creds.go | ||
creds_test.go | ||
loaders.go | ||
loaders_test.go | ||
paths.go | ||
paths_test.go | ||
plugins.go | ||
plugins_install_nodejs_test.go | ||
plugins_install_python_test.go | ||
plugins_install_test.go | ||
plugins_test.go | ||
project.go | ||
project.json | ||
project_test.go | ||
settings.go | ||
templates.go | ||
templates_test.go | ||
templates_zip.go | ||
templates_zip_test.go | ||
workspace.go |