Skip to content

Commit

Permalink
move to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
rogpeppe committed Nov 14, 2017
1 parent 514bb81 commit e03b52c
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 24 deletions.
1 change: 0 additions & 1 deletion actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ func ReadActionsYaml(r io.Reader) (*Actions, error) {
// strings, and coerces acceptable maps to contain only maps with string keys.
func cleanse(input interface{}) (interface{}, error) {
switch typedInput := input.(type) {

// In this case, recurse in.
case map[string]interface{}:
newMap := make(map[string]interface{})
Expand Down
2 changes: 1 addition & 1 deletion bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

var _ = gc.Suite(&BundleSuite{})
Expand Down
2 changes: 1 addition & 1 deletion bundlearchive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

var _ = gc.Suite(&BundleArchiveSuite{})
Expand Down
2 changes: 1 addition & 1 deletion bundledata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
gc "gopkg.in/check.v1"
"gopkg.in/mgo.v2/bson"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

type bundleDataSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion bundledir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/juju/testing"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

type BundleDirSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion charm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
gc "gopkg.in/check.v1"
"gopkg.in/yaml.v2"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

func Test(t *stdtesting.T) {
Expand Down
2 changes: 1 addition & 1 deletion charmarchive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
gc "gopkg.in/check.v1"
"gopkg.in/yaml.v2"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

type CharmArchiveSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion charmdir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/juju/testing"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

type CharmDirSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
gc "gopkg.in/check.v1"
"gopkg.in/yaml.v2"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

type ConfigSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion extra_bindings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

var _ = gc.Suite(&extraBindingsSuite{})
Expand Down
4 changes: 2 additions & 2 deletions meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"gopkg.in/juju/names.v2"
"gopkg.in/yaml.v2"

"gopkg.in/juju/charm.v6-unstable/hooks"
"gopkg.in/juju/charm.v6-unstable/resource"
"gopkg.in/juju/charm.v6/hooks"
"gopkg.in/juju/charm.v6/resource"
)

// RelationScope describes the scope of a relation.
Expand Down
4 changes: 2 additions & 2 deletions meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"gopkg.in/yaml.v2"
yamlv2 "gopkg.in/yaml.v2"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6-unstable/resource"
"gopkg.in/juju/charm.v6"
"gopkg.in/juju/charm.v6/resource"
)

func repoMeta(c *gc.C, name string) io.Reader {
Expand Down
2 changes: 1 addition & 1 deletion metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

// Keys returns a list of all defined metrics keys.
Expand Down
2 changes: 1 addition & 1 deletion payloads_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

var _ = gc.Suite(&payloadClassSuite{})
Expand Down
2 changes: 1 addition & 1 deletion resource/fingerprint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable/resource"
"gopkg.in/juju/charm.v6/resource"
)

func newFingerprint(c *gc.C, data string) ([]byte, string) {
Expand Down
2 changes: 1 addition & 1 deletion resource/meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable/resource"
"gopkg.in/juju/charm.v6/resource"
)

var _ = gc.Suite(&MetaSuite{})
Expand Down
2 changes: 1 addition & 1 deletion resource/origin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable/resource"
"gopkg.in/juju/charm.v6/resource"
)

type OriginSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion resource/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable/resource"
"gopkg.in/juju/charm.v6/resource"
)

var fingerprint = []byte("123456789012345678901234567890123456789012345678")
Expand Down
2 changes: 1 addition & 1 deletion resource/type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable/resource"
"gopkg.in/juju/charm.v6/resource"
)

var _ = gc.Suite(&TypeSuite{})
Expand Down
2 changes: 1 addition & 1 deletion resources.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/schema"

"gopkg.in/juju/charm.v6-unstable/resource"
"gopkg.in/juju/charm.v6/resource"
)

var resourceSchema = schema.FieldMap(
Expand Down
2 changes: 1 addition & 1 deletion resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

var _ = gc.Suite(&resourceSuite{})
Expand Down
2 changes: 1 addition & 1 deletion url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"gopkg.in/mgo.v2/bson"
"gopkg.in/yaml.v2"

"gopkg.in/juju/charm.v6-unstable"
"gopkg.in/juju/charm.v6"
)

type URLSuite struct{}
Expand Down

0 comments on commit e03b52c

Please sign in to comment.