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

go-swagger throws error on windows from this lib #66

Closed
mtfelian opened this issue Mar 2, 2018 · 4 comments
Closed

go-swagger throws error on windows from this lib #66

mtfelian opened this issue Mar 2, 2018 · 4 comments

Comments

@mtfelian
Copy link
Contributor

mtfelian commented Mar 2, 2018

go-swagger throws error on Windows from this lib.

I can't reveal all the details. Stacktrace follows:

2018/03/02 14:10:37
basePath: C:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root
base: c:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root
2018/03/02 14:10:37 calling Resolve with target: {"$ref":"#/definitions/appSettingsParamsBody"}
2018/03/02 14:10:37 loading schema from url: c:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root
[c:]
c:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root
2018/03/02 14:10:37 getting "c:\\Go\\my_code\\src\\bitbucket.org\\repoowner\\reponame\\api\\core\\root" from resolution cache
2018/03/02 14:10:37 got "c:\\Go\\my_code\\src\\bitbucket.org\\repoowner\\reponame\\api\\core\\root" from resolution cache: false
2018/03/02 14:10:37 fetching document at "c:\\Go\\my_code\\src\\bitbucket.org\\repoowner\\reponame\\api\\core\\root"
base: c:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root
2018/03/02 14:10:37 normalizing #/definitions/appSettingsParamsBody against C:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root (#/definitions/appSettingsParamsBody)
2018/03/02 14:10:37 current ref is: #/definitions/appSettingsParamsBody
2018/03/02 14:10:37 current ref normalized file: c:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root#/definitions/appSettingsParamsBody
2018/03/02 14:10:37 loading schema from url: c:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root#/definitions/appSettingsParamsBody
[c:]
c:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root
2018/03/02 14:10:37 getting "c:\\Go\\my_code\\src\\bitbucket.org\\repoowner\\reponame\\api\\core\\root" from resolution cache
2018/03/02 14:10:37 got "c:\\Go\\my_code\\src\\bitbucket.org\\repoowner\\reponame\\api\\core\\root" from resolution cache: false
2018/03/02 14:10:37 fetching document at "c:\\Go\\my_code\\src\\bitbucket.org\\repoowner\\reponame\\api\\core\\root"
+! Panic in Spec Setup (BeforeEach) [0.151 seconds]
Testing API
C:/Go/my_code/src/bitbucket.org/repoowner/reponame/api/core/core_apps_test.go:73
  app registration method [BeforeEach]
  C:/Go/my_code/src/bitbucket.org/repoowner/reponame/api/core/core_apps_test.go:149
    checks that OK
    C:/Go/my_code/src/bitbucket.org/repoowner/reponame/api/core/core_apps_test.go:166

    Test Panicked
    Invalid schema provided to SchemaValidator: open c:\Go\my_code\src\bitbucket.org\repoowner\reponame\api\core\root: The system cannot find the file specified.
    C:/Go/src/runtime/panic.go:505

    Full Stack Trace

I dive into the lib and found that the problem is the CaSe of the Windows drive letter.

Implemented a fix PR #67

@fredbi
Copy link
Member

fredbi commented Mar 2, 2018

I thought that this was addressed with #58 ?

@mtfelian
Copy link
Contributor Author

mtfelian commented Mar 2, 2018 via email

@fredbi
Copy link
Member

fredbi commented Mar 2, 2018

ok. I noted recently some other issues with windows in the spec pkg.
At the moment, this package does not run a CI on windows (but we have been discussing that with @casualjim).

@mtfelian
Copy link
Contributor Author

mtfelian commented Mar 2, 2018

Solved.

@mtfelian mtfelian closed this as completed Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants