Skip to content

Commit 9eae5ab

Browse files
authored
fixed issue #47 (#48)
1 parent 19e1bd9 commit 9eae5ab

File tree

4 files changed

+326
-0
lines changed

4 files changed

+326
-0
lines changed

parser/parse.go

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func Parse(
3030
var downloadErrors = []*regexp.Regexp{
3131
regexp.MustCompile(`no required module provides package (?P<package>[^\s]+);`),
3232
regexp.MustCompile(`updates to go.mod needed; to update it:`),
33+
regexp.MustCompile(`.+missing go.sum entry for module.+; to add:`),
3334
}
3435

3536
func parse(

testdata/issue-47.parser.json

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"prefix": null,
3+
"downloads": {
4+
"packages": [
5+
{
6+
"package": "go.flow.arcalot.io/pluginsdk",
7+
"version": "v0.0.0-20221007155452-ba5c76da9fc9",
8+
"failed": false,
9+
"reason": ""
10+
},
11+
{
12+
"package": "gopkg.in/yaml.v3",
13+
"version": "v3.0.1",
14+
"failed": false,
15+
"reason": ""
16+
},
17+
{
18+
"package": "go.arcalot.io/log",
19+
"version": "v1.1.0",
20+
"failed": false,
21+
"reason": ""
22+
},
23+
{
24+
"package": "go.arcalot.io/lang",
25+
"version": "v1.0.0",
26+
"failed": false,
27+
"reason": ""
28+
},
29+
{
30+
"package": "github.com/docker/docker",
31+
"version": "v20.10.18+incompatible",
32+
"failed": false,
33+
"reason": ""
34+
},
35+
{
36+
"package": "github.com/docker/go-connections",
37+
"version": "v0.4.0",
38+
"failed": false,
39+
"reason": ""
40+
},
41+
{
42+
"package": "github.com/opencontainers/image-spec",
43+
"version": "v1.0.2",
44+
"failed": false,
45+
"reason": ""
46+
},
47+
{
48+
"package": "go.arcalot.io/assert",
49+
"version": "v1.1.0",
50+
"failed": false,
51+
"reason": ""
52+
},
53+
{
54+
"package": "github.com/docker/go-units",
55+
"version": "v0.5.0",
56+
"failed": false,
57+
"reason": ""
58+
},
59+
{
60+
"package": "github.com/docker/distribution",
61+
"version": "v2.8.1+incompatible",
62+
"failed": false,
63+
"reason": ""
64+
},
65+
{
66+
"package": "github.com/opencontainers/go-digest",
67+
"version": "v1.0.0",
68+
"failed": false,
69+
"reason": ""
70+
},
71+
{
72+
"package": "github.com/pkg/errors",
73+
"version": "v0.9.1",
74+
"failed": false,
75+
"reason": ""
76+
},
77+
{
78+
"package": "github.com/sirupsen/logrus",
79+
"version": "v1.9.0",
80+
"failed": false,
81+
"reason": ""
82+
},
83+
{
84+
"package": "golang.org/x/net",
85+
"version": "v0.0.0-20201021035429-f5854403a974",
86+
"failed": false,
87+
"reason": ""
88+
},
89+
{
90+
"package": "github.com/gogo/protobuf",
91+
"version": "v1.3.2",
92+
"failed": false,
93+
"reason": ""
94+
},
95+
{
96+
"package": "golang.org/x/sys",
97+
"version": "v0.0.0-20220715151400-c0bba94af5f8",
98+
"failed": false,
99+
"reason": ""
100+
}
101+
],
102+
"failed": true,
103+
"reason": "../../../go/pkg/mod/go.flow.arcalot.io/[email protected]/atp/client.go:8:2: missing go.sum entry for module providing package github.com/fxamacker/cbor/v2 (imported by go.flow.arcalot.io/pluginsdk/atp); to add:\n\tgo get go.flow.arcalot.io/pluginsdk/[email protected]"
104+
},
105+
"packages": null
106+
}

testdata/issue-47.tokenizer.json

+201
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
[
2+
{
3+
"action": "download",
4+
"package": "go.flow.arcalot.io/pluginsdk",
5+
"version": "v0.0.0-20221007155452-ba5c76da9fc9",
6+
"test": "",
7+
"elapsed": "0s",
8+
"output": null,
9+
"cached": false,
10+
"coverage": null,
11+
"json": false
12+
},
13+
{
14+
"action": "download",
15+
"package": "gopkg.in/yaml.v3",
16+
"version": "v3.0.1",
17+
"test": "",
18+
"elapsed": "0s",
19+
"output": null,
20+
"cached": false,
21+
"coverage": null,
22+
"json": false
23+
},
24+
{
25+
"action": "download",
26+
"package": "go.arcalot.io/log",
27+
"version": "v1.1.0",
28+
"test": "",
29+
"elapsed": "0s",
30+
"output": null,
31+
"cached": false,
32+
"coverage": null,
33+
"json": false
34+
},
35+
{
36+
"action": "download",
37+
"package": "go.arcalot.io/lang",
38+
"version": "v1.0.0",
39+
"test": "",
40+
"elapsed": "0s",
41+
"output": null,
42+
"cached": false,
43+
"coverage": null,
44+
"json": false
45+
},
46+
{
47+
"action": "download",
48+
"package": "github.com/docker/docker",
49+
"version": "v20.10.18+incompatible",
50+
"test": "",
51+
"elapsed": "0s",
52+
"output": null,
53+
"cached": false,
54+
"coverage": null,
55+
"json": false
56+
},
57+
{
58+
"action": "download",
59+
"package": "github.com/docker/go-connections",
60+
"version": "v0.4.0",
61+
"test": "",
62+
"elapsed": "0s",
63+
"output": null,
64+
"cached": false,
65+
"coverage": null,
66+
"json": false
67+
},
68+
{
69+
"action": "download",
70+
"package": "github.com/opencontainers/image-spec",
71+
"version": "v1.0.2",
72+
"test": "",
73+
"elapsed": "0s",
74+
"output": null,
75+
"cached": false,
76+
"coverage": null,
77+
"json": false
78+
},
79+
{
80+
"action": "download",
81+
"package": "go.arcalot.io/assert",
82+
"version": "v1.1.0",
83+
"test": "",
84+
"elapsed": "0s",
85+
"output": null,
86+
"cached": false,
87+
"coverage": null,
88+
"json": false
89+
},
90+
{
91+
"action": "download",
92+
"package": "github.com/docker/go-units",
93+
"version": "v0.5.0",
94+
"test": "",
95+
"elapsed": "0s",
96+
"output": null,
97+
"cached": false,
98+
"coverage": null,
99+
"json": false
100+
},
101+
{
102+
"action": "download",
103+
"package": "github.com/docker/distribution",
104+
"version": "v2.8.1+incompatible",
105+
"test": "",
106+
"elapsed": "0s",
107+
"output": null,
108+
"cached": false,
109+
"coverage": null,
110+
"json": false
111+
},
112+
{
113+
"action": "download",
114+
"package": "github.com/opencontainers/go-digest",
115+
"version": "v1.0.0",
116+
"test": "",
117+
"elapsed": "0s",
118+
"output": null,
119+
"cached": false,
120+
"coverage": null,
121+
"json": false
122+
},
123+
{
124+
"action": "download",
125+
"package": "github.com/pkg/errors",
126+
"version": "v0.9.1",
127+
"test": "",
128+
"elapsed": "0s",
129+
"output": null,
130+
"cached": false,
131+
"coverage": null,
132+
"json": false
133+
},
134+
{
135+
"action": "download",
136+
"package": "github.com/sirupsen/logrus",
137+
"version": "v1.9.0",
138+
"test": "",
139+
"elapsed": "0s",
140+
"output": null,
141+
"cached": false,
142+
"coverage": null,
143+
"json": false
144+
},
145+
{
146+
"action": "download",
147+
"package": "golang.org/x/net",
148+
"version": "v0.0.0-20201021035429-f5854403a974",
149+
"test": "",
150+
"elapsed": "0s",
151+
"output": null,
152+
"cached": false,
153+
"coverage": null,
154+
"json": false
155+
},
156+
{
157+
"action": "download",
158+
"package": "github.com/gogo/protobuf",
159+
"version": "v1.3.2",
160+
"test": "",
161+
"elapsed": "0s",
162+
"output": null,
163+
"cached": false,
164+
"coverage": null,
165+
"json": false
166+
},
167+
{
168+
"action": "download",
169+
"package": "golang.org/x/sys",
170+
"version": "v0.0.0-20220715151400-c0bba94af5f8",
171+
"test": "",
172+
"elapsed": "0s",
173+
"output": null,
174+
"cached": false,
175+
"coverage": null,
176+
"json": false
177+
},
178+
{
179+
"action": "stdout",
180+
"package": "",
181+
"version": "",
182+
"test": "",
183+
"elapsed": "0s",
184+
"output": "Li4vLi4vLi4vZ28vcGtnL21vZC9nby5mbG93LmFyY2Fsb3QuaW8vcGx1Z2luc2RrQHYwLjAuMC0yMDIyMTAwNzE1NTQ1Mi1iYTVjNzZkYTlmYzkvYXRwL2NsaWVudC5nbzo4OjI6IG1pc3NpbmcgZ28uc3VtIGVudHJ5IGZvciBtb2R1bGUgcHJvdmlkaW5nIHBhY2thZ2UgZ2l0aHViLmNvbS9meGFtYWNrZXIvY2Jvci92MiAoaW1wb3J0ZWQgYnkgZ28uZmxvdy5hcmNhbG90LmlvL3BsdWdpbnNkay9hdHApOyB0byBhZGQ6",
185+
"cached": false,
186+
"coverage": null,
187+
"json": false
188+
},
189+
{
190+
"action": "stdout",
191+
"package": "",
192+
"version": "",
193+
"test": "",
194+
"elapsed": "0s",
195+
"output": "CWdvIGdldCBnby5mbG93LmFyY2Fsb3QuaW8vcGx1Z2luc2RrL2F0cEB2MC4wLjAtMjAyMjEwMDcxNTU0NTItYmE1Yzc2ZGE5ZmM5",
196+
"cached": false,
197+
"coverage": null,
198+
"json": false
199+
}
200+
]
201+

testdata/issue-47.txt

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
go: downloading go.flow.arcalot.io/pluginsdk v0.0.0-20221007155452-ba5c76da9fc9
2+
go: downloading gopkg.in/yaml.v3 v3.0.1
3+
go: downloading go.arcalot.io/log v1.1.0
4+
go: downloading go.arcalot.io/lang v1.0.0
5+
go: downloading github.com/docker/docker v20.10.18+incompatible
6+
go: downloading github.com/docker/go-connections v0.4.0
7+
go: downloading github.com/opencontainers/image-spec v1.0.2
8+
go: downloading go.arcalot.io/assert v1.1.0
9+
go: downloading github.com/docker/go-units v0.5.0
10+
go: downloading github.com/docker/distribution v2.8.1+incompatible
11+
go: downloading github.com/opencontainers/go-digest v1.0.0
12+
go: downloading github.com/pkg/errors v0.9.1
13+
go: downloading github.com/sirupsen/logrus v1.9.0
14+
go: downloading golang.org/x/net v0.0.0-20201021035429-f5854403a974
15+
go: downloading github.com/gogo/protobuf v1.3.2
16+
go: downloading golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8
17+
../../../go/pkg/mod/go.flow.arcalot.io/[email protected]/atp/client.go:8:2: missing go.sum entry for module providing package github.com/fxamacker/cbor/v2 (imported by go.flow.arcalot.io/pluginsdk/atp); to add:
18+
go get go.flow.arcalot.io/pluginsdk/[email protected]

0 commit comments

Comments
 (0)