- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 56 for trim_path (0.15 sec)
-
src/cmd/go/testdata/script/goroot_executable.txt
# (using make.bash or similar). We can't make assumptions about what # options it may have been built with, such as -trimpath or not. # Instead, we build a fresh copy of the binary with known settings. go build -o $WORK/new/bin/go$GOEXE cmd/go & go build -trimpath -o $WORK/bin/check$GOEXE check.go & wait env TESTGOROOT=$GOROOT env GOROOT= # Relocated Executable
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/go/testdata/mod/example.com_stack_v1.0.0.txt
Module with a function that prints file name for the top stack frame. Different versions of this module are identical, but they should return different file names with -trimpath. -- .mod -- module example.com/stack go 1.14 -- .info -- {"Version":"v1.0.0"} -- stack.go -- package stack import "runtime" func TopFile() string { _, file, _, _ := runtime.Caller(0) return file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 14 22:55:12 UTC 2019 - 380 bytes - Viewed (0) -
src/cmd/go/testdata/mod/example.com_stack_v1.0.1.txt
Module with a function that prints file name for the top stack frame. Different versions of this module are identical, but they should return different file names with -trimpath. -- .mod -- module example.com/stack go 1.14 -- .info -- {"Version":"v1.0.1"} -- stack.go -- package stack import "runtime" func TopFile() string { _, file, _, _ := runtime.Caller(0) return file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 14 22:55:12 UTC 2019 - 380 bytes - Viewed (0) -
src/cmd/go/testdata/script/test_trimpath.txt
[short] skip go test -trimpath -v . ! stdout '[/\\]pkg_test[/\\]' stdout -count=3 '[/\\]pkg[/\\]' -- go.mod -- module example.com/pkg go 1.17 -- pkg.go -- package pkg import "runtime" func PrintFile() { _, file, _, _ := runtime.Caller(0) println(file) } -- pkg_test.go -- package pkg import "runtime" func PrintFileForTest() { _, file, _, _ := runtime.Caller(0) println(file)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 12 15:17:33 UTC 2021 - 657 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/testing/testserver.go
// test, we can just look at the runtime call stack. However, bazel compiles go // binaries with the -trimpath option so the simple approach fails however we // can consult environment variables to derive the path. // // The approach taken here works for both go test and bazel on the assumption // that if and only if trimpath is passed, we are running under bazel. func pkgPath(t Logger) (string, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 9K bytes - Viewed (1) -
src/cmd/go/internal/work/gc.go
return c } // Some process parallelism. Set c to min(4, maxprocs). if c > 4 { c = 4 } return c } // trimpath returns the -trimpath argument to use // when compiling the action. func (a *Action) trimpath() string { // Keep in sync with Builder.ccompile // The trimmed paths are a little different, but we need to trim in the // same situations.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:37:44 UTC 2024 - 23K bytes - Viewed (0) -
src/cmd/go/scriptconds_test.go
add("race", sysCondition("-race", platform.RaceDetectorSupported, true)) add("symlink", lazyBool("testenv.HasSymlink()", testenv.HasSymlink)) add("trimpath", script.OnceCondition("test binary was built with -trimpath", isTrimpath)) return conds } func defaultCCIsAbsolute(s *script.State) (bool, error) { GOOS, _ := s.LookupEnv("GOOS") GOARCH, _ := s.LookupEnv("GOARCH")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.4K bytes - Viewed (0) -
src/cmd/asm/doc.go
-p pkgpath Set expected package import to pkgpath. -shared Generate code that can be linked into a shared library. -spectre list Enable spectre mitigations in list (all, ret). -trimpath prefix Remove prefix from recorded source file paths. -v Print debug output. Input language: The assembler uses mostly the same syntax for all architectures,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 20:46:45 UTC 2023 - 1.8K bytes - Viewed (0) -
cmd/kube-apiserver/app/testing/testserver.go
// test, we can just look at the runtime call stack. However, bazel compiles go // binaries with the -trimpath option so the simple approach fails however we // can consult environment variables to derive the path. // // The approach taken here works for both go test and bazel on the assumption // that if and only if trimpath is passed, we are running under bazel. func pkgPath(t Logger) (string, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 17.6K bytes - Viewed (0) -
common/scripts/gobuild.sh
fi # BUILD LD_EXTRAFLAGS LD_EXTRAFLAGS="" while read -r line; do LD_EXTRAFLAGS="${LD_EXTRAFLAGS} -X ${line}" done < "${BUILDINFO}" OPTIMIZATION_FLAGS=(-trimpath) if [ "${DEBUG}" == "1" ]; then OPTIMIZATION_FLAGS=() fi time GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} ${GOBINARY} build \ ${V} "${GOBUILDFLAGS_ARRAY[@]}" ${GCFLAGS:+-gcflags "${GCFLAGS}"} \
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Oct 21 14:08:46 UTC 2022 - 2.4K bytes - Viewed (0)