consumers
Some repositories make files others copy: brand’s stylesheets and marks are committed into the
dashboard, the website and the blog. A copy says nothing about where it came from, and a
repository that changes an output cannot see who still has the old one. consumers.toml names
every place that copies, and consumers reads each one and says where it is.
name = "brand" # what a consumer's versions.yaml calls this repositoryscopes = ["@fontsource", "@fontsource-variable"] # optional: the npm scopes whose packages are this repository's to pin
[[consumer]]name = "website" # what the report calls itrepo = "spin-stack/website"pin = "versions.yaml" # the file, there, whose `brand` entry names the commit it is onpackages = "package.json" # optional: held to the npm packages versions.yaml pins here[consumer.copies]"src/styles/brand-tokens.css" = "dist/tokens.css" # its file = the file here it is a copy ofgo tool task consumersgo tool task consumers -- -checkout spin-stack/spin=../spin -checkout spin-stack/t3code=../t3code@fork/spinFor each consumer, read at its default branch through gh api, or from a checkout given with
-checkout owner/name=dir[@ref]:
- pin - the commit its
versions.yamlpins, the release that names it, the newest release, and how many commits behind main it is. A consumer with no pin is compared with main. - copies - whether each copied file is byte for byte what this repository had at that commit.
- packages - whether its
package.jsoninstalls the npm packages this repository’sversions.yamlpinned at that commit, at those versions, and nothing else ofscopes. For brand these are the faces its stylesheets name, which a consumer installs and does not copy. A scope is whole, the name before a package’s slash, and each one is listed:@fontsourcedoes not hold@fontsourcery/x, and it does not hold@fontsource-variable/intereither, which is why brand lists both - the variable package is the wrong Inter a fork comes with, and the report says@fontsource-variable/inter ^5.3.0 is no package brand pins.
The report’s lines are pin, copies and packages, and a package is called a package. brand’s
own command, which this one replaced, said fonts and face: anything that reads the report
for those words reads packages and package now.
It exits 0 whatever it finds. A consumer that is behind is that repository’s to fix, and the gate of the one it copies from must not fail for it. A repository that cannot be read is said so, and the others are still reported. The clone it runs in has to hold the commits the consumers pin, which a shallow clone does not.
A field the table does not know is refused, so a misspelt packages is not a row held to less.
A repository’s own test can read the table with the consumers package’s Load, to hold it to
the tree: that every file a row copies is one it has.

