update

package
v0.0.0-...-6a00723 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Overview

Command update helps identify and perform updates to Firefly's dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, w io.Writer, args []string) error

func MajorUpdate

func MajorUpdate(current, next string) bool

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

func ParseUpdateDeps(filename string, f *build.File) (*vendeps.UpdateDeps, error)

ParseUpdateDeps parses a deps.bzl file for the set of dependencies so they can be checked for updates.

func UnmarshalFields

func UnmarshalFields(call *build.CallExpr, v any) error

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

func UpdateDependencies(name string) error

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

Jump to

Keyboard shortcuts

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