File tree Expand file tree Collapse file tree 14 files changed +62
-44
lines changed
Expand file tree Collapse file tree 14 files changed +62
-44
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ func init() {
5959
6060// runBuild runs the build modctl.
6161func runBuild (ctx context.Context , workDir string ) error {
62- b , err := backend .New ()
62+ b , err := backend .New (rootConfig . StoargeDir )
6363 if err != nil {
6464 return err
6565 }
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func init() {
5454
5555// runExtract runs the extract modctl.
5656func runExtract (ctx context.Context , target string ) error {
57- b , err := backend .New ()
57+ b , err := backend .New (rootConfig . StoargeDir )
5858 if err != nil {
5959 return err
6060 }
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ func init() {
5151
5252// runInspect runs the inspect modctl.
5353func runInspect (ctx context.Context , target string ) error {
54- b , err := backend .New ()
54+ b , err := backend .New (rootConfig . StoargeDir )
5555 if err != nil {
5656 return err
5757 }
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ func init() {
5353
5454// runList runs the list modctl.
5555func runList (ctx context.Context ) error {
56- b , err := backend .New ()
56+ b , err := backend .New (rootConfig . StoargeDir )
5757 if err != nil {
5858 return err
5959 }
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ func init() {
7171
7272// runLogin runs the login modctl.
7373func runLogin (ctx context.Context , registry string ) error {
74- b , err := backend .New ()
74+ b , err := backend .New (rootConfig . StoargeDir )
7575 if err != nil {
7676 return err
7777 }
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ func init() {
5050
5151// runLogout runs the logout modctl.
5252func runLogout (ctx context.Context , registry string ) error {
53- b , err := backend .New ()
53+ b , err := backend .New (rootConfig . StoargeDir )
5454 if err != nil {
5555 return err
5656 }
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ func init() {
5555
5656// runPrune runs the prune modctl.
5757func runPrune (ctx context.Context ) error {
58- b , err := backend .New ()
58+ b , err := backend .New (rootConfig . StoargeDir )
5959 if err != nil {
6060 return err
6161 }
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ func init() {
5757
5858// runPull runs the pull modctl.
5959func runPull (ctx context.Context , target string ) error {
60- b , err := backend .New ()
60+ b , err := backend .New (rootConfig . StoargeDir )
6161 if err != nil {
6262 return err
6363 }
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func init() {
5454
5555// runPush runs the push modctl.
5656func runPush (ctx context.Context , target string ) error {
57- b , err := backend .New ()
57+ b , err := backend .New (rootConfig . StoargeDir )
5858 if err != nil {
5959 return err
6060 }
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ func init() {
5050
5151// runRm runs the rm modctl.
5252func runRm (ctx context.Context , target string ) error {
53- b , err := backend .New ()
53+ b , err := backend .New (rootConfig . StoargeDir )
5454 if err != nil {
5555 return err
5656 }
You can’t perform that action at this time.
0 commit comments