1b8f4566fa
* 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. |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
from_module.go | ||
from_module_test.go | ||
getter.go | ||
load_config.go | ||
module_install.go | ||
module_install_hooks.go | ||
module_install_test.go | ||
testing.go |