-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Heads up: ProGit2 build process is not providing .mobi files for now #1498
Comments
wow :) thanks a lot for the heads-up @HonkingGoose ! is there any ETA for getting the .mobi files working again? If I understood correctly, amazon stopped serving a binary which kindlegen wrapped? |
I think it's just a matter of removing from the UI until things are solved, in these lines git-scm.com/app/views/books/show.html.erb Lines 26 to 30 in 8b4de72
|
I cannot provide any ETA on when the .mobi files will be available again, because I'm not the one that has the ability or knowledge to fix this. You can follow the EDIT:
Yes that's right. The replacement that Amazon provides ( |
Feel free to propose a pull request to delete the .mobi link. I would recommend putting a comment in, so that it's clear why the link was removed, and maybe link to this issue and the upstream ProGit2 issue. That way it's documented in your code what happened and why, and people can check if/when the issue is fixed and put the .mobi link back. |
I visited the page after the site build refreshed: the .mobi link is gone. The pdf and epub have links to version 2.1.259, which are current as of now. So maybe this takes no action on your side, and the system will just pick up the .mobi files once they are available again. 😄 |
Calibre has a converter to azw, but I fear the quality of the output is not the same as kindlegen. |
Yeah I searched for some alternative tool-chain and stumbled into Calibre as well, it does have a command line interface that we maybe could use. That would probably require another Travis CI build chain to be built. And we would first need to know if the .epub -> Calibre -> Kindle output is any good. So maybe we can get a Kindle user to do the conversion and report back on the results? |
Yeah, I think that's what's supposed to (and will) happen. But thank you very much for letting us know about the situation. I suppose we could also provide an older version of the |
Yeah, I agree: only provide outdated This is also a good way to figure out if those |
not sure if it's possible to find out how many accesses to the mobi file there were before this. The url seems to be something like
I can try to find out during the weekend perharps |
Having some historical data would help with making the judgement call if the I've seen no comments/issues on the ProGit2 repo, asking about the |
I've opened a PR upstream at the ProGit2 repository that should re-enable the |
seems like the PR was already merged right @HonkingGoose ? |
Yeah, but it's not working... I'm not sure what I need to do to fix it... 😕 |
This comment has been minimized.
This comment has been minimized.
ProGit2 is publishing The only thing left to do is to verify that By the way, the But you should still verify that things work properly after both those changes. 😉 |
The |
Hmm, now we don't seem to be generating links for any books! We find the appropriate assets for each release based on their
yields:
So it looks like something changed recently on the release-generation side, and the content-types were lost. We probably could switch to matching the extension in the filename, but I suspect it would be worth fixing the content-type problem for other reasons (e.g., I imagine it impacts the content-type GitHub sends to users when they click on the releases in a browser). |
We did just migrate ProGit2 from Travis CI -> GitHub Actions. Maybe that's breaking something? EDIT:
|
Diffing 2.1.308 and 2.1.309, it looks like the release creation now uses https://github.com/ncipollo/release-action, but doesn't pass |
Looks like no. The code seems to apply a single content-type to every artifact. So a fix would probably involve extending that action, and then updating progit2 to make use of the new feature. Yikes. Even if that happens, it may take a while. I think we should switch to selecting based on the names in the meantime. |
Since progit2 2.1.309 switched to using a GitHub Action to generate releases, it no longer sets the content-type field of the release assets. And thus we fail to find any ebooks to link, since we are looking for assets with "application/pdf", and so on. Instead, let's do a suffix match against the name of each asset, looking for the appropriate file extension. This works fine, since the names are all obvious ("progit.epub", and so on). And it should be backwards-compatible with older translations that haven't yet picked up the new Actions-based workflow, since they used the same sensible names. We may revert this later if the assets start generating with correct content-types again. But it looks to be non-trivial (there's some discussion in #1498), so this seems like a good solution in the meantime.
Should be fixed by #1615. Running it locally restores the epub and pdf links, and now generates a mobi link, too. 😅 |
OK, with #1615 merged, I kicked off a manual book generation job, purged the cloudflare cache, and now things are looking good: the main https://git-scm.com/book page has three links (epub, pdf, and mobi). So I think we're probably good to close this issue now! |
Looks good to me on the deployed site as well. I agree, let's close this issue! 😄 |
Which download is failing?
The link to the latest .mobi files at https://git-scm.com/book/en/v2 is gone.
Problem
The .mobi files are gone upstream, and so the link to the .mobi files is too.
Context
The ProGit2 project had to disable .mobi builds with progit/progit2#1497 because the
kindlegen
gem that we use to generate the .mobi files whenever Travis CI makes a build cannot be downloaded anymore. See progit/progit2#1496 for more on this.Steps to Reproduce
Other details
Hi git-scm team, I wanted to provide a heads up for you. I hope I filled the correct issue template! 😄
The text was updated successfully, but these errors were encountered: