Skip to content

Commit

Permalink
Upgrade utils package to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
hpidcock committed Sep 23, 2020
1 parent 0a6b00c commit 085d812
Show file tree
Hide file tree
Showing 571 changed files with 684 additions and 669 deletions.
4 changes: 2 additions & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/juju/loggo"
"github.com/juju/names/v4"
"github.com/juju/os/series"
"github.com/juju/utils"
"github.com/juju/utils/shell"
"github.com/juju/utils/v2"
"github.com/juju/utils/v2/shell"
"github.com/juju/version"

"github.com/juju/juju/api"
Expand Down
2 changes: 1 addition & 1 deletion agent/agentbootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/juju/loggo"
"github.com/juju/names/v4"
"github.com/juju/os/series"
"github.com/juju/utils"
"github.com/juju/utils/v2"
"gopkg.in/mgo.v2"

"github.com/juju/juju/agent"
Expand Down
2 changes: 1 addition & 1 deletion agent/agentbootstrap/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/juju/os/series"
gitjujutesting "github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/agent"
Expand Down
2 changes: 1 addition & 1 deletion agent/format-2.0_whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"path/filepath"

jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
"github.com/juju/version"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion agent/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"

"github.com/juju/errors"
"github.com/juju/utils"
"github.com/juju/utils/v2"
)

var ErrNoStateServingInfo = errors.New("StateServingInfo missing")
Expand Down
2 changes: 1 addition & 1 deletion agent/tools/symlinks.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"

"github.com/juju/errors"
"github.com/juju/utils/symlink"
"github.com/juju/utils/v2/symlink"

"github.com/juju/juju/juju/names"
)
Expand Down
6 changes: 3 additions & 3 deletions agent/tools/symlinks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

"github.com/juju/os/series"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/arch"
"github.com/juju/utils/symlink"
"github.com/juju/utils/v2"
"github.com/juju/utils/v2/arch"
"github.com/juju/utils/v2/symlink"
"github.com/juju/version"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion agent/tools/toolsdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"strings"

"github.com/juju/errors"
"github.com/juju/utils/symlink"
"github.com/juju/utils/v2/symlink"
"github.com/juju/version"

coretools "github.com/juju/juju/tools"
Expand Down
2 changes: 1 addition & 1 deletion api/agent/unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/api"
Expand Down
4 changes: 2 additions & 2 deletions api/apiclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
jujuhttp "github.com/juju/http"
"github.com/juju/loggo"
"github.com/juju/names/v4"
"github.com/juju/utils"
"github.com/juju/utils/parallel"
"github.com/juju/utils/v2"
"github.com/juju/utils/v2/parallel"
"github.com/juju/version"
"gopkg.in/macaroon-bakery.v2/bakery"
"gopkg.in/macaroon-bakery.v2/httpbakery"
Expand Down
2 changes: 1 addition & 1 deletion api/backups/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/juju/errors"
"github.com/juju/utils"
"github.com/juju/utils/v2"

"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/rpc"
Expand Down
2 changes: 1 addition & 1 deletion api/certpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/juju/errors"
"github.com/juju/os/series"
"github.com/juju/utils/cert"
"github.com/juju/utils/v2/cert"

"github.com/juju/juju/core/paths"
)
Expand Down
2 changes: 1 addition & 1 deletion api/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/juju/names/v4"
jujutesting "github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"
"gopkg.in/macaroon.v2"

Expand Down
2 changes: 1 addition & 1 deletion api/firewaller/firewaller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package firewaller_test
import (
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/api"
Expand Down
2 changes: 1 addition & 1 deletion api/keymanager/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package keymanager

import (
"github.com/juju/utils/ssh"
"github.com/juju/utils/v2/ssh"

"github.com/juju/juju/api/base"
"github.com/juju/juju/apiserver/params"
Expand Down
4 changes: 2 additions & 2 deletions api/keymanager/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/juju/errors"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/ssh"
sshtesting "github.com/juju/utils/ssh/testing"
"github.com/juju/utils/v2/ssh"
sshtesting "github.com/juju/utils/v2/ssh/testing"
gc "gopkg.in/check.v1"

"github.com/juju/juju/api/keymanager"
Expand Down
2 changes: 1 addition & 1 deletion api/machineactions/machineactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/juju/names/v4"
jujutesting "github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

apitesting "github.com/juju/juju/api/base/testing"
Expand Down
2 changes: 1 addition & 1 deletion api/metricsadder/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/api/metricsadder"
Expand Down
2 changes: 1 addition & 1 deletion api/migrationmaster/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/juju/names/v4"
jujutesting "github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
"github.com/juju/version"
gc "gopkg.in/check.v1"
"gopkg.in/httprequest.v1"
Expand Down
4 changes: 2 additions & 2 deletions api/provisioner/provisioner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/juju/names/v4"
"github.com/juju/os/series"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/arch"
"github.com/juju/utils/v2"
"github.com/juju/utils/v2/arch"
"github.com/juju/version"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion api/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/juju/errors"
"github.com/juju/featureflag"
"github.com/juju/names/v4"
"github.com/juju/utils"
"github.com/juju/utils/v2"
"github.com/juju/version"
"gopkg.in/macaroon-bakery.v2/bakery"
"gopkg.in/macaroon-bakery.v2/httpbakery"
Expand Down
2 changes: 1 addition & 1 deletion api/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/juju/errors"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"
"gopkg.in/macaroon.v2"

Expand Down
2 changes: 1 addition & 1 deletion api/uniter/unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/juju/names/v4"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

basetesting "github.com/juju/juju/api/base/testing"
Expand Down
4 changes: 2 additions & 2 deletions api/upgrader/unitupgrader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/juju/errors"
"github.com/juju/os/series"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/arch"
"github.com/juju/utils/v2"
"github.com/juju/utils/v2/arch"
"github.com/juju/version"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion api/watcher/watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
"github.com/juju/worker/v2"
"github.com/juju/worker/v2/workertest"
gc "gopkg.in/check.v1"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/juju/loggo"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"
"gopkg.in/macaroon-bakery.v2/bakery"
"gopkg.in/macaroon-bakery.v2/httpbakery"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/juju/names/v4"
"github.com/juju/pubsub"
"github.com/juju/ratelimit"
"github.com/juju/utils"
"github.com/juju/utils/v2"
"github.com/juju/worker/v2/dependency"
"github.com/prometheus/client_golang/prometheus"
"gopkg.in/tomb.v2"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/apiserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/juju/loggo"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
"github.com/juju/worker/v2/dependency"
"github.com/juju/worker/v2/workertest"
gc "gopkg.in/check.v1"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/authentication/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"

jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver/authentication"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/authentication/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/juju/names/v4"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"
"gopkg.in/macaroon-bakery.v2/bakery"
"gopkg.in/macaroon-bakery.v2/bakery/checkers"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

"github.com/juju/errors"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/charms.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/juju/charm/v8"
"github.com/juju/errors"
ziputil "github.com/juju/utils/zip"
ziputil "github.com/juju/utils/v2/zip"

"github.com/juju/juju/apiserver/common"
apiservererrors "github.com/juju/juju/apiserver/errors"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/charms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/juju/charm/v8"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver/common"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/common/action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/juju/errors"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver/common"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/common/cloudspec/cloudspec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/juju/names/v4"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver/common"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/common/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver/common"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/common/controllerconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/juju/errors"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver/common"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/common/crossmodel/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/juju/errors"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"
"gopkg.in/macaroon-bakery.v2/bakery"
"gopkg.in/macaroon-bakery.v2/bakery/checkers"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/common/leadership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/juju/errors"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver/common"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/common/tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/juju/names/v4"
"github.com/juju/os/series"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/arch"
"github.com/juju/utils/v2/arch"
"github.com/juju/version"
gc "gopkg.in/check.v1"

Expand Down
2 changes: 1 addition & 1 deletion apiserver/facades/agent/keyupdater/authorisedkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package keyupdater
import (
"github.com/juju/errors"
"github.com/juju/names/v4"
"github.com/juju/utils/ssh"
"github.com/juju/utils/v2/ssh"

"github.com/juju/juju/apiserver/common"
apiservererrors "github.com/juju/juju/apiserver/errors"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/facades/agent/metricsadder/metricsadder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/juju/errors"
"github.com/juju/names/v4"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/v2"
gc "gopkg.in/check.v1"

"github.com/juju/juju/apiserver/common"
Expand Down
Loading

0 comments on commit 085d812

Please sign in to comment.