Merge pull request #7584 from skepticfx:gofer-gotraceback

PiperOrigin-RevId: 449753179
This commit is contained in:
gVisor bot
2022-05-19 08:47:16 -07:00
+4
View File
@@ -20,6 +20,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime/debug"
"strings"
"github.com/google/subcommands"
@@ -102,6 +103,9 @@ func (g *Gofer) Execute(_ context.Context, f *flag.FlagSet, args ...interface{})
conf := args[0].(*config.Config)
// Set traceback level
debug.SetTraceback(conf.Traceback)
specFile := os.NewFile(uintptr(g.specFD), "spec file")
defer specFile.Close()
spec, err := specutils.ReadSpecFromFile(g.bundleDir, specFile, conf)