mirror of
https://github.com/golang/go
synced 2024-11-23 19:20:03 -07:00
cmd/go: fix outdated comments
Change-Id: I09532546c96b3758f76528fb5010dafc638139b8 Reviewed-on: https://go-review.googlesource.com/128135 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
a9dcbab0fd
commit
d893573155
@ -42,7 +42,7 @@ func (e *ImportMissingError) Error() string {
|
||||
// If the package cannot be found in the current build list,
|
||||
// Import returns an ImportMissingError as the error.
|
||||
// If Import can identify a module that could be added to supply the package,
|
||||
// the ImportMissingErr records that module.
|
||||
// the ImportMissingError records that module.
|
||||
func Import(path string) (m module.Version, dir string, err error) {
|
||||
if strings.Contains(path, "@") {
|
||||
return module.Version{}, "", fmt.Errorf("import path should not have @version")
|
||||
|
@ -504,9 +504,6 @@ func (ld *loader) load(roots func() []string) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check for visibility violations.
|
||||
// TODO!
|
||||
}
|
||||
|
||||
// pkg returns the *loadPkg for path, creating and queuing it if needed.
|
||||
|
Loading…
Reference in New Issue
Block a user