Documentation
¶
Overview ¶
Package manifest reads block.toml: the human-written statement of which tools a project wants and roughly which versions.
platforms = ["linux/amd64", "darwin/arm64"] # optional; default: this machine
[tools]
foundry = "1.7"
[tools.foo]
version = "1.2"
[tools.foo.source]
type = "github_release"
repo = "example/foo"
asset = "foo_{version}_{os}_{arch}.tar.gz"
bin = ["foo"]
Index ¶
Constants ¶
View Source
const FileName = "block.toml"
FileName is the manifest file name block looks for.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manifest ¶
type Manifest struct {
// Platforms are the platforms `block lock` resolves artifacts for. Empty
// means the current platform only.
Platforms []platform.Platform
// Tools are sorted by name.
Tools []Tool
}
Manifest is a parsed block.toml.
func (*Manifest) EffectivePlatforms ¶
EffectivePlatforms returns the declared platforms, or [current] when none are declared.
Click to show internal directories.
Click to hide internal directories.