Exclude build proxy artifacts from native provider module archives
Private module tooling / contract (pull_request) Failing after 4s
Private module tooling / contract (pull_request) Failing after 4s
Authored-By: Codex (GPT-6) <noreply@openai.com>
This commit is contained in:
@@ -27,9 +27,17 @@ func TestBundleRejectsStaleMissingModifiedAndUnexpectedArtifacts(t *testing.T) {
|
||||
}
|
||||
b, _ := json.Marshal(m)
|
||||
os.WriteFile(filepath.Join(bundleRoot, "manifest.json"), b, 0600)
|
||||
os.WriteFile(filepath.Join(bundleRoot, "go.mod"), []byte(archiveBoundary), 0600)
|
||||
if err := check(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for _, boundary := range []string{"", "module unexpected.invalid/nested\n"} {
|
||||
os.WriteFile(filepath.Join(bundleRoot, "go.mod"), []byte(boundary), 0600)
|
||||
if check() == nil {
|
||||
t.Fatal("missing or changed archive boundary accepted")
|
||||
}
|
||||
}
|
||||
os.WriteFile(filepath.Join(bundleRoot, "go.mod"), []byte(archiveBoundary), 0600)
|
||||
originalPath, originalVersion := m.Modules[0].Path, m.Modules[0].Version
|
||||
for _, change := range []string{"path", "version"} {
|
||||
if change == "path" {
|
||||
|
||||
Reference in New Issue
Block a user