upgrade

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package upgrade moves a project to another platform version.

The new version is required in go.mod, recorded in platformgo.yaml, and then applied by the new version itself through go tool: only it knows its generated files, its tools and its checks.

Index

Constants

View Source
const Module = "github.com/aidarbn/platform-go"

Module is the Go module of the platform.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	From, To string
}

Result says what changed.

func Run

func Run(ctx context.Context, dir, version string, run Runner, out io.Writer) (Result, error)

Run upgrades the project in dir to version: a tag, or latest.

type Runner

type Runner func(ctx context.Context, dir string, out io.Writer, args ...string) error

Runner runs the go command in the project. Tests replace it.

Jump to

Keyboard shortcuts

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