Skip to content

Filenames can be too long on Windows #252

@wch

Description

@wch

We are trying to use pak to install dependencies for shiny in GitHub Actions. One of these dependencies is bslib, and it fails to build/install with pak. (rstudio/shiny#3230 (comment))

I think the problem is that some filenames are longer than the max length on typical Windows installations.

I think this is the directory where pak tries to unzip the files:

C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\Rtmp4K8oTQ\\file10406c64986/src/contrib/bslib_0.2.3.9000_338b05fc5aa551c0cb62dae2ce73ad8c2ceb8403.tar.gz-tree

And inside of that, it wants to write the following file:

rstudio-bslib-338b05f/inst/lib/bootstrap-accessibility-plugin/plugins/js/bootstrap-accessibility_1.0.3.min.js

It fails on that file: https://github.com/rstudio/shiny/runs/1597854296?check_suite_focus=true#step:10:376

The total length of the combined path is 263 characters, which I believe is longer than the max filename length on Windows.

This isn't exactly a bug in pak, but does mean that pak can't be used for GitHub actions on packages that use bslib. The filename in bslib is pretty long, but not crazily long. We could shorten it, but I suspect that other packages would run into the same problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions