- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for MultiplePackageError (0.3 sec)
-
src/cmd/go/internal/modcmd/vendor.go
// TODO above. var multiplePackageError *build.MultiplePackageError var noGoError *build.NoGoError if err != nil { if errors.As(err, &noGoError) { return // No source files in this package are built. Skip embeds in ignored files. } else if !errors.As(err, &multiplePackageError) { // multiplePackageErrors are OK, but others are not.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 14:19:59 UTC 2024 - 14.5K bytes - Viewed (0) -
api/go1.4.txt
# CL 155050043 go/build: Return MultiplePackageError on importing a dir containing multiple packages, Jens Frederich <******@****.***> pkg go/build, method (*MultiplePackageError) Error() string pkg go/build, type MultiplePackageError struct pkg go/build, type MultiplePackageError struct, Dir string pkg go/build, type MultiplePackageError struct, Files []string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 12 03:01:01 UTC 2014 - 34K bytes - Viewed (0) -
src/go/build/build_test.go
} } func TestMultiplePackageImport(t *testing.T) { pkg, err := Import(".", "testdata/multi", 0) mpe, ok := err.(*MultiplePackageError) if !ok { t.Fatal(`Import("testdata/multi") did not return MultiplePackageError.`) } want := &MultiplePackageError{ Dir: filepath.FromSlash("testdata/multi"), Packages: []string{"main", "test_package"}, Files: []string{"file.go", "file_appengine.go"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 16:24:01 UTC 2023 - 23.9K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build.go
} // MultiplePackageError describes a directory containing // multiple buildable Go source files for multiple packages. type MultiplePackageError struct { Dir string // directory containing files Packages []string // package names found Files []string // corresponding files: Files[i] declares package Packages[i] } func (e *MultiplePackageError) Error() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 26.8K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
// order. Instead of resolving p.Name arbitrarily, we should clear out the // existing Name and mark the existing files as also invalid. badGoFile(name, &MultiplePackageError{ Dir: p.Dir, Packages: []string{p.Name, pkg}, Files: []string{firstFile, name}, }) } // Grab the first package comment as docs, provided it is not from a test file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0)