Skip to content

Commit

Permalink
Adjust comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jun 24, 2024
1 parent 4ba1fc7 commit 67d7a60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions go/runfiles/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
// Open implements fs.FS for a Runfiles instance.
//
// Rlocation-style paths are supported with both apparent and canonical repo
// names. The root directory of the filesystem (".") only lists the apparent
// repo names that are visible to the current source repo
// names. The root directory of the filesystem (".") additionally lists the
// apparent repo names that are visible to the current source repo
// (with --enable_bzlmod).
func (r *Runfiles) Open(name string) (fs.File, error) {
if !fs.ValidPath(name) {
Expand Down
6 changes: 1 addition & 5 deletions go/runfiles/runfiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ const noSourceRepoSentinel = "_not_a_valid_repository_name"
// The returned object implements fs.FS regardless of the type of runfiles
// that backs it. This is the preferred way to interact with runfiles in a
// platform-agnostic way. For example, to find all runfiles beneath a
// directory, use fs.Glob. With `--enable_bzlmod`, only repositories visible to
// the current source repository are listed as entries in the root directory
// ("."), under their apparent repository names. Thus, walking the runfiles from
// the root via fs.WalkDir provides a suitable way to access all runfiles
// relevant to the current source repository.
// directory, use fs.Glob or fs.WalkDir.
func New(opts ...Option) (*Runfiles, error) {
var o options
o.sourceRepo = noSourceRepoSentinel
Expand Down

0 comments on commit 67d7a60

Please sign in to comment.