copycheck

command
v0.125.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0 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

Command copycheck is the gate behind a rule that used to be a sentence: code of a copyleft reference (ffmpeg, FAAD2...) may be READ to understand, never copied or translated, and its tables never copied verbatim.

A repository declares what it read in .provenance.yml: name, URL, pinned revision, SHA-256 of the extracted tree, SPDX licence, and a role (studied, oracle, tables-from, ported-from). copycheck fetches each reference into a cache outside any repository, REFUSES a hash that differs, REFUSES a role the licence does not allow, and then looks for our code in theirs in two ways that do not depend on the language: runs of numeric literals (a table survives being retyped) and the shape of the code (a C function survives being translated into Go). See internal/copycheck for how, and the README for the thresholds and the control they were tuned on.

Exit status: 0 clean, 1 findings, 2 the question could not be answered (a reference unreadable, a hash mismatch, a bad manifest). An unreadable reference is never clean.

Jump to

Keyboard shortcuts

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