dagbench-ci
No long description provided.
Installation
dagger install github.com/TomChv/dagbench/.dagger/ci@v0.0.1Entrypoint
Return Type
Go !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| source | Directory ! | - | Project source directory | 
| version | String | "1.25.1" | Go version | 
| moduleCache | CacheVolume | - | Use a custom module cache | 
| buildCache | CacheVolume | - | Use a custom build cache | 
| base | Container | - | Use a custom base container. The container must have Go installed. | 
| ldflags | [String ! ] | - | Pass arguments to 'go build -ldflags'' | 
| values | [String ! ] | - | Add string value definition of the form importpath.name=value Example: "github.com/my/module.Foo=bar" | 
| cgo | Boolean | - | Enable CGO | 
| race | Boolean | - | Enable race detector. Implies cgo=true | 
| experiment | [String ! ] | - | Enable go experiments https://pkg.go.dev/internal/goexperiment | 
Example
Function Go.Constructor is not accessible from the dagbench-ci moduleFunction Go.Constructor is not accessible from the dagbench-ci moduleFunction Go.Constructor is not accessible from the dagbench-ci moduleFunction Go.Constructor is not accessible from the dagbench-ci moduleTypes
Go 🔗
A Go project
version() 🔗
Go version
Return Type
String !Example
Function Go.version is not accessible from the dagbench-ci moduleFunction Go.version is not accessible from the dagbench-ci moduleFunction Go.version is not accessible from the dagbench-ci moduleFunction Go.version is not accessible from the dagbench-ci modulesource() 🔗
Project source directory
Return Type
Directory !Example
Function Go.source is not accessible from the dagbench-ci moduleFunction Go.source is not accessible from the dagbench-ci moduleFunction Go.source is not accessible from the dagbench-ci moduleFunction Go.source is not accessible from the dagbench-ci modulemoduleCache() 🔗
Go module cache
Return Type
CacheVolume !Example
Function Go.moduleCache is not accessible from the dagbench-ci moduleFunction Go.moduleCache is not accessible from the dagbench-ci moduleFunction Go.moduleCache is not accessible from the dagbench-ci moduleFunction Go.moduleCache is not accessible from the dagbench-ci modulebuildCache() 🔗
Go build cache
Return Type
CacheVolume !Example
Function Go.buildCache is not accessible from the dagbench-ci moduleFunction Go.buildCache is not accessible from the dagbench-ci moduleFunction Go.buildCache is not accessible from the dagbench-ci moduleFunction Go.buildCache is not accessible from the dagbench-ci modulebase() 🔗
Base container from which to run all operations
Return Type
Container !Example
Function Go.base is not accessible from the dagbench-ci moduleFunction Go.base is not accessible from the dagbench-ci moduleFunction Go.base is not accessible from the dagbench-ci moduleFunction Go.base is not accessible from the dagbench-ci moduleldflags() 🔗
Pass arguments to ‘go build -ldflags”
Return Type
[String ! ] !Example
Function Go.ldflags is not accessible from the dagbench-ci moduleFunction Go.ldflags is not accessible from the dagbench-ci moduleFunction Go.ldflags is not accessible from the dagbench-ci moduleFunction Go.ldflags is not accessible from the dagbench-ci modulevalues() 🔗
Add string value definition of the form importpath.name=value
Return Type
[String ! ] !Example
Function Go.values is not accessible from the dagbench-ci moduleFunction Go.values is not accessible from the dagbench-ci moduleFunction Go.values is not accessible from the dagbench-ci moduleFunction Go.values is not accessible from the dagbench-ci modulecgo() 🔗
Enable CGO
Return Type
Boolean !Example
Function Go.cgo is not accessible from the dagbench-ci moduleFunction Go.cgo is not accessible from the dagbench-ci moduleFunction Go.cgo is not accessible from the dagbench-ci moduleFunction Go.cgo is not accessible from the dagbench-ci modulerace() 🔗
Enable race detector
Return Type
Boolean !Example
Function Go.race is not accessible from the dagbench-ci moduleFunction Go.race is not accessible from the dagbench-ci moduleFunction Go.race is not accessible from the dagbench-ci moduleFunction Go.race is not accessible from the dagbench-ci moduleexperiment() 🔗
Enable go experiments
Return Type
[String ! ] !Example
Function Go.experiment is not accessible from the dagbench-ci moduleFunction Go.experiment is not accessible from the dagbench-ci moduleFunction Go.experiment is not accessible from the dagbench-ci moduleFunction Go.experiment is not accessible from the dagbench-ci moduledownload() 🔗
Download dependencies into the module cache
Return Type
Go !Example
Function Go.download is not accessible from the dagbench-ci moduleFunction Go.download is not accessible from the dagbench-ci moduleFunction Go.download is not accessible from the dagbench-ci moduleFunction Go.download is not accessible from the dagbench-ci moduleenv() 🔗
Prepare a build environment for the given Go source code: - Build a base container with Go tooling installed and configured - Apply configuration - Mount the source code
Return Type
Container !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| platform | Scalar | - | No description provided | 
Example
Function Go.env is not accessible from the dagbench-ci moduleFunction Go.env is not accessible from the dagbench-ci moduleFunction Go.env is not accessible from the dagbench-ci moduleFunction Go.env is not accessible from the dagbench-ci moduletests() 🔗
List tests
Return Type
String !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| pkgs | [String ! ] | ["./..."] | Packages to list tests from (default all packages) | 
Example
Function Go.tests is not accessible from the dagbench-ci moduleFunction Go.tests is not accessible from the dagbench-ci moduleFunction Go.tests is not accessible from the dagbench-ci moduleFunction Go.tests is not accessible from the dagbench-ci modulebuild() 🔗
Build the given main packages, and return the build directory
Return Type
Directory !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| pkgs | [String ! ] | ["./..."] | Which targets to build (default all main packages) | 
| noSymbols | Boolean | - | Disable symbol table | 
| noDwarf | Boolean | - | Disable DWARF generation | 
| platform | Scalar | - | Target build platform | 
| output | String | "./bin/" | Output directory | 
Example
Function Go.build is not accessible from the dagbench-ci moduleFunction Go.build is not accessible from the dagbench-ci moduleFunction Go.build is not accessible from the dagbench-ci moduleFunction Go.build is not accessible from the dagbench-ci modulebinary() 🔗
Build a single main package, and return the compiled binary
Return Type
File !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| pkg | String ! | - | Which package to build | 
| noSymbols | Boolean | - | Disable symbol table | 
| noDwarf | Boolean | - | Disable DWARF generation | 
| platform | Scalar | - | Target build platform | 
Example
Function Go.binary is not accessible from the dagbench-ci moduleFunction Go.binary is not accessible from the dagbench-ci moduleFunction Go.binary is not accessible from the dagbench-ci moduleFunction Go.binary is not accessible from the dagbench-ci moduletest() 🔗
Run tests for the given packages
Return Type
Void !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| run | String | - | Only run these tests | 
| skip | String | - | Skip these tests | 
| failfast | Boolean | - | Abort test run on first failure | 
| parallel | Integer | 0 | How many tests to run in parallel - defaults to the number of CPUs | 
| timeout | String | "30m" | How long before timing out the test run | 
| count | Integer | 1 | No description provided | 
| pkgs | [String ! ] | ["./..."] | Which packages to test | 
Example
Function Go.test is not accessible from the dagbench-ci moduleFunction Go.test is not accessible from the dagbench-ci moduleFunction Go.test is not accessible from the dagbench-ci moduleFunction Go.test is not accessible from the dagbench-ci modulelistPackages() 🔗
List packages matching the specified criteria
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| pkgs | [String ! ] | ["./..."] | Filter by name or pattern. Example './foo/...' | 
| onlyMain | Boolean | - | Only list main packages | 
Example
Function Go.listPackages is not accessible from the dagbench-ci moduleFunction Go.listPackages is not accessible from the dagbench-ci moduleFunction Go.listPackages is not accessible from the dagbench-ci moduleFunction Go.listPackages is not accessible from the dagbench-ci modulelint() 🔗
Lint the project
Return Type
Void !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| packages | [String ! ] | - | No description provided | 
Example
Function Go.lint is not accessible from the dagbench-ci moduleFunction Go.lint is not accessible from the dagbench-ci moduleFunction Go.lint is not accessible from the dagbench-ci moduleFunction Go.lint is not accessible from the dagbench-ci module