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{
|
for label, pathFn := range map[string]func() string{
|
||||||
"paths.source": p.SourceDir,
|
|
||||||
"paths.assets": p.AssetsDir,
|
|
||||||
"paths.build": p.BuildDir,
|
"paths.build": p.BuildDir,
|
||||||
} {
|
} {
|
||||||
path := pathFn()
|
path := pathFn()
|
||||||
@@ -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,8 +344,6 @@ func (i Inventory) Report() InventoryReport {
|
|||||||
func defaultConfig() Config {
|
func defaultConfig() Config {
|
||||||
return Config{
|
return Config{
|
||||||
Paths: PathConfig{
|
Paths: PathConfig{
|
||||||
Source: "src",
|
|
||||||
Assets: "assets",
|
|
||||||
Build: "build",
|
Build: "build",
|
||||||
},
|
},
|
||||||
TopData: TopDataConfig{
|
TopData: TopDataConfig{
|
||||||
|
|||||||
Reference in New Issue
Block a user