Skip to content

Subfiles functionality seems to struggle with permissions #21

Open
@bredamatt

Description

@bredamatt

Hi,

I just tested this. It has been about 4-5 years since I've used LaTeX last, and today was the first time I picked it back up.

I have created a very simple directory structure:

.
├── README.md
├── out
└── src
    ├── chapters
    │   ├── chapter1.tex
    │   ├── chapter2.tex
    │   └── chapter3.tex
    └── main.tex

Locally, I can do the following from the root:

$ pdflatex --output-dir out/ src/main.tex

which then adds the following to the out/ dir:

out
├── main.aux
├── main.log
└── main.pdf

I am trying to do exactly the same with my action as follows:

- name: pdflatex
        uses: dante-ev/latex-action@latest
        with:
          root_file: src/main.tex
          compiler: pdflatex
          args: -output-dir=out -no-shell-escape

However, I get this error:

This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021) (preloaded format=pdflatex)
entering extended mode
! I can't write on file `main.log'.
(Press Enter to retry, or Control-D to exit; default file extension is `.log')
Please type another transcript file name: 
! Emergency stop
!  ==> Fatal error occurred, no output PDF file produced!

This seems like the runner has a permission issue tgo write on the main.log file.

Note that before I added subfiles to the project, I did not have this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions