platform_build_blueprint/pathtools
Thiébaud Weksteen 8ec690764e Fix ReplaceExtension
ReplaceExtension had an unexpected behaviour when the file did not have
an extension. In certain cases, the final path would be severely
trimmed: out/.intermediates/my_file would become out/.new_extension.
Explicitly handle the case by appending the new extension.

Test: Run checkbuild on Android Soong
Change-Id: Ie27a98845894cfaee5af5e2a02d44168c40ed821

This is an imported pull request from
https://github.com/google/blueprint/pull/345

GitOrigin-RevId: f9166c0e6151499b4b1a23b89b0bc133203a1116
Change-Id: I63f0798177545792440b8a84b04f1090590f1642
2021-02-16 21:45:01 -08:00
..
testdata Fix recursive globs through symlinks 2018-09-24 15:09:32 -07:00
fs.go Use info.IsDir() instead of info.Mode()&os.ModeDir != 0 2021-01-20 13:47:37 -08:00
fs_test.go Fix reading absolute paths through OsFs 2020-01-10 13:52:22 -08:00
glob.go Use info.IsDir() instead of info.Mode()&os.ModeDir != 0 2021-01-20 13:47:37 -08:00
glob_test.go Add more pathtools.Match test cases 2019-05-20 14:57:31 -07:00
lists.go Fix ReplaceExtension 2021-02-16 21:45:01 -08:00
lists_test.go Fix ReplaceExtension 2021-02-16 21:45:01 -08:00