Files
2026-07-20 21:26:47 +08:00

890 B

update Command

中文 pack command

update scans existing Go spec packages, checks the latest upstream version, and can update the spec version.

Usage

go2spec update [options] <SPECS_DIR>

<SPECS_DIR> must contain go-* subdirectories with spec files.

SPECS_DIR/
go-golang-x-net/
go-golang-x-net/go-golang-x-net.spec

Options

-n
    Dry run, detect updates only, do not modify files

-j <num>
    Number of concurrent checks, default is 3

Start with dry run mode:

go2spec update -n /path/to/SPECS

Apply updates after reviewing the output:

go2spec update -j 4 /path/to/SPECS

Review the generated diff before committing packaging changes.