Skip to content

Commit

Permalink
Reintroduce direct usage of satori/go.uuid
Browse files Browse the repository at this point in the history
fixes #610
  • Loading branch information
aslakknutsen committed Jul 15, 2016
1 parent a520ec0 commit 7839d1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion design/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"math/rand"
"time"

"github.com/goadesign/goa/uuid"
"github.com/manveru/faker"
"github.com/satori/go.uuid"
)

// RandomGenerator generates consistent random values of different types given a seed.
Expand Down
2 changes: 1 addition & 1 deletion design/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"time"

"github.com/goadesign/goa/dslengine"
"github.com/goadesign/goa/uuid"
"github.com/satori/go.uuid"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions goagen/gen_app/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (g *Generator) generateContexts(api *design.APIDefinition) error {
codegen.SimpleImport("strings"),
codegen.SimpleImport("time"),
codegen.SimpleImport("github.com/goadesign/goa"),
codegen.NewImport("uuid", "github.com/goadesign/goa/uuid"),
codegen.NewImport("uuid", "github.com/satori/go.uuid"),
}
g.genfiles = append(g.genfiles, ctxFile)
ctxWr.WriteHeader(title, g.target, imports)
Expand Down Expand Up @@ -351,7 +351,7 @@ func (g *Generator) generateMediaTypes(api *design.APIDefinition) error {
codegen.SimpleImport("github.com/goadesign/goa"),
codegen.SimpleImport("fmt"),
codegen.SimpleImport("time"),
codegen.NewImport("uuid", "github.com/goadesign/goa/uuid"),
codegen.NewImport("uuid", "github.com/satori/go.uuid"),
}
mtWr.WriteHeader(title, g.target, imports)
err = api.IterateMediaTypes(func(mt *design.MediaTypeDefinition) error {
Expand Down

0 comments on commit 7839d1c

Please sign in to comment.