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
Today you have to pass in either via standard in output from go list -m all or go list -m -json all or pass in the file that you would like nancy to use. go.sum(soon to be gone) or Gopkg.lock.
so, it would be great if nancy can do it automatically, I mean we don't need to run it like go list -m all | nancy
Make nancy a little more user friendly by just simply doing the right thing without configuration.
How could we solve this issue? (Not knowing is okay!)
Dep path
Detect which dependency method you are using.
If dep, nancy will automatically find Gopkg.lock
Scan the project using the Gopkg.lock found
gomod path
Detect which dependency method you are using.
If gomod we will need to now see that go is installed
Execute go list -m all -json or maybe find a way to call it via code??
Pass the results into nancy
All other options should still work as expected. This really just removes the need for the user to pass in input from standard in (go mod) or via a file path (dep)
Other things to think about??
What about projects with many Gopck.lock (maybe monorepo)?? Do we just abort??
Today you have to pass in either via standard in output from
go list -m all
orgo list -m -json all
or pass in the file that you would like nancy to use.go.sum
(soon to be gone) orGopkg.lock
.Originally posted by @SVilgelm in #69 (comment)
Make nancy a little more user friendly by just simply doing the right thing without configuration.
Dep path
dep
, nancy will automatically findGopkg.lock
Gopkg.lock
foundgomod path
gomod
we will need to now see thatgo
is installedgo list -m all -json
or maybe find a way to call it via code??All other options should still work as expected. This really just removes the need for the user to pass in input from standard in (go mod) or via a file path (dep)
Other things to think about??
What about projects with many
Gopck.lock
(maybe monorepo)?? Do we just abort??No
cc @bhamail / @DarthHater
The text was updated successfully, but these errors were encountered: