upstreamdoc-gen

command
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MPL-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

upstreamdoc-gen renders how choudoufu differs from upstream OpenTofu (#2256) into two files:

  • the "base" span of the site page site/src/content/docs/how-it-works/upstream.md: the upstream OpenTofu commit choudoufu is built on, from the committed live/fork-surface.json, which scripts/upstream-sync.sh --finish regenerates on every sync;
  • live/NEW-RUNTIME.md, whole: the same base and the new runtime's gap tables, from internal/live/newruntime/gaps.json through that package's own parser, so the file shows exactly the rows the refusal checks read, and the fork ports registered in internal/engine/forkport with their switches and expiry issues. The tables live in the repository, not on the site, because the site is held to a word limit (live/site_size_test.go).

Like tools/toggles-gen it reads only committed sources: no git, no network. The page's span uses internal/live/mdspan's markers, so the hand-written prose around it passes through byte for byte. render_test.go fails when either committed file differs from what this tool would write.

Usage, from anywhere in the checkout:

go run ./tools/upstreamdoc-gen

Jump to

Keyboard shortcuts

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