upstreamsync

command
v0.23.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 15 Imported by: 0

Documentation

Overview

Command upstreamsync compares Nanostack DB with a go-jet release and, on request, merges it.

It reads the upstream base commit from db/UPSTREAM.md, exports the base and the requested upstream ref with `git archive`, and applies the same rewrite as the original import (module path and per-file header). It then prints:

  1. upstream changes: what go-jet changed between the base and the ref, after rewriting;
  2. Nanostack changes: where this module diverges from the rewritten base.

With -apply it also merges every upstream change into the module with `git merge-file` and lists the conflicts. Run it from the db directory:

go run ./tools/upstreamsync -ref v2.17.0
go run ./tools/upstreamsync -ref v2.17.0 -apply

See "Merging an upstream release" in db/UPSTREAM.md for the full procedure.

Jump to

Keyboard shortcuts

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