Files
build_soong/android
Paul Duffin 407501b82c Stop PathForModuleSrc from validating the paths unnecessarily
PathForModuleSrc calls validatePath in order to convert the supplied
path components into a single path. Unfortunately, that corrupts a
fully qualified module name. So, when given "//namespace:module" it
treats it as a path and replaces "//" with "/". That replacement is
done by a call to filepath.Join().

This change simply concatenates the path components together textually,
using the path separator, to avoid the corruption. That ensures that
a fully qualified module name is preserved and processed properly. If
the path components do not contain a module name then expandOneSrcPath
will call pathForModuleSrc which validates the path so it does not open
up a way to create an invalid path as the validation was unnecessary
anyway.

Bug: 193228441
Test: m nothing
Change-Id: I0bb66feac182b77ce96c8d5d5f17e28ea28d75ba
2021-07-12 20:15:06 +01:00
..
2021-05-11 08:28:49 +01:00
2021-06-18 05:26:39 +00:00
2021-03-17 16:35:13 +01:00
2021-04-21 10:16:31 +01:00
2020-06-04 01:26:16 +01:00
2021-05-11 08:28:49 +01:00
2021-01-07 17:19:27 -08:00
2021-07-09 23:54:01 +01:00
2021-06-18 05:25:44 +00:00
2021-03-02 20:17:19 +00:00
2020-12-01 16:22:16 -08:00
2021-07-09 23:54:01 +01:00
2021-03-28 22:06:33 +01:00
2021-03-28 22:06:33 +01:00
2021-06-28 23:58:12 +00:00
2021-03-11 08:37:01 +01:00