Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails due to duplicate methods #2199

Closed
naga-beeram opened this issue Jan 27, 2020 · 0 comments · Fixed by #2200
Closed

Build fails due to duplicate methods #2199

naga-beeram opened this issue Jan 27, 2020 · 0 comments · Fixed by #2200
Labels
bug generate spec Related to spec generation from code

Comments

@naga-beeram
Copy link

src/github.com/go-swagger/go-swagger/scan/parameters.go:75:6: paramTypable.WithEnum redeclared in this block
previous declaration at src/github.com/go-swagger/go-swagger/scan/parameters.go:43:6
src/github.com/go-swagger/go-swagger/scan/parameters.go:110:6: itemsTypable.WithEnum redeclared in this block
previous declaration at src/github.com/go-swagger/go-swagger/scan/parameters.go:94:6
src/github.com/go-swagger/go-swagger/scan/responses.go:97:6: responseTypable.WithEnum redeclared in this block
previous declaration at src/github.com/go-swagger/go-swagger/scan/responses.go:41:6
src/github.com/go-swagger/go-swagger/scan/scanner.go:477:2: duplicate method WithEnum
src/github.com/go-swagger/go-swagger/scan/schema.go:1047:8: ambiguous selector prop.WithEnum
The command '/bin/sh -c go get github.com/go-swagger/go-swagger/cmd/swagger' returned a non-zero code: 2
The command "docker build -f Dockerfile -t $DOCKER_IMAGE_NAME:$COMMIT ." failed and exited with 2 during .

TravisCLI
go version: 1.10.3
OS: linux/amd64

@fredbi fredbi added bug generate spec Related to spec generation from code labels Jan 27, 2020
casualjim added a commit that referenced this issue Jan 27, 2020
#2199 Remove the duplicate `withEnum` functions inside `scan` package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug generate spec Related to spec generation from code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants