diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-11 19:44:28 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-12 00:19:42 +0900 |
| commit | 6e113b88364ade12b26c9f01c43608841b9378df (patch) | |
| tree | 28386b65784d7b50f976e3c3f2634dc007f1661f /internal/pkg/net_test.go | |
| parent | ce9f4b5f713b2ff2a03adefe83175d75d16ef24f (diff) | |
internal/pkg: content-based dependency substitution
This change introduces a new fast path for FloodArtifact. It is taken when a curing artifact has identical-by-content controlled relevant inputs and are otherwise identical to an already-cured artifact.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/net_test.go')
| -rw-r--r-- | internal/pkg/net_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/pkg/net_test.go b/internal/pkg/net_test.go index 4f9a072c..3728f8cb 100644 --- a/internal/pkg/net_test.go +++ b/internal/pkg/net_test.go @@ -90,6 +90,7 @@ func TestHTTPGet(t *testing.T) { ".": {Mode: fs.ModeDir | 0700}, "checksum": {Mode: fs.ModeDir | 0700}, "identifier": {Mode: fs.ModeDir | 0700}, + "substitute": {Mode: fs.ModeDir | 0700}, "work": {Mode: fs.ModeDir | 0700}, }}, @@ -159,6 +160,8 @@ func TestHTTPGet(t *testing.T) { "identifier": {Mode: fs.ModeDir | 0700}, "identifier/oM-2pUlk-mOxK1t3aMWZer69UdOQlAXiAgMrpZ1476VoOqpYVP1aGFS9_HYy-D8_": {Mode: fs.ModeSymlink | 0777, Data: []byte("../checksum/fLYGIMHgN1louE-JzITJZJo2SDniPu-IHBXubtvQWFO-hXnDVKNuscV7-zlyr5fU")}, + "substitute": {Mode: fs.ModeDir | 0700}, + "work": {Mode: fs.ModeDir | 0700}, }}, }) |
