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

codescan tests fail on go 1.18 #2762

Open
kevinbarbour opened this issue Apr 14, 2022 · 0 comments
Open

codescan tests fail on go 1.18 #2762

kevinbarbour opened this issue Apr 14, 2022 · 0 comments
Labels
generate spec Related to spec generation from code scanner

Comments

@kevinbarbour
Copy link
Contributor

Problem statement

When using go 1.18 the unit tests fail due to failing tests in codescan.

Digging into it a bit I found that it is because the order of the fields in the schemas built here are different than they were in 1.17, and the tests rely on them being in a specific order.

It looks like the CI tests are still using 1.17 for linux builds, but the windows tests fail due to this.

Environment

swagger version: master
go version: 1.18
OS: macOS

@fredbi fredbi added scanner generate spec Related to spec generation from code labels Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generate spec Related to spec generation from code scanner
Projects
None yet
Development

No branches or pull requests

2 participants