Skip to content

Commit 5a484ed

Browse files
authored
fix(pkg/config): remove go-homedir v1.1.0 from dependencies (#1191)
Signed-off-by: Gyuho Lee <gyuhol@nvidia.com>
1 parent ae6ec29 commit 5a484ed

26 files changed

Lines changed: 118 additions & 36 deletions

File tree

THIRD-PARTY.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,6 @@ License Text: https://opensource.org/licenses/MIT
506506
// THE SOFTWARE.
507507

508508
Packages:
509-
- github.com/mitchellh/go-homedir v1.1.0
510509
- github.com/mitchellh/go-ps v1.0.0
511510

512511

cmd/gpud/compact/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func Command(cliContext *cli.Context) error {
3333
if err != nil {
3434
return err
3535
}
36-
log.Logger = log.CreateLogger(zapLvl, "")
36+
log.SetLogger(log.CreateLogger(zapLvl, ""))
3737

3838
log.Logger.Debugw("starting compact command")
3939

cmd/gpud/custom-plugins/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func Command(cliContext *cli.Context) error {
2727
if err != nil {
2828
return err
2929
}
30-
log.Logger = log.CreateLogger(zapLvl, "")
30+
log.SetLogger(log.CreateLogger(zapLvl, ""))
3131

3232
log.Logger.Debugw("starting custom-plugins command")
3333

cmd/gpud/down/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func Command(cliContext *cli.Context) error {
2424
if err != nil {
2525
return err
2626
}
27-
log.Logger = log.CreateLogger(zapLvl, "")
27+
log.SetLogger(log.CreateLogger(zapLvl, ""))
2828

2929
log.Logger.Debugw("starting down command")
3030

cmd/gpud/inject-fault/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func Command(cliContext *cli.Context) error {
1414
if err != nil {
1515
return err
1616
}
17-
log.Logger = log.CreateLogger(zapLvl, "")
17+
log.SetLogger(log.CreateLogger(zapLvl, ""))
1818

1919
log.Logger.Debugw("starting inject-fault command")
2020

cmd/gpud/list-plugins/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func Command(cliContext *cli.Context) error {
1919
if err != nil {
2020
return err
2121
}
22-
log.Logger = log.CreateLogger(zapLvl, "")
22+
log.SetLogger(log.CreateLogger(zapLvl, ""))
2323

2424
log.Logger.Debugw("starting list-plugins command")
2525

cmd/gpud/machine-info/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func Command(cliContext *cli.Context) error {
2424
if err != nil {
2525
return err
2626
}
27-
log.Logger = log.CreateLogger(zapLvl, "")
27+
log.SetLogger(log.CreateLogger(zapLvl, ""))
2828

2929
log.Logger.Debugw("starting machine-info command")
3030

cmd/gpud/metadata/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func Command(cliContext *cli.Context) error {
2929
if err != nil {
3030
return err
3131
}
32-
log.Logger = log.CreateLogger(zapLvl, "")
32+
log.SetLogger(log.CreateLogger(zapLvl, ""))
3333

3434
log.Logger.Debugw("starting metadata command")
3535

cmd/gpud/notify/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func CommandStartup(cliContext *cli.Context) error {
2626
if err != nil {
2727
return err
2828
}
29-
log.Logger = log.CreateLogger(zapLvl, "")
29+
log.SetLogger(log.CreateLogger(zapLvl, ""))
3030

3131
log.Logger.Debugw("starting notify startup command")
3232

@@ -87,7 +87,7 @@ func CommandShutdown(cliContext *cli.Context) error {
8787
if err != nil {
8888
return err
8989
}
90-
log.Logger = log.CreateLogger(zapLvl, "")
90+
log.SetLogger(log.CreateLogger(zapLvl, ""))
9191

9292
log.Logger.Debugw("starting notify shutdown command")
9393

cmd/gpud/release/command_gen_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func CommandGenKey(cliContext *cli.Context) error {
2121
if err != nil {
2222
return err
2323
}
24-
log.Logger = log.CreateLogger(zapLvl, "")
24+
log.SetLogger(log.CreateLogger(zapLvl, ""))
2525

2626
log.Logger.Debugw("starting gen-key command")
2727

0 commit comments

Comments
 (0)