- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for EnvFile (0.47 sec)
-
src/cmd/go/internal/envcmd/env.go
) func MkEnv() []cfg.EnvVar { envFile, envFileChanged, _ := cfg.EnvFile() env := []cfg.EnvVar{ {Name: "GO111MODULE", Value: cfg.Getenv("GO111MODULE")}, {Name: "GOARCH", Value: cfg.Goarch, Changed: cfg.Goarch != runtime.GOARCH}, {Name: "GOBIN", Value: cfg.GOBIN}, {Name: "GOCACHE"}, {Name: "GOENV", Value: envFile, Changed: envFileChanged}, {Name: "GOEXE", Value: cfg.ExeSuffix},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
Makefile
.PHONY: default shell else # If we are not in build container, we need a workaround to get environment properly set # Write to file, then include $(shell mkdir -p out) $(shell $(shell pwd)/common/scripts/setup_env.sh envfile > out/.env) include out/.env # An export free of arguments in a Makefile places all variables in the Makefile into the # environment. This behavior may be surprising to many that use shell often, which simply
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 11 18:29:15 UTC 2021 - 2.2K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
var CmdEnv []EnvVar var envCache struct { once sync.Once m map[string]string goroot map[string]string } // EnvFile returns the name of the Go environment configuration file, // and reports whether the effective value differs from the default. func EnvFile() (string, bool, error) { if file := os.Getenv("GOENV"); file != "" { if file == "off" { return "", false, fmt.Errorf("GOENV=off") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0) -
cmd/update.go
// // "/.dockerenv": "file", // "/run/.containerenv": "file", func IsDocker() bool { var err error for _, envfile := range []string{ "/.dockerenv", "/run/.containerenv", } { _, err = os.Stat(envfile) if err == nil { return true } } if osIsNotExist(err) { // if none of the files are present we may be running inside
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 18.7K bytes - Viewed (0) -
common/scripts/setup_env.sh
DOCKER_GID IMG IMAGE_NAME IMAGE_VERSION REPO_ROOT BUILD_WITH_CONTAINER ) # For non container build, we need to write env to file if [[ "${1}" == "envfile" ]]; then # ! does a variable-variable https://stackoverflow.com/a/10757531/374797 for var in "${VARS[@]}"; do echo "${var}"="${!var}" done else for var in "${VARS[@]}"; do
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 14:37:27 UTC 2024 - 8.3K bytes - Viewed (0)