diff --git a/module/module.go b/module/module.go index c26d1d2..e9dec6e 100644 --- a/module/module.go +++ b/module/module.go @@ -96,13 +96,13 @@ package module // Changes to the semantics in this file require approval from rsc. import ( + "errors" "fmt" "path" "sort" "strings" "unicode" "unicode/utf8" - "errors" "golang.org/x/mod/semver" ) @@ -258,7 +258,7 @@ func modPathOK(r rune) bool { return false } -// modPathOK reports whether r can appear in a package import path element. +// importPathOK reports whether r can appear in a package import path element. // // Import paths are intermediate between module paths and file paths: we allow // disallow characters that would be confusing or ambiguous as arguments to diff --git a/zip/zip.go b/zip/zip.go index cdb9f5a..0328705 100644 --- a/zip/zip.go +++ b/zip/zip.go @@ -619,7 +619,7 @@ func (e *UnrecognizedVCSError) Error() string { return fmt.Sprintf("could not find a recognized version control system at %q", e.RepoRoot) } -// filterGitIgnored filters out any files that are git ignored in the directory. +// filesInGitRepo filters out any files that are git ignored in the directory. func filesInGitRepo(dir, rev, subdir string) ([]File, error) { stderr := bytes.Buffer{} stdout := bytes.Buffer{}