From 78257e5b6b34d864a866810851becded47934a95 Mon Sep 17 00:00:00 2001 From: Jingwen Chen Date: Fri, 21 May 2021 02:34:24 +0000 Subject: [PATCH] Add a comment to absolutePath on why it's not exported. Change-Id: Ib6595e8af3d845861d4c5988750e3c43280bb697 Test: TH --- android/paths.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/paths.go b/android/paths.go index 88d625a1f..b192a357a 100644 --- a/android/paths.go +++ b/android/paths.go @@ -2001,6 +2001,9 @@ func createDirIfNonexistent(dir string, perm os.FileMode) error { } } +// absolutePath is deliberately private so that Soong's Go plugins can't use it to find and +// read arbitrary files without going through the methods in the current package that track +// dependencies. func absolutePath(path string) string { if filepath.IsAbs(path) { return path