Documentation
¶
Index ¶
- func ChangedFiles(gitRoot string, turboRoot string, fromCommit string, toCommit string) ([]string, error)
- func FromWildcards(environmentMap map[string]string, wildcardPatterns []string) (map[string]string, error)
- func GetGlobalHashableEnvVars(envAtExecutionStart map[string]string, globalEnv []string) (*ffi_proto.DetailedMap, error)
- func GetHashesForFiles(rootPath string, files []string, allowMissing bool) (map[string]string, error)
- func GetPackageFileHashes(rootPath string, packagePath string, inputs []string) (map[string]string, error)
- func GetTurboDataDir() string
- func GlobalChange(packageManager string, prevContents []byte, currContents []byte) bool
- func Marshal[M proto.Message](c M) C.Buffer
- func PreviousContent(gitRoot, fromCommit, filePath string) ([]byte, error)
- func TransitiveDeps(content []byte, packageManager string, workspaces map[string]map[string]string, ...) (map[string]*ffi_proto.LockfilePackageList, error)
- func Unmarshal[M proto.Message](b C.Buffer, c M) error
- func VerifySignature(teamID []byte, hash string, artifactBody []byte, expectedTag string, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangedFiles ¶
func ChangedFiles(gitRoot string, turboRoot string, fromCommit string, toCommit string) ([]string, error)
ChangedFiles returns the files changed in between two commits, the workdir and the index, and optionally untracked files
func FromWildcards ¶
func FromWildcards(environmentMap map[string]string, wildcardPatterns []string) (map[string]string, error)
FromWildcards returns an EnvironmentVariableMap containing the variables in the environment which match an array of wildcard patterns.
func GetGlobalHashableEnvVars ¶
func GetGlobalHashableEnvVars(envAtExecutionStart map[string]string, globalEnv []string) (*ffi_proto.DetailedMap, error)
GetGlobalHashableEnvVars calculates env var dependencies
func GetHashesForFiles ¶
func GetHashesForFiles(rootPath string, files []string, allowMissing bool) (map[string]string, error)
GetHashesForFiles proxies to rust for hashing a given set of files
func GetPackageFileHashes ¶
func GetPackageFileHashes(rootPath string, packagePath string, inputs []string) (map[string]string, error)
GetPackageFileHashes proxies to rust for hashing the files in a package
func GetTurboDataDir ¶
func GetTurboDataDir() string
GetTurboDataDir returns the path to the Turbo data directory
func GlobalChange ¶
GlobalChange checks if there are any differences between lockfiles that would completely invalidate the cache.
func Marshal ¶
Marshal consumes a proto.Message and returns a bufferfire
NOTE: the buffer must be freed by calling `Free` on it
func PreviousContent ¶
PreviousContent returns the content of a file at a previous commit
func TransitiveDeps ¶
func TransitiveDeps(content []byte, packageManager string, workspaces map[string]map[string]string, resolutions map[string]string) (map[string]*ffi_proto.LockfilePackageList, error)
TransitiveDeps returns the transitive external deps for all provided workspaces
Types ¶
This section is empty.