- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for binaryOnly (0.14 sec)
-
src/go/build/build_test.go
tags := map[string]bool{} shouldBuild, binaryOnly, err := ctx.shouldBuild([]byte(tt.content), tags) if shouldBuild != tt.shouldBuild || binaryOnly != tt.binaryOnly || !reflect.DeepEqual(tags, tt.tags) || err != tt.err { t.Errorf("mismatch:\n"+ "have shouldBuild=%v, binaryOnly=%v, tags=%v, err=%v\n"+ "want shouldBuild=%v, binaryOnly=%v, tags=%v, err=%v", shouldBuild, binaryOnly, tags, err,
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/go/build/build.go
} if gorootFirst { dir := ctxt.joinPath(ctxt.GOROOT, "src", path) if ctxt.Compiler != "gccgo" { isDir := ctxt.isDir(dir) binaryOnly = !isDir && mode&AllowBinary != 0 && pkga != "" && ctxt.isFile(ctxt.joinPath(ctxt.GOROOT, pkga)) if isDir || binaryOnly { p.Dir = dir p.Goroot = true p.Root = ctxt.GOROOT goto Found } } tried.goroot = dir }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/cmd/go/internal/modindex/index_format.txt
synopsis - string offset name - string offset pkgName - string offset ignoreFile - int32 bool // report the file in Ignored(Go|Other)Files because there was an error reading it or parsing its build constraints. binaryOnly uint32 bool cgoDirectives string offset // the #cgo directive lines in the comment on import "C" goBuildConstraint - string offset len(plusBuildConstraints) - uint32 plusBuildConstraints - [n]uint32 (string offsets)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 13 00:22:50 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/go/internal/modindex/scan.go
continue } rf := &rawFile{ name: name, goBuildConstraint: info.goBuildConstraint, plusBuildConstraints: info.plusBuildConstraints, binaryOnly: info.binaryOnly, directives: info.directives, } if info.parsed != nil { rf.pkgName = info.parsed.Name.Name } // Going to save the file. For non-Go files, can stop here.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 8.5K bytes - Viewed (0) -
src/cmd/go/internal/modindex/write.go
} } func encodeFile(e *encoder, f *rawFile) { e.String(f.error) e.String(f.parseError) e.String(f.synopsis) e.String(f.name) e.String(f.pkgName) e.Bool(f.ignoreFile) e.Bool(f.binaryOnly) e.String(f.cgoDirectives) e.String(f.goBuildConstraint) e.Int(len(f.plusBuildConstraints)) for _, s := range f.plusBuildConstraints { e.String(s) } e.Int(len(f.imports))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 10:10:21 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build.go
// Look for +build comments to accept or reject the file. info.goBuildConstraint, info.plusBuildConstraints, info.binaryOnly, err = getConstraints(info.header) if err != nil { return nil, fmt.Errorf("%s: %v", name, err) } if ignoreBinaryOnly && info.binaryOnly { info.binaryOnly = false // override info.binaryOnly } return info, nil }
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/go/build/doc.go
// compiled but would be processed by tools like godoc and might be useful // as end-user documentation. // // "go build" and other commands no longer support binary-only-packages. // [Import] and [ImportDir] will still set the BinaryOnly flag in packages // containing these comments for use in tools and error messages.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
isXTest := false if isTest && strings.HasSuffix(tf.pkgName(), "_test") && p.Name != tf.pkgName() { isXTest = true pkg = pkg[:len(pkg)-len("_test")] } if !isTest && tf.binaryOnly() { p.BinaryOnly = true } if p.Name == "" { p.Name = pkg firstFile = name } else if pkg != p.Name { // TODO(#45999): The choice of p.Name is arbitrary based on file iteration
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/go/go_test.go
tg.grepStderr("p1: binary-only packages are no longer supported", "did not report error for binary-only p1") tg.run("list", "-deps", "-f", "{{.ImportPath}}: {{.BinaryOnly}}", "p2") tg.grepStdout("p1: true", "p1 not listed as BinaryOnly") tg.grepStdout("p2: false", "p2 listed as BinaryOnly") } // Issue 16050 and 21884. func TestLinkSysoFiles(t *testing.T) { if runtime.GOOS != "linux" || runtime.GOARCH != "amd64" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 81.1K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
StaleReason string // explanation for Stale==true Root string // Go root or Go path dir containing this package ConflictDir string // this directory shadows Dir in $GOPATH BinaryOnly bool // binary-only package (no longer supported) ForTest string // package is only for use in named test Export string // file containing export data (when using -export)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0)