Files
opentf/command
Kristin Laemmert 9d623290f4 command/e2etest: do not leave bad directories behind
If you run the e2etests locally and use a configured plugin_cache_dir,
the test will leave a bad directory behind in your cache dir that causes
later `init`s to fail. To circumvent this, pass an explicity-empty CLI
config file.

This is a nicety for local developers and not necessarily required, but
it happens to me often enough that I'd like to fix it. It's probably not
a *bad* idea to pass an explicit cli config to all e2etests, honestly,
but this is the only one that causes active problems so I limited this
PR to that one test.

Here's the error which occurs on subsequent `init` if this test is run on a
machine that uses a plugin cache dir:

2020/10/13 10:41:05 [TRACE] providercache.fillMetaCache: error while scanning directory /Users/mildwonkey/.terraform.d/plugin-cache: failed to read metadata about /Users/mildwonkey/.terraform.d/plugin-cache/example.com/awesomecorp/happycloud/1.2.0/darwin_amd64: stat /Users/mildwonkey/.terraform.d/plugin-cache/example.com/awesomecorp/happycloud/1.2.0/darwin_amd64: no such file or directory
2020-10-21 07:53:28 -04:00
..
2015-04-29 13:07:13 -05:00
2020-10-19 14:29:54 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-05 08:33:49 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-07 11:00:06 -04:00
2019-07-18 16:11:41 -04:00
2020-10-07 11:00:06 -04:00
2020-10-19 14:29:54 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2018-10-16 18:24:47 -07:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-05 08:33:49 -04:00
2020-10-08 08:42:16 -04:00