Fix No Forced Paths Issue

This commit is contained in:
2026-04-21 15:59:39 +02:00
parent 64f357734c
commit 8bfcebc6dc
+2 -9
View File
@@ -139,9 +139,7 @@ func (p *Project) ValidateLayout() error {
} }
for label, pathFn := range map[string]func() string{ for label, pathFn := range map[string]func() string{
"paths.source": p.SourceDir, "paths.build": p.BuildDir,
"paths.assets": p.AssetsDir,
"paths.build": p.BuildDir,
} { } {
path := pathFn() path := pathFn()
if path == "" || filepath.Clean(path) == p.Root { if path == "" || filepath.Clean(path) == p.Root {
@@ -149,9 +147,6 @@ func (p *Project) ValidateLayout() error {
} }
info, err := os.Stat(path) info, err := os.Stat(path)
if err != nil { if err != nil {
if label == "paths.assets" && errors.Is(err, os.ErrNotExist) {
continue
}
failures = append(failures, fmt.Errorf("%s: %w", label, err)) failures = append(failures, fmt.Errorf("%s: %w", label, err))
continue continue
} }
@@ -349,9 +344,7 @@ func (i Inventory) Report() InventoryReport {
func defaultConfig() Config { func defaultConfig() Config {
return Config{ return Config{
Paths: PathConfig{ Paths: PathConfig{
Source: "src", Build: "build",
Assets: "assets",
Build: "build",
}, },
TopData: TopDataConfig{ TopData: TopDataConfig{
Build: ".cache", Build: ".cache",