Flatten Cache Folder
This commit is contained in:
@@ -25,8 +25,19 @@ func compiled2DAOutputDir(p *project.Project) string {
|
||||
return filepath.Join(p.TopDataBuildDir(), "2da")
|
||||
}
|
||||
|
||||
func defaultTopDataCacheDir(p *project.Project) string {
|
||||
return filepath.Join(p.Root, ".cache")
|
||||
}
|
||||
|
||||
func topDataBuildUsesRepoCache(p *project.Project) bool {
|
||||
return samePath(p.TopDataBuildDir(), defaultTopDataCacheDir(p))
|
||||
}
|
||||
|
||||
func compiledTLKOutputPath(p *project.Project) string {
|
||||
return filepath.Join(p.TopDataBuildDir(), "tlk", defaultTLKName)
|
||||
if topDataBuildUsesRepoCache(p) {
|
||||
return filepath.Join(p.BuildDir(), defaultTLKName)
|
||||
}
|
||||
return filepath.Join(p.TopDataBuildDir(), defaultTLKName)
|
||||
}
|
||||
|
||||
func compiledTLKOutputDir(p *project.Project) string {
|
||||
@@ -34,6 +45,9 @@ func compiledTLKOutputDir(p *project.Project) string {
|
||||
}
|
||||
|
||||
func wikiOutputRootDir(p *project.Project) string {
|
||||
if topDataBuildUsesRepoCache(p) {
|
||||
return filepath.Join(defaultTopDataCacheDir(p), wikiRootDirName)
|
||||
}
|
||||
return filepath.Join(p.TopDataBuildDir(), wikiRootDirName)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user