Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 260 for GetEnv (0.17 sec)

  1. src/os/env.go

    // be false.
    func LookupEnv(key string) (string, bool) {
    	testlog.Getenv(key)
    	return syscall.Getenv(key)
    }
    
    // Setenv sets the value of the environment variable named by the key.
    // It returns an error, if any.
    func Setenv(key, value string) error {
    	err := syscall.Setenv(key, value)
    	if err != nil {
    		return NewSyscallError("setenv", err)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

        val isCiServer = CI_ENVIRONMENT_VARIABLE in System.getenv()
        val isTravis = "TRAVIS" in System.getenv()
        val isGhActions = "GITHUB_ACTIONS" in System.getenv()
        val isTeamCity = "TEAMCITY_VERSION" in System.getenv()
        val isTeamCityParallelTestsEnabled
            get() = "TEAMCITY_PARALLEL_TESTS_ENABLED" in System.getenv()
        val isCodeQl: Boolean by lazy {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 16:58:31 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/EnvVariableRead.groovy

    package org.gradle.internal.cc.impl.inputs.undeclared
    
    abstract class EnvVariableRead extends BuildInputRead {
        static EnvVariableRead getEnv(String name) {
            return new EnvVariableRead() {
                @Override
                String getKotlinExpression() {
                    return "System.getenv(\"$name\")"
                }
            }
        }
    
        static EnvVariableRead getEnvGet(String name) {
            return new EnvVariableRead() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/dist/build.go

    	// For tools being invoked but also for os.ExpandEnv.
    	os.Setenv("GO386", go386)
    	os.Setenv("GOAMD64", goamd64)
    	os.Setenv("GOARCH", goarch)
    	os.Setenv("GOARM", goarm)
    	os.Setenv("GOARM64", goarm64)
    	os.Setenv("GOHOSTARCH", gohostarch)
    	os.Setenv("GOHOSTOS", gohostos)
    	os.Setenv("GOOS", goos)
    	os.Setenv("GOMIPS", gomips)
    	os.Setenv("GOMIPS64", gomips64)
    	os.Setenv("GOPPC64", goppc64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cfg/cfg.go

    	}
    }
    
    // Getenv gets the value for the configuration key.
    // It consults the operating system environment
    // and then the go/env file.
    // If Getenv is called for a key that cannot be set
    // in the go/env file (for example GODEBUG), it panics.
    // This ensures that CanGetenv is accurate, so that
    // 'go env -w' stays in sync with what Getenv can retrieve.
    func Getenv(key string) string {
    	if !CanGetenv(key) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. src/testing/testing_test.go

    		if test.initialValueExists {
    			if err := os.Setenv(test.key, test.initialValue); err != nil {
    				t.Fatalf("unable to set env: got %v", err)
    			}
    		} else {
    			os.Unsetenv(test.key)
    		}
    
    		t.Run(test.name, func(t *testing.T) {
    			t.Setenv(test.key, test.newValue)
    			if os.Getenv(test.key) != test.newValue {
    				t.Fatalf("unexpected value after t.Setenv: got %s, want %s", os.Getenv(test.key), test.newValue)
    			}
    		})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/env_windows.go

    // Windows environment variables.
    
    package windows
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func Getenv(key string) (value string, found bool) {
    	return syscall.Getenv(key)
    }
    
    func Setenv(key, value string) error {
    	return syscall.Setenv(key, value)
    }
    
    func Clearenv() {
    	syscall.Clearenv()
    }
    
    func Environ() []string {
    	return syscall.Environ()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 20:35:26 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. platforms/enterprise/enterprise-plugin-performance/build.gradle.kts

    }
    
    tasks.withType<gradlebuild.performance.tasks.PerformanceTest>().configureEach {
        environment("GRADLE_INTERNAL_REPO_URL", System.getenv("GRADLE_INTERNAL_REPO_URL"))
        environment("GRADLE_INTERNAL_REPO_USERNAME", System.getenv("GRADLE_INTERNAL_REPO_USERNAME"))
        environment("GRADLE_INTERNAL_REPO_PASSWORD", System.getenv("GRADLE_INTERNAL_REPO_PASSWORD"))
    
        reportGeneratorClass = "org.gradle.performance.results.BuildScanReportGenerator"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 23:14:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

            @Override
            public void connect() throws IOException {
                final String endpoint = System.getenv().get("STORAGE_ENDPOINT");
                final String accessKey = System.getenv().get("STORAGE_ACCESS_KEY");
                final String secretKey = System.getenv().get("STORAGE_SECRET_KEY");
                final String region = System.getenv().get("STORAGE_SECRET_KEY");
                try {
                    if (StringUtil.isBlank(endpoint)) {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. src/cmd/dist/buildtool.go

    	defer os.Setenv("GOROOT", os.Getenv("GOROOT"))
    	os.Setenv("GOROOT", goroot_bootstrap)
    
    	defer os.Setenv("GOPATH", os.Getenv("GOPATH"))
    	os.Setenv("GOPATH", workspace)
    
    	defer os.Setenv("GOBIN", os.Getenv("GOBIN"))
    	os.Setenv("GOBIN", "")
    
    	os.Setenv("GOOS", "")
    	os.Setenv("GOHOSTOS", "")
    	os.Setenv("GOARCH", "")
    	os.Setenv("GOHOSTARCH", "")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top