Documentation ¶
Overview ¶
Command update helps identify and perform updates to Firefly's dependencies.
Index ¶
- func Main(ctx context.Context, w io.Writer, args []string) error
- func MajorUpdate(current, next string) bool
- func ParseUpdateDeps(filename string, f *build.File) (*vendeps.UpdateDeps, error)
- func UnmarshalFields(call *build.CallExpr, v any) error
- func UpdateDependencies(name string) error
- type StringField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MajorUpdate ¶
MajorUpdate returns true if the newer version has a different major number, or if both have major version 0 and the newer version has a different minor version.
func ParseUpdateDeps ¶
ParseUpdateDeps parses a deps.bzl file for the set of dependencies so they can be checked for updates.
func UnmarshalFields ¶
UnmarshalFields processes the AST node for a Starlark function call and stores its parameters into data.
UnmarshalFields will return an error if any required fields were unset, or if any additional fields were found in the AST.
func UpdateDependencies ¶
UpdateDependencies parses the given set of dependencies and checks each for an update, updating the document if possible.
Note that UpdateDependencies does not modify the set of vendored dependencies, only the dependency specification.
Types ¶
type StringField ¶
type StringField struct { // The parsed value. Value string // A pointer to the original AST node, which // can be modified to update the AST. Ptr *string }
StringField represents a field in a Starlark function that receives a string literal.
func (StringField) String ¶
func (f StringField) String() string