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

Default language "swift" doesn't work on Linux due to case sensitivity #291

Open
iainmerrick opened this issue Dec 17, 2021 · 4 comments
Open

Comments

@iainmerrick
Copy link

Very minor bug, just filing it so I remember to make a PR after the holidays!

I'm using SwagGen on Linux, and it doesn't run out of the box because the default language is "swift" but the template is "Swift".

  • Workaround: run with --language Swift
  • Suggested fix: change the default language
@yonaskolb
Copy link
Owner

Thanks for the report @iainmerrick. Looking forward to the PR :)

@iainmerrick
Copy link
Author

Finally started working on this. Just a couple of capitalization fixes needed, but there's some other weird problem on Linux -- discussing it on the Swift forums here: https://forums.swift.org/t/swift-run-behaving-oddly-on-linux/55046

@yonaskolb
Copy link
Owner

Hmm, CI is having the same issue on master https://github.com/yonaskolb/SwagGen/runs/5061627948?check_suite_focus=true

@yonaskolb
Copy link
Owner

Also happening locally on my Mac with Swift 5.5.2. I have no idea what's happening 🤷‍♂️

swift run swaggen generate ~/Developer/SwagGen/Specs/Petstore/spec.yml --destination ~/Developer/SwagGen/Specs/Petstore/generated/Swift

error: encountered an I/O error while reading /Users/yonas/Developer/SwagGen/Specs/Petstore/generated/Swift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants