-
Notifications
You must be signed in to change notification settings - Fork 17
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
[BUG] pkgdown site build fails within Docker containers #29
Comments
Thanks for the report Brian! I'll look into it later this week. I'm a bit out of the loop on the Git security changes, so thanks for the link to actions/checkout#760. I've encountered some git issues like at lcolladotor/team_surveys@5fe88a9 or the one you described (at https://github.com/LieberInstitute/spatialLIBD/runs/6114315548?check_suite_focus=true#step:28:27 in my case), which I simply dodged by disabling |
Sounds good, let me know if you have any questions then. |
Hi there I've added a couple of hot fixes in my own repository Namely:
Notes:
The issue is being fixed by the authors of the |
Hi all, I encountered this issue as well. After some exploration, noticed the r-lib folks simplified their pkgdown example: Notice the use of I'm using this approach in my current actions and it works fine. Also seems easier to maintain :) |
I've just noted something more that is visible in the screenshot at the top of this thread:
fail because they're run from the home directory (one level up from the git repo. The errors (visible in the screenshot too) are
I'm not sure why those lines were not an issue before, but it sounds like the fix is either to |
FYI I've been away most of June as my father had an important surgery. I'll be back in the office on July 5th. |
Thanks everyone for this thread! This works again as you can see at https://github.com/lcolladotor/biocthis/actions/runs/3364123000/jobs/5578109324#step:30:90 ^^ I tried adapting some of https://github.com/r-lib/actions/blob/465e3c76cf4d432b547a0a411972939899c87857/examples/pkgdown.yaml#L40-L46 as suggested by you earlier, but also using It thus comes down to biocthis/inst/templates/check-bioc.yml Lines 274 to 298 in 5c38754
checkout@v3 .
I saw that @kevinrue and @dzhang32 have a solution without using I did note the use of https://github.com/r-lib/actions/blob/465e3c76cf4d432b547a0a411972939899c87857/examples/pkgdown.yaml#L31-L34 which is documented at https://github.com/r-lib/actions/tree/v2-branch/setup-r-dependencies, however, I thought it was simpler to only install Best, |
pkgdown site step runs into error when using a Docker container.
Issue
This happens because of the recent changes to git regarding security.
Supposedly this has been fixed in regards to some GH actions, but apparently not all. The suggested workaround doesn't work as-is and needs some adjusting:
Solution
I've implement this in my adapted version of Biocthis's GHA workflow, seen here. In the case of my echodata R package, this solution seems to work well.
This involves an extra GHA step beforehand that extracts the R package name from the DESCRIPTION file. This is more robust than assuming that the repository has an identical name as the package itself, which is sometimes not the case due to differences in capitalization or use of "." vs "_". You can see this step here:
https://github.com/RajLabMSSM/echodata/blob/3d4544341de35f9a43fec661671d87515cb7be42/.github/workflows/check-bioc-docker.yml#L325
Other notes
Doesn't seem like Biocthis's GHA checks for itself are catching this error; do you run any GHA within a Docker container? If not, this would be quite helpful to have as it would ensure your workflow templates are running as expected both within and outside of containers.
Best,
Brian
The text was updated successfully, but these errors were encountered: