features

package
v0.0.0-...-dbabdc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package features defines features enabled conditionally via flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// CleanIncludePaths enables the cleaning of include paths, which
	// involves checking for absolute paths and making them relative
	// to the working directory.
	// It is temporary feature for nest build. b/157442013
	CleanIncludePaths bool

	// ExperimentalCacheMissRate is the cache miss rate simulated by
	// reproxy in an experimental build. Not to be used for production.
	ExperimentalCacheMissRate int

	// ExperimentalGomaDepsCache enables using the reproxy deps cache
	// with gomaIP instead of goma's deps cache. This has no effect on
	// clangscandeps
	ExperimentalGomaDepsCache bool

	// ExperimentalGomaDepsCacheSize is the maximum number of elements to
	// be stored in the cache.
	ExperimentalGomaDepsCacheSize int

	// ExperimentalSysrootDoNotUpload disables upload of the files/directories
	// under the directory specified by the --sysroot flag.
	ExperimentalSysrootDoNotUpload bool

	// ExperimentalExitOnStuckActions shutdowns reproxy with exit code 1 if rewrapper's command
	// didn't finish within 2*reclient_timeout. This is meant to generate the call stack when
	// closing reproxy to pin down where the execution gets stuck
	//TODO(b/284246561) Remove once we have a confirmation where action execution gets stuck
	ExperimentalExitOnStuckActions bool

	// If false, disables the credential cache even if the auth mechanism claims it is cachable.
	// It is enabled by default.
	EnableCredentialCache bool

	// DepsScannerConnectTimeout is the number of seconds to wait before timing out on connecting
	// to the deps scanner service.
	DepsScannerConnectTimeout time.Duration
}

Config is the feature configuration in use.

func GetConfig

func GetConfig() *Config

GetConfig retrieves the singleton instance of the features config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL