Skip to content
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

"File name too long" error on check out #923

Open
orcaman opened this issue Sep 15, 2022 · 2 comments
Open

"File name too long" error on check out #923

orcaman opened this issue Sep 15, 2022 · 2 comments

Comments

@orcaman
Copy link

orcaman commented Sep 15, 2022

Hi folks. I have some files with long names in my repo, and I'm getting the following error on the "Checking out the ref" stage of this action:

...
...
  Updating files:  76% (26408/34747)
  Error: error: unable to create file public/static/pages/TheSecretSauce/TSS152สตรลบแกวกฤตของDHLโลจสตกสทเชอวาผนำศตวรรษท21ตองฟงมากกวาสงทรานสฟอรมองคกรหนนธรกจไทยโกอนเตอร.html: File name too long

I've tried enabling long paths like so (using sudo because otherwise the command fails), but it didn't help:

jobs:
  build:
    runs-on: 'ubuntu-latest'

    steps:
    - name: Support longpaths
      run: sudo git config --system core.longpaths true

    - uses: actions/checkout@v3

Any ideas on how to enable this?

Thanks!

@orcaman orcaman changed the title File name too long on check out "File name too long" error on check out Sep 15, 2022
@ImSingee
Copy link

After a search, this is the limit of ext4 whose max filename is 255 bytes and cannot be changed.

@ImSingee
Copy link

And since the max bytes of a single UTF-8 char can be 4 bytes, you should be sure your filename isn't in excess of 63 chars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants