Skip to content

Commit 1809131

Browse files
author
Randall C. O'Reilly
committed
don't fail on build error -- sometimes it can be irrelevant (e.g., pkg with empty top-level, but valid subdirs)
1 parent 3e06d5a commit 1809131

File tree

3 files changed

+1
-180
lines changed

3 files changed

+1
-180
lines changed

gen.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,10 @@ func loadPackage(path string, buildFirst bool) (*packages.Package, error) {
100100

101101
err = cmd.Run()
102102
if err != nil {
103-
log.Printf("error building [%s]: %v\n",
103+
log.Printf("Note: there was an error building [%s] -- will continue but it may fail later: %v\n",
104104
path,
105105
err,
106106
)
107-
return nil, err
108107
}
109108
}
110109

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/go-python/gopy
33
go 1.13
44

55
require (
6-
github.com/goki/gide v1.0.10 // indirect
76
github.com/gonuts/commander v0.1.0
87
github.com/gonuts/flag v0.1.0
98
github.com/pkg/errors v0.9.1

0 commit comments

Comments
 (0)