Fix No Forced Paths Issue

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