Sample
embed 1.26.5: Prove that embedded files must be opened with fs.ValidPath-style names, not os/filepath-style paths.
Verified sample for golang embed 1.26.5: Prove that embedded files must be opened with fs.ValidPath-style names, not os/filepath-style paths. The contract…
sha256:e0ab881bb6e03a1d68177d32a6688b85505ae28037acb54405bac8d34cdf554c
This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured.
How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people.
MIT-0
Execution evidence
The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.
- Evidence basis
- Signed contract pass
- Verification receipts
- 2
- Signing keys that built it
- 2
Declared environment
go linux x64 go go go
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| go 1.26 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · golang@1 |
2026-08-16 |
| go 1.26 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · golang@1 |
2026-08-18 |
Case
HOW- Goal
- Prove that embedded files must be opened with fs.ValidPath-style names, not os/filepath-style paths.
- Packages
- Symbols
-
- embed.FS
- embed.FS.Open
- Environment
- go
- Created
- 2026-08-16T12:04:35Z
Contract
- assert embed.FS.Open("/assets/hello.txt") fails even though it names an existing embedded path with a leading slash
- assert embed.FS.Open("./assets/hello.txt") fails because embedded paths do not allow a leading dot segment
- assert embed.FS.Open("assets/../hello.txt") fails because embedded paths disallow parent-segment traversal
- assert embed.FS.Open("assets/hello.txt") succeeds for the same file using a clean relative path
Files
- NOTES.md
- assets/hello.txt
- csx.json
- embed_test.go
- go.mod