Skip to content

Getting the latest version of a problem? #792

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

Closed
derifatives opened this issue May 14, 2017 · 4 comments
Closed

Getting the latest version of a problem? #792

derifatives opened this issue May 14, 2017 · 4 comments

Comments

@derifatives
Copy link
Contributor

derifatives commented May 14, 2017

I'm doing the Haskell track. I seem to have fetched an old version of luhn. In particular, exercism fetch haskell luhn seems to be pull the March 14 version rather than the latest version, and I'm not sure why. I think I just downloaded it today for the first time, although I could be wrong. My exercism is client is 2.4.0.

I've searched the docs a bit but not found any info on this. My apologies for the (likely) case where I've missed something obvious.

Any thoughts?

@petertseng
Copy link
Member

petertseng commented May 15, 2017

It is true that you're missing something, but the something you're missing is rather non-obvious.

I see from https://github.com/exercism/trackler/tree/master/tracks that the current version of the Haskell track being served by the site is https://github.com/exercism/xhaskell/tree/381d33942c62bcad6dbbba56a0ae373e1b2f69c5 . Importantly for this issue, exercism/haskell#533 had not been merged at that point.

There are actually more places to look than what I just described, but the above was sufficient.

http://x.exercism.io/ says that the currently-deployed revision of x-api is ef21b10. then, https://github.com/exercism/x-api/blob/ef21b1028639cb801e1c03e737d2b7575ceda021/Gemfile.lock tells us that trackler was at 2.1.0.11 at the time. Then we see that 2.1.0.11 is in fact the latest version of Trackler, so then what I said above applies.


Now obviously I've only described why this is happening, and not how to get the latest version of a problem (issue title). I am aware of a few solutions, listed in the order I would attempt them:

@petertseng
Copy link
Member

Wait an unknown period of time for the next deploy

The unknown period of time has passed for this instance (though it is still unknown in the general case). The demonstration of this fact can be had at http://x.exercism.io/v2/exercises/haskell/luhn

@petertseng
Copy link
Member

In case it is of interest, for me what I do to get notified of a deploy is I'm in the exercism/dev channel in gitter, so I see messages like

14:08:53 <           gitter> Heroku [exercism] deployed b782477

it's now 16:44 my time so that was about 2.5 hours ago

@petertseng
Copy link
Member

We are ready to close this now. The reason is that in the short term, the deploy happened so that exercism fetch will fetch the newest version of the exercise. A file that already exists will not be overwritten (see exercism/cli#362 for that), so any file that wants to be overwritten should be removed, then exercism fetch will write it afresh.

In the long term, we can see a discussion about more automation in the submodule updates at https://github.com/exercism/x-api/issues/114 and make an issue at https://github.com/exercism/trackler for further discussion of that

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