Add a comment to absolutePath on why it's not exported. am: 78257e5b6b

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1713735

Change-Id: I5a27edb4b77442d64cc33d2bff46d958ff8416a1
This commit is contained in:
Jingwen Chen
2021-05-21 04:30:24 +00:00
committed by Automerger Merge Worker

View File

@@ -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