.gitattributes (text=auto eol=lf) for every checkout; README: running the tests from a fresh clone (npm ci in sdk-pq-sign first)
This commit is contained in:
parent
c3910c07a2
commit
c1909c2afb
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
* text=auto eol=lf
|
||||
@ -44,4 +44,4 @@ the documentation are in English. No third party has reviewed this code.
|
||||
|
||||
## Licence
|
||||
|
||||
MIT, see [LICENSE](LICENSE). Files: 60 (tools/proof-of-software 48, sdk-pq-sign 6, sdk 3).
|
||||
MIT, see [LICENSE](LICENSE). Files: 61 (tools/proof-of-software 48, sdk-pq-sign 6, sdk 3).
|
||||
|
||||
@ -299,3 +299,17 @@ node test/sbom-maven.test.mjs # 26/26 on real lockfiles written by
|
||||
# refused with the reason; the SBOM of a lockfile at the repository root attested with source.path "."
|
||||
node test/sbom-maven-control-negativ.mjs # on a copy, 16 guards removed -> their own tests turn red
|
||||
```
|
||||
|
||||
## Running the tests from a fresh clone
|
||||
|
||||
`pos.mjs` has no dependencies of its own: it uses `node:crypto` and the signing SDK next to it (`../../sdk-pq-sign`), whose pinned
|
||||
dependencies come from its lockfile. From a fresh clone of the published repository, install those first, then run the tests:
|
||||
|
||||
```
|
||||
cd sdk-pq-sign && npm ci && cd ../tools/proof-of-software
|
||||
node test/pos.test.mjs # and the others listed above
|
||||
```
|
||||
|
||||
Measured on 2026-10-18 from a fresh clone on Windows: without that step every test stops at `Cannot find package '@noble/post-quantum'`;
|
||||
with it, 16/16, 11/11, 14/14, 27/27, 26/26, 8/8, 12/12, 7/7. The repository carries `.gitattributes` (`* text=auto eol=lf`) so that a
|
||||
checkout keeps the committed bytes of the SBOM fixtures on every platform (a CRLF checkout changes the SHA-256 of a committed `pom.xml`).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user