Skip to content

Commit

Permalink
Fix merge conflicts with fs naming
Browse files Browse the repository at this point in the history
  • Loading branch information
samwestmoreland committed Nov 14, 2023
1 parent e845e21 commit d87b078
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/core/subrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package core

import (
"fmt"
"io/fs"
iofs "io/fs"
"os"
"path/filepath"
"strings"
Expand All @@ -19,7 +19,7 @@ type Subrepo struct {
// The root directory to load it from.
Root string
// A file system rooted at the subrepo's root directory.
FS fs.FS
FS iofs.FS
// A root directory for outputs of this subrepo's targets
PackageRoot string
// If this repo is output by a target, this is the target that creates it. Can be nil.
Expand Down
6 changes: 3 additions & 3 deletions src/help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package help

import (
"fmt"
"io/fs"
iofs "io/fs"
"os"
"path/filepath"
"regexp"
Expand Down Expand Up @@ -236,7 +236,7 @@ func getPluginBuildDefs(subrepo *core.Subrepo) map[string]*asp.Statement {
p := asp.NewParser(subrepo.State)
ret := make(map[string]*asp.Statement)
for _, dir := range dirs {
dirEntries, err := fs.ReadDir(subrepo.FS, dir)
dirEntries, err := iofs.ReadDir(subrepo.FS, dir)
if err != nil {
log.Warningf("Failed to read %s: %s", dir, err)
}
Expand All @@ -246,7 +246,7 @@ func getPluginBuildDefs(subrepo *core.Subrepo) map[string]*asp.Statement {
}

path := filepath.Join(dir, entry.Name())
bs, err := fs.ReadFile(subrepo.FS, path)
bs, err := iofs.ReadFile(subrepo.FS, path)
if err != nil {
log.Warningf("Failed to read %s: %s", path, err)
}
Expand Down

0 comments on commit d87b078

Please sign in to comment.