File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 11package inventory
22
33import "github.com/yookoala/realpath"
4- import "fmt"
54import "github.com/BurntSushi/toml"
6- import "os"
75import "encoding/json"
86import "os/exec"
97import "errors"
@@ -97,13 +95,11 @@ func ReadCargoTOML(directoryPath string) ([]Project, error) {
9795 if _ , err := toml .Decode (string (data ), & parsed ); err != nil {
9896 return nil , errors .New ("could not parse Cargo.toml" )
9997 }
100- fmt .Printf ("%+v\n " , parsed )
10198 for _ , envelope := range parsed .Package .Metadata .LicenseZero .Envelopes {
10299 project := Project {
103100 Path : directoryPath ,
104101 Envelope : envelope ,
105102 }
106- os .Stdout .WriteString (project .Envelope .Manifest .ProjectID )
107103 realDirectory , err := realpath .Realpath (directoryPath )
108104 if err != nil {
109105 project .Path = realDirectory
You can’t perform that action at this time.
0 commit comments