pandoc / dockerfiles

Dockerfiles for various pandoc images
GNU General Public License v2.0
371 stars 100 forks source link

TeX Live 2022 release causes issue with tlmgr #169

Closed flisijn closed 2 years ago

flisijn commented 2 years ago

Running tlmgr fails with the current pandoc/latex docker image:

tlmgr: Local TeX Live (2021) is older than remote repository (2022).   

According to the release checklist, the pandoc images need a rebuild with the new TeX Live version

tarleb commented 2 years ago

Thanks for the reminder. Rebuilding now...

jendrikw commented 2 years ago

I'm still running into this issue, docker pull pandoc/latex:latest doesn't help.

tarleb commented 2 years ago

That's weird. I have important deadlines coming up, but will take a look after that.

flisijn commented 2 years ago

After this TeX Live 2022 update in the pandoc image, the latest tag is working just fine over here. Had to clear my local docker image cache though

lmunch commented 2 years ago

I see 2021 when I try the following:

$ docker pull pandoc/latex:latest
latest: Pulling from pandoc/latex
Digest: sha256:cb82db5bf2221109d34156b8468938618b96057db645d0e4831fdd218fae1fb3
Status: Image is up to date for pandoc/latex:latest
docker.io/pandoc/latex:latest

$ docker run --rm -ti --entrypoint "" pandoc/latex:latest tlmgr update --self
TeX Live 2021 is frozen
and will no longer be routinely updated.  This happens when a new
release is made, or will be made shortly.

If you're willing to help with pretesting a new release, and we hope
you are, please see https://tug.org/texlive/pretest.html.

For general status information about TeX Live, see its home page:
https://tug.org/texlive

tlmgr: package repository ftp://tug.org/historic/systems/texlive/2021/tlnet-final (verified)
tlmgr: saving backups to /opt/texlive/texdir/tlpkg/backups
tlmgr: no self-updates for tlmgr available
tarleb commented 2 years ago

The command exits with code 0, indicating success. I agree that the message is annoying. Unfortunately, that's just how tlmgr works.

We are intentionally not updating images to the latest TeX Live 2022 to ensure that all images continue to work the way they did before: stability over recency.

lmunch commented 2 years ago

Fair point. I just expected to see 2022 after this change: https://github.com/pandoc/dockerfiles/commit/8f7ab2db8418a6c1abe7c6909211911f8b6269c0

tarleb commented 2 years ago

The next new image we'll publish will be using 2022. The dev builds (edge tag) use it already.

I'm not really happy with the situation either, I just don't have any better ideas. The only reasonable alternative would be to always use the latest version that's been frozen, but I wouldn't like that either.

jendrikw commented 2 years ago

I had the following lines in my script, because I encountered some issues with the default repository:

tlmgr repository remove main
tlmgr repository add https://mirror.ctan.org/systems/texlive/tlnet main

It seems like https://mirror.ctan.org/systems/texlive/tlnet (or its redirects) doesn't have packages for TL 2021. Without those two lines, I have ftp://tug.org/historic/systems/texlive/2021/tlnet-final as a repository, which allows me to install packages for TL 2021.

svenevs commented 2 years ago

@jendrikw I scoped this issue and ran a script to collect all latex versions and verify tlmgr install <package> works as expected in #171 (there's an attached results.md that I need to work through).

Are you able to elaborate on the issues you are having that required manually modifying the tlmgr repository? What image / tag are you using (e.g., pandoc/latex:2.18)? What were the error messages you got?

AFAICT all of the (fairly recent) latex images are correctly archived to 2021 and working as expected, but we may have missed something!