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

Gemfile specified 2.4.0 #2

Open
trombonekenny opened this issue Nov 29, 2017 · 10 comments
Open

Gemfile specified 2.4.0 #2

trombonekenny opened this issue Nov 29, 2017 · 10 comments

Comments

@trombonekenny
Copy link

./classroom build succeeds and I can go into ./classroom shell but I get this error:

mussulma@endeavour:/usr/src/app$ ./script/setup 
==> Installing gem dependencies…
Your Ruby version is 2.4.2, but your Gemfile specified 2.4.0
@mdwheele
Copy link
Owner

Hmmmm, cat Gemfile.lock and tell me what you see for RUBY VERSION:

This is what I see.

RUBY VERSION
   ruby 2.4.2p198

@trombonekenny
Copy link
Author

RUBY VERSION
ruby 2.4.0p0

@trombonekenny
Copy link
Author

@mdwheele
Copy link
Owner

mdwheele commented Nov 29, 2017

Well that... is strange. Dumb question: could you verify you're on feature/support-ghe?

See: https://github.com/mdwheele/classroom/blob/feature/support-ghe/Gemfile.lock#L520

@mdwheele
Copy link
Owner

mdwheele commented Nov 29, 2017

That said, I found the "bug" and have a workaround I need to send to that PR.

The API endpoint is returning 204 No Content on Enterprise and the correct 200 OK with contents on GitHub.com (see https://developer.github.com/enterprise/2.11/v3/repos/collaborators/#response-1).

I'm going to implement a workaround so we can get further and at the same time reach out to our representative with GitHub and see what the deal is. The feature is documented in the enterprise API documentation as "there")

@trombonekenny
Copy link
Author

That was it. I had checked out a whole new copy for this docker-compose stuff and forgot to switch to the feature/support-ghe branch; I was still on master.

script/setup is working now (multiple tries for nokogiri)

@trombonekenny
Copy link
Author

Good news on the bug hunt! Thanks for working at it!

@mdwheele
Copy link
Owner

mdwheele commented Nov 29, 2017

No problem at all. I have a feeling the constant gap between GitHub and GitHub Enterprise regarding the API is going to become a bigger and bigger blocker. Hopefully, I can get a patch into Octokit for this, but if I were them, I don't think I would take something like this without a better "compat shim" for the library which will take more time.

@trombonekenny
Copy link
Author

Any update on things? I'm getting ready to ping instructors doing a pilot with us, and I was hoping to give them a chance to try out Classroom via GHE. I guess we're waiting on upstream to look at the GHE API response problem?

@mdwheele
Copy link
Owner

mdwheele commented Dec 4, 2017

Yeah, I'm waiting on GitHub to get back to me. I was able to reproduce the issue outside of Classroom or my PR. The only other thing I know to try is to attempt to detect the bugged output and, at that point, sift through all current invitations to find the invitation.id of the user being invited. That patch would have to be made in Octokit and then I would have to override Gemfile to pull from my fork rather than upstream. I think it's probably best to wait for a response from GitHub.

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