terraform/internal
Kristin Laemmert 1b8f4566fa
internal/initwd: fix panics with relative submodules in DirFromModule (#25250)
* internal/initwd: fix panics with relative submodules in DirFromModule

There were two related issues here:

1. panic with any local module with submodules
1. panic with a relative directory that was above the workdir ("../")

The first panic was caused by the local installer looking up the root
module with the (nonexistant) key "root.", instead of "".

The second panic was caused by the installer trying to determine the
relative path from ".". This was fixed by detecting "." as the source
path and using the absolute path for the call to filepath.Rel.

Added test cases for both panics and updated the existing e2e tests with
the correct install paths.
2020-06-17 13:24:56 -04:00
..
copydir internal/copydir: Factor out our recursive directory copy for reuse 2020-03-25 11:29:48 -07:00
earlyconfig addrs: ImpliedProviderForUnqualifiedType function 2020-04-06 09:24:23 -07:00
getproviders internal/getproviders: PackageFilePathForPackage 2020-06-01 14:49:43 -07:00
initwd internal/initwd: fix panics with relative submodules in DirFromModule (#25250) 2020-06-17 13:24:56 -04:00
modsdir internal/modsdir: Fix Dropped Error (#24600) 2020-06-04 10:26:26 -04:00
providercache internal/getproviders: Package hashing for local filesystem packages 2020-06-01 14:49:43 -07:00
tfplugin5 Add support for provider metadata to modules. (#22583) 2020-03-05 16:53:24 -08:00