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:
- upstream changes: what go-jet changed between the base and the ref, after rewriting;
- 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.
Click to show internal directories.
Click to hide internal directories.