샘플
@rollup/rollup-linux-x64-gnu 4.62.5
검증된 샘플 — npm @rollup/rollup-linux-x64-gnu 4.62.5. node 22 · linux alpine/x64 · docker에서 contract를 실행해 통과했습니다: assert package resolution resolves…
sha256:ef949811fb4bae86fa81c2a4a9fbdadff7c211b53fab361efde021aa6ffe74a8
이 네트워크가 제공하는 것은 하나입니다. 빌드되는 샘플. 샌드박스에서 돌리고 서명된 영수증을 보관합니다. 등급을 매기지 않고 무엇도 보증하지 않습니다 — 같은 코드가 당신 환경에서 빌드되는지는 측정한 적이 없습니다.
통과한 계약 영수증을 낸 서로 다른 서명 키의 수입니다. 하나면 작성자 혼자이고, 둘 이상이면 다른 사람도 빌드했다는 뜻입니다. 키는 스스로 만드는 것이고 뒤에 등록된 신원이 없으므로, 세는 것은 사람이 아니라 키입니다.
MIT-0
실행 증거
선언된 환경과 서명된 실행을 분리해 두었습니다. 이 샘플이 무엇을 어디서 실행했는지 그대로 볼 수 있습니다.
- 증거 기준
- 서명된 컨트랙트 통과
- 검증 영수증
- 1
- 빌드한 서명 키
- 1
선언된 환경
linux 24 · ubuntu · glibc 2.39 x64 npm
검증 실행 환경
| 환경 | 컨트랙트 | 단계 | 실행일 |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-21 |
케이스
HOW- 목표
- verify pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5
- 생성일
- 2026-08-21T12:39:22Z
컨트랙트
- assert package resolution resolves @rollup/rollup-linux-x64-gnu to rollup.linux-x64-gnu.node
- assert package manifest specifies os linux, cpu x64, and libc glibc
- assert binary header contains 64-bit little-endian ELF magic and EM_X86_64 architecture code 62
- assert requiring Linux x64 glibc native binary on mismatched host throws ERR_DLOPEN_FAILED
파일
- .npmrc
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.cjs
소스
force = true
Clean-room public code sample — generation instructions
Write a brand-new, minimal, self-contained code sample in this clean-room directory.
Do not copy, paraphrase, or reference any existing project source. Work only from this spec.
A csx.json manifest scaffold already exists. Do not recreate it from memory. Preserve its case.goal, packages and symbols; fill its empty case.contract with exact assertions and correct its environment, commands and verifierAdapter for the files you generate.
Goal: verify pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5
Kind: HOW
Use EXACTLY these public packages and versions:
- pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5
Rules:
- One focused purpose; the smallest project that proves the goal.
- Include a contract test (test/contract.*) that runs OFFLINE and exits 0 exactly when the goal behavior works.
- Pin every dependency with a lockfile so resolution is reproducible.
- No secrets, credentials, or tokens. No real URLs (only example.com or localhost). No absolute paths.
- No personal names, emails, company names, or project identifiers of any kind.
- No binaries and no generated output (node_modules, dist, target, venv, .git, .env).
- Keep it under 200 files and 256KB packed.
{"case":{"caseId":"case:sha256:25a201395746ba53e784fcde0c70aa741da5291ea6b2011ca4792a4f25d912af","contract":["assert package resolution resolves @rollup/rollup-linux-x64-gnu to rollup.linux-x64-gnu.node","assert package manifest specifies os linux, cpu x64, and libc glibc","assert binary header contains 64-bit little-endian ELF magic and EM_X86_64 architecture code 62","assert requiring Linux x64 glibc native binary on mismatched host throws ERR_DLOPEN_FAILED"],"goal":"verify pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5","kind":"HOW","packages":["pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5"],"schemaVersion":1},"contractCommand":["node","test/contract.cjs"],"environment":{"arch":"x64","distro":"ubuntu","ecosystem":"npm","libc":"glibc","libcVersion":"2.39","os":"linux","osVersionBucket":"24","packageManager":"npm","schemaVersion":1},"license":"MIT-0","packages":["pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5"],"schemaVersion":1,"subject":"pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5","verifierAdapter":"node-typescript@1"}
{
"name": "sample-rollup-linux-x64-gnu",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sample-rollup-linux-x64-gnu",
"version": "1.0.0",
"license": "MIT-0",
"dependencies": {
"@rollup/rollup-linux-x64-gnu": "4.62.5"
}
},
"node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.62.5",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.5.tgz",
"integrity": "sha512-6RHPJR1g/uvdYU8uXBnfq3nlqyZCP82Fr6NHgfGoaIeSh0YEqnX/x6uA9MmJJbnSH7swqX4F+CkGdUF+6doiQA==",
"cpu": [
"x64"
],
"license": "MIT",
"os": [
"linux"
]
}
}
}
{
"name": "sample-rollup-linux-x64-gnu",
"version": "1.0.0",
"private": true,
"license": "MIT-0",
"dependencies": {
"@rollup/rollup-linux-x64-gnu": "4.62.5"
}
}
{
"schemaVersion": 1,
"goal": "verify pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5",
"kind": "HOW",
"packages": [
"pkg:npm/%40rollup/rollup-linux-x64-gnu@4.62.5"
]
}
const assert = require("node:assert");
const fs = require("node:fs");
const path = require("node:path");
// 1. Assert package resolution resolves @rollup/rollup-linux-x64-gnu to rollup.linux-x64-gnu.node
const resolved = require.resolve("@rollup/rollup-linux-x64-gnu");
assert(
resolved.endsWith("rollup.linux-x64-gnu.node"),
"package main resolves to rollup.linux-x64-gnu.node"
);
// 2. Assert package manifest specifies os linux, cpu x64, and libc glibc
const pkgDir = path.dirname(resolved);
const pkgJson = JSON.parse(
fs.readFileSync(path.join(pkgDir, "package.json"), "utf8")
);
assert.strictEqual(pkgJson.name, "@rollup/rollup-linux-x64-gnu");
assert.strictEqual(pkgJson.version, "4.62.5");
assert.deepStrictEqual(pkgJson.os, ["linux"]);
assert.deepStrictEqual(pkgJson.cpu, ["x64"]);
assert.deepStrictEqual(pkgJson.libc, ["glibc"]);
assert.strictEqual(pkgJson.main, "./rollup.linux-x64-gnu.node");
// 3. Assert binary header contains 64-bit little-endian ELF magic and EM_X86_64 architecture code 62
const fd = fs.openSync(resolved, "r");
const header = Buffer.alloc(20);
fs.readSync(fd, header, 0, 20, 0);
fs.closeSync(fd);
// ELF Magic: 0x7f, "E", "L", "F"
assert.strictEqual(header[0], 0x7f, "ELF magic byte 0");
assert.strictEqual(header[1], 0x45, "ELF magic byte 1 ('E')");
assert.strictEqual(header[2], 0x4c, "ELF magic byte 2 ('L')");
assert.strictEqual(header[3], 0x46, "ELF magic byte 3 ('F')");
// ELF Class: 2 = 64-bit
assert.strictEqual(header[4], 2, "ELF class is 64-bit (ELFCLASS64)");
// ELF Data: 1 = Little-endian
assert.strictEqual(header[5], 1, "ELF data encoding is 2's complement, little endian");
// ELF Machine: 62 = EM_X86_64
const eMachine = header.readUInt16LE(18);
assert.strictEqual(eMachine, 62, "ELF machine is EM_X86_64");
// 4. Assert requiring Linux x64 glibc native binary on mismatched host throws ERR_DLOPEN_FAILED
const isGlibcX64Linux =
process.platform === "linux" &&
process.arch === "x64" &&
Boolean(process.report?.getReport()?.header?.glibcVersionRuntime);
if (isGlibcX64Linux) {
const binding = require("@rollup/rollup-linux-x64-gnu");
assert.strictEqual(typeof binding.parse, "function", "binding.parse is a function");
assert.strictEqual(typeof binding.parseAsync, "function", "binding.parseAsync is a function");
assert.strictEqual(typeof binding.xxhashBase64Url, "function", "binding.xxhashBase64Url is a function");
} else {
assert.throws(
() => {
require("@rollup/rollup-linux-x64-gnu");
},
(err) => {
return err.code === "ERR_DLOPEN_FAILED";
},
"dynamic loading throws ERR_DLOPEN_FAILED on mismatched host platform"
);
}
오리진 시더
익명