8000 Propagate go.mod restoration errors by dajiaohuang · Pull Request #1779 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/xtools-internal/packagestest/expect.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func goModMarkers(e *Exported, gomod string) ([]*expect.Note, error) {
gomod = strings.TrimSuffix(gomod, ".temp")
// If we are in Modules mode, copy the original contents file back into go.mod
if err := os.WriteFile(gomod, content, 0644); err != nil {
return nil, nil
return nil, err
}
return expect.Parse(e.ExpectFileSet, gomod, content)
}
Expand Down
0