From c32cabf488da541c62f0f27f8a3c0bc8c14cf510 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 30 Apr 2021 18:13:34 -0700 Subject: [PATCH] list: remove call to Reference as it is deprecated Signed-off-by: Andrea Luzzardi --- cmd/dagger/cmd/input/list.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/cmd/dagger/cmd/input/list.go b/cmd/dagger/cmd/input/list.go index 0cb81a48..3af7abfb 100644 --- a/cmd/dagger/cmd/input/list.go +++ b/cmd/dagger/cmd/input/list.go @@ -66,7 +66,7 @@ var listCmd = &cobra.Command{ fmt.Println("Plan Inputs:") w := tabwriter.NewWriter(os.Stdout, 0, 4, 2, ' ', 0) - fmt.Fprintln(w, "Path\tFrom\tType") + fmt.Fprintln(w, "Path\tType") for _, val := range inputs { // check for references @@ -87,15 +87,7 @@ var listCmd = &cobra.Command{ } } - // Construct output as a tab-table - // get path / pkg import (if available) - inst, _ := val.Reference() - pkg := "(plan)" - if inst != nil { - pkg = inst.ImportPath - } - - fmt.Fprintf(w, "%s\t%s\t%v\n", val.Path(), pkg, val) + fmt.Fprintf(w, "%s\t%v\n", val.Path(), val) } // ensure we flush the output buf