Localize components (#4867)

This commit is contained in:
Anna Song
2022-12-02 09:33:53 -08:00
committed by GitHub
parent 0f4f978956
commit e34d5b5608
3 changed files with 226 additions and 1 deletions

View File

@@ -145,3 +145,12 @@ func locFilePath(fileURL string) string {
// so we can use it as is.
return filepath.Join(LocalizeDir, u.Hostname(), path)
}
// locRootPath returns the relative localized path of the validated root url rootURL, where the local copy of its repo
// is at repoDir and the copy of its root is at rootDir
// TODO(annasong): implement
func locRootPath(rootURL string, repoDir string, rootDir filesys.ConfirmedDir) string {
_ = rootURL
_, _ = repoDir, rootDir
return ""
}