Skip to content

Commit

Permalink
fix(pkg): Fix Composer type parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
elldritch committed Jul 30, 2018
1 parent 1626218 commit aa528bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/fossa/locator.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func LocatorOf(id pkg.ID) Locator {
// Normalize locator fetchers.
fetcher := id.Type.String()
switch id.Type {
case pkg.Composer:
fetcher = "comp"
case pkg.Gradle:
fetcher = "mvn"
case pkg.Ant:
Expand Down
4 changes: 3 additions & 1 deletion pkg/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func ParseType(key string) (Type, error) {
fallthrough
case "php":
fallthrough
case "comp":
fallthrough
case "composer":
return Composer, nil

Expand Down Expand Up @@ -160,7 +162,7 @@ func (t Type) String() string {
case Cocoapods:
return "pod"
case Composer:
return "comp"
return "composer"
case Go:
return "go"
case Git:
Expand Down

0 comments on commit aa528bd

Please sign in to comment.