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
Copy file name to clipboardExpand all lines: postal/service.go
+29-2Lines changed: 29 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,10 @@ import (
4
4
"errors"
5
5
"fmt"
6
6
"io"
7
+
"os"
7
8
"path/filepath"
8
9
"regexp"
10
+
"runtime"
9
11
"sort"
10
12
"strings"
11
13
"time"
@@ -52,15 +54,17 @@ type ErrNoDeps struct {
52
54
idstring
53
55
versionstring
54
56
stackstring
57
+
archstring
55
58
supportedVersions []string
56
59
}
57
60
58
61
// Error implements the error.Error interface
59
62
func (e*ErrNoDeps) Error() string {
60
-
returnfmt.Sprintf("failed to satisfy %q dependency version constraint %q: no compatible versions on %q stack. Supported versions are: [%s]",
63
+
returnfmt.Sprintf("failed to satisfy %q dependency version constraint %q: no compatible versions on %q stack with architecture %q. Supported versions are: [%s]",
Expect(err).To(MatchError(ContainSubstring("failed to satisfy \"some-entry\" dependency version constraint \"9.9.9\": no compatible versions on \"some-stack\" stack. Supported versions are: [1.2.3, 4.5.6]")))
518
+
Expect(err).To(MatchError(ContainSubstring("failed to satisfy \"some-entry\" dependency version constraint \"9.9.9\": no compatible versions on \"some-stack\" stack with architecture \"amd64\". Supported versions are: [1.2.3, 4.5.6]")))
0 commit comments