Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/common-go/util/util.go
2498 views
1
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package util
6
7
import "os"
8
9
func InLeewayBuild() bool {
10
for _, ev := range os.Environ() {
11
// env var set in WORKSPACE.yaml
12
if ev == "LEEWAY_BUILD=true" {
13
return true
14
}
15
}
16
return false
17
}
18
19