buildscript

package
v0.0.0-...-ad3090c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDep

func AddDep(ctx *task.Context) error

AddDep adds a new dependency. Pass a package name with an optional `@$version` at the end.

func BuildTools

func BuildTools(ctx *task.Context) error

BuildTools is an Executor that builds the tools.

func CheckMinimumGoVersion

func CheckMinimumGoVersion(ctx *task.Context) error

func SAEvergreenValidate

func SAEvergreenValidate(ctx *task.Context) error

SAEvergreenValidate runs `evergreen validate` on common.yml and ensures the file is valid.

func SAInstallDevTools

func SAInstallDevTools(ctx *task.Context) error

func SAModTidy

func SAModTidy(ctx *task.Context) error

SAModTidy runs go mod tidy and ensure no changes were made. Copied from mongohouse: https://github.com/10gen/mongohouse/blob/333308814f96a0909c8125f71af7748b263e3263/buildscript/sa.go#L72

func SAPreciousLint

func SAPreciousLint(ctx *task.Context) error

func TestAWSAuth

func TestAWSAuth(ctx *task.Context) error

TestAWSAuth is an Executor that runs all AWS auth tests for the provided packages.

func TestIntegration

func TestIntegration(ctx *task.Context) error

TestIntegration is an Executor that runs all integration tests for the provided packages.

func TestKerberos

func TestKerberos(ctx *task.Context) error

TestKerberos is an Executor that runs all kerberos tests for the provided packages.

func TestUnit

func TestUnit(ctx *task.Context) error

TestUnit is an Executor that runs all unit tests for the provided packages.

func UpdateAllDeps

func UpdateAllDeps(ctx *task.Context) error

UpdateAll updates all existing dependencies to their latest versions. To exclude one or more packages, set the `-exclude` argument to a list of packages separated by a space.

This does not upgrade packages included as the replacement in a `replace` block. Those must be upgraded by editing the `go.mod` file directly.

func UpdateDep

func UpdateDep(ctx *task.Context) error

UpdateDep updates an existing dependency. Pass a package name with an optional `@$version` at the end.

func WriteAugmentedSBOM

func WriteAugmentedSBOM(ctx *task.Context) error

WriteAugmentedSBOM creates the SBOM Lite file for this project. This requires the following env vars to be set:

  • SILK_CLIENT_ID
  • SILK_CLIENT_SECRET
  • EVG_TRIGGERED_BY_TAG

func WriteSBOMLite

func WriteSBOMLite(ctx *task.Context) error

func WriteThirdPartyNotices

func WriteThirdPartyNotices(ctx *task.Context) error

WriteThirdPartyNotices writes the `THIRD-PARTY-NOTICES` file for this project, which contains all the licenses for our vendored code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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