You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go.sum has been contains modules that are used for testing also.
go version -m can print modules that are embedded into binary files(built with go 1.13) on go 1.13.
The -m flag causes go version to print each executable's embedded
module version information, when available. In the output, the module
information consists of multiple lines following the version line, each
indented by a leading tab character.
Therefore, I developing helper library to create CREDITS files(s) from pruned go.sum file by using go version -m and gocredits. https://github.com/hankei6km/go-ac
However, It pass a pruned go.sum file to gocredits via a temporary file, I felt this is redundant.
Description
I want to pass a pruned go.sum file to gocredits directly, as following.
$ cat puruned_go.sum | gocredits
or
r, w:=io.Pipe()
gofunc(w io.Writer){
// run go version -m /path/to/binary > w
}(w)
err:=gocredits.Run(args, r, outStream, errStream)
The text was updated successfully, but these errors were encountered:
Background
go.sum
has been contains modules that are used for testing also.go version -m
can print modules that are embedded into binary files(built with go 1.13) on go 1.13.Therefore, I developing helper library to create CREDITS files(s) from pruned go.sum file by using
go version -m
and gocredits.https://github.com/hankei6km/go-ac
However, It pass a pruned go.sum file to gocredits via a temporary file, I felt this is redundant.
Description
I want to pass a pruned go.sum file to gocredits directly, as following.
$ cat puruned_go.sum | gocredits
or
The text was updated successfully, but these errors were encountered: