BuildConstraintTag

The usage of a tag as a build constraint expression. This is the simplest form of expression and will return true if the tag is contained in the list of available tags.

Constructors

Link copied to clipboard
constructor(tag: String)

Properties

Link copied to clipboard
val tag: String

Functions

Link copied to clipboard
open override fun evaluate(tags: Set<String>): Boolean

Evaluates whether the current expression satisfies the set of tags. Tags can be for example the target operating system (e.g., linux), the target architecture (e.g. arm64), the Go version (e.g. go1.20) or other custom tags supplied to the build process.