swagger-api / swagger-api/swagger-codegen
[Ruby] Cannot build Petstore client sample on OSX due to dependency
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Ruby's Petshop client sample (in samples/client/petstore/ruby)
Swagger-codegen version
$ java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar version
2.4.2-SNAPSHOT
$ git log --oneline -n 1
c4c5c062c Merge pull request #9080 from swagger-api/update-parser-v1
$ uname -s -r
Darwin 17.7.0
Swagger declaration file content or url
N/A
Command line used for generation
$ cd samples/client/petstore/ruby
$ ../../../../mvnw integration-test -rf :RubyPetstoreClientTests
Steps to reproduce
- Run the above command to build and run tests of Petshop client sample for Ruby.
- Get errors at
bundle install --path vendor/bundle. Error log is here.
Related issues/PRs
- #1838
- #5528
Suggest a fix/enhancement
Error was occured at here: https://github.com/svoop/autotest-fsevent/blob/v0.2.12/ext/fsevent/extconf.rb#L21-L24
Currently autotest-fsevent is locked in 0.2.12 which supports Sierra or lower versions only.
https://github.com/swagger-api/swagger-codegen/blob/c4c5c062cd25db43cd0aa93882560f278e6cd4f7/samples/client/petstore/ruby/Gemfile.lock#L16
By updating to 0.2.14, it also supports High Sierra and Mojave.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with samples/client/petstore/ruby/Gemfile.lock and samples/client/petstore/ruby/pom.xml, then run the documented mvnw integration-test command on OSX. Check the locked autotest-fsevent dependency against the reported compatibility issue; done means bundle install and the RubyPetstoreClientTests build complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100