Skip to content

Commit 8c83af6

Browse files
committed
s/ImportPath/BuildImportPath/
1 parent 4c19f4e commit 8c83af6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/build.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func NewSession(options *Options) *Session {
294294
options: options,
295295
Packages: make(map[string]*PackageData),
296296
}
297-
s.ImportContext = compiler.NewImportContext(s.ImportPackage)
297+
s.ImportContext = compiler.NewImportContext(s.BuildImportPath)
298298
if options.Watch {
299299
if out, err := exec.Command("ulimit", "-n").Output(); err == nil {
300300
if n, err := strconv.Atoi(strings.TrimSpace(string(out))); err == nil && n < 1024 {
@@ -371,7 +371,7 @@ func (s *Session) BuildFiles(filenames []string, pkgObj string, packagePath stri
371371
return s.WriteCommandPackage(pkg, pkgObj)
372372
}
373373

374-
func (s *Session) ImportPackage(path string) (*compiler.Archive, error) {
374+
func (s *Session) BuildImportPath(path string) (*compiler.Archive, error) {
375375
if pkg, found := s.Packages[path]; found {
376376
return pkg.Archive, nil
377377
}
@@ -427,7 +427,7 @@ func (s *Session) BuildPackage(pkg *PackageData) error {
427427
if importedPkgPath == "unsafe" || ignored {
428428
continue
429429
}
430-
_, err := s.ImportPackage(importedPkgPath)
430+
_, err := s.BuildImportPath(importedPkgPath)
431431
if err != nil {
432432
return err
433433
}

tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func main() {
175175
}
176176
for _, pkgPath := range pkgs {
177177
pkgPath = filepath.ToSlash(pkgPath)
178-
if _, err := s.ImportPackage(pkgPath); err != nil {
178+
if _, err := s.BuildImportPath(pkgPath); err != nil {
179179
return err
180180
}
181181
pkg := s.Packages[pkgPath]

0 commit comments

Comments
 (0)