You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor zipfetcher and consistently use rev, not baseref (#598)
Before, sometimes we used Rev, sometimes BaseRef, which could in the worst case lead to inconsistencies. Search results might not match the fetched zip archive, or detected workspaces might differ from what's on disk in the end.
varerrOptionalPublishedUnsupported=errors.New(`This Sourcegraph version requires the "published" field to be specified in the batch spec; upgrade to version 3.30.0 or later to be able to omit the published field and control publication from the UI.`)
16
+
varerrOptionalPublishedUnsupported=batcheslib.NewValidationError(errors.New(`This Sourcegraph version requires the "published" field to be specified in the batch spec; upgrade to version 3.30.0 or later to be able to omit the published field and control publication from the UI.`))
17
17
18
18
funccreateChangesetSpecs(task*Task, resultexecutionResult, features batches.FeatureFlags) ([]*batcheslib.ChangesetSpec, error) {
returnfmt.Errorf("transformChanges would lead to multiple changesets in repository %s to have the same branch %q", repo, g.Branch)
167
+
returnbatcheslib.NewValidationError(fmt.Errorf("transformChanges would lead to multiple changesets in repository %s to have the same branch %q", repoName, g.Branch))
170
168
} else {
171
169
uniqueBranches[g.Branch] =struct{}{}
172
170
}
173
171
174
172
ifg.Branch==defaultBranch {
175
-
returnfmt.Errorf("transformChanges group branch for repository %s is the same as branch %q in changesetTemplate", repo, defaultBranch)
173
+
returnbatcheslib.NewValidationError(fmt.Errorf("transformChanges group branch for repository %s is the same as branch %q in changesetTemplate", repoName, defaultBranch))
0 commit comments