Fix No Forced Paths Issue
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user