mob-sakai / UpmGitExtension

This package extends the UI of Unity Package Manager (UPM) for the packages installed from git repository.
MIT License
773 stars 80 forks source link

failed writing pack file #136

Closed BarionLP closed 11 months ago

BarionLP commented 1 year ago

NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.

Describe the bug A clear and concise description of what the bug is. from time to time the console shows an error the message basically says: cannot write keep file '.git/objects/pack/pack-3a2bd4ea30e1eb27a48e4968cc3d2465f8aa943e.keep': Filename too long it seems to be related to the multiplayer samples utilities

To Reproduce Steps to reproduce the behavior:

  1. Install https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop.git?path=/Packages/com.unity.multiplayer.samples.coop#main
  2. Error should be displayed in the console

Expected behavior everything works even with the error, but it shouldn't happen

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context

technologies~com.unity.multiplayer.samples.coop@packages~com.unity.multiplayer.samples.coop.json.lock
stderr:
fatal: cannot write keep file '.git/objects/pack/pack-3a2bd4ea30e1eb27a48e4968cc3d2465f8aa943e.keep': Filename too long
fatal: fetch-pack: invalid index-pack output
child_process.js:526
    throw err;
    ^
mob-sakai commented 11 months ago

Please try following command.

git config --system core.longpaths true