twitter / the-algorithm

Source code for Twitter's Recommendation Algorithm
https://blog.twitter.com/engineering/en_us/topics/open-source/2023/twitter-recommendation-algorithm
GNU Affero General Public License v3.0
62.47k stars 12.16k forks source link

Actual problem: Filename too long #13658

Open PatoFlamejanteTV opened 2 weeks ago

PatoFlamejanteTV commented 2 weeks ago

Describe the bug A clear and concise description of what the bug is.

I cant git clone because some filenames are too long for Windows.

PS C:\Users\mcmco\OneDrive\Área de Trabalho\bostas\github> git clone https://github.com/twitter/the-algorithm.git
Cloning into 'the-algorithm'...
remote: Enumerating objects: 9142, done.
remote: Compressing objects: 100% (778/778), done.
remote: Total 9142 (delta 495), reused 465 (delta 465), pack-reused 7899 (from 1)
Receiving objects: 100% (9142/9142), 7.45 MiB | 10.27 MiB/s, done.
Resolving deltas: 100% (3041/3041), done.
error: unable to create file product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/decorator/urt/builder/item/relevance_prompt/RelevancePromptCandidateUrtItemStringCenterBuilder.scala: Filename too long
error: unable to create file product-mixer/component-library/src/main/scala/com/twitter/product_mixer/componenor.scala: Filename too long
error: unable to create file product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/candidate/tweet_visibility_reason/TweetVisibilityReasonBulkCandidateFeatureHydrator.scala: Filename too long
error: unable to create file product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/AsyncParamGatedFeatureStoreV1QueryFeatureHydrator.scala: Filename too long
error: unable to create file product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/feature_hydrator/query/param_gated/featurestorev1/ParamGatedFeatureStoreV1QueryFeatureHydrator.scalaerror: unable to create file product-mixer/component-library/src/main/scala/com/twitter/product_mixer/component_library/pipeline/candidate/flexible_injection_pipeline/FlipPromptDependentCandidatePipelineConfigBuilder.scala: Filename too long
Updating files: 100% (6906/6906), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

It clone

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

image

Environment For web, specify your OS and browser version. For mobile, specify device, OS and version. For libraries, what version of build tools are you using?

Windows PowerShell

Additional context Add any other context about the problem here.

mrksbgg commented 13 hours ago

just use download button? image

PatoFlamejanteTV commented 13 hours ago

just use download button? image

This may still have problems in Windows because the path is too long.