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

Note git's core.longpaths in CONTRIBUTING #45069

Merged
merged 2 commits into from Mar 4, 2022
Merged

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Jul 16, 2021

So people will be able to clone the repo on Windows. However, I'm not sure whether this addresses running tests.

Another fix for #45051, although #45054 is more important.

So people will be able to clone the repo on Windows.
However, I'm not sure whether this addresses running tests.
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug labels Jul 16, 2021
@sandersn sandersn requested review from amcasey, iisaduan and weswigham Jul 16, 2021
@amcasey
Copy link
Member

@amcasey amcasey commented Jul 16, 2021

I think the tests are fine (as long as you have long paths enabled in Windows - maybe we want to suggest that too?) because my original names were even longer and everything worked fine until I tried to add the new baselines to git.

CONTRIBUTING.md Outdated
@@ -81,6 +81,10 @@ This repository includes a [development container](https://code.visualstudio.com

The TypeScript repository is relatively large. To save some time, you might want to clone it without the repo's full history using `git clone --depth=1`.

### Filename too long on Windows

You might need to run `git config --system core.longpaths true` before cloning Typescript on Windows.
Copy link
Member

@RyanCavanaugh RyanCavanaugh Jul 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeScript.

Copy link
Member

@DanielRosenwasser DanielRosenwasser Jul 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows if I try this I get

error: could not lock config file C:/Program Files/Git/etc/gitconfig: Permission denied

Should it be --global instead of --system?

Copy link
Member

@weswigham weswigham Jul 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both should work (they're just different config locations, both are essentially system-wide - one's just for your user, one is every user) - I guess it depends on how you have it installed as to weather you have rights for the system-wide one.

Copy link
Member Author

@sandersn sandersn Aug 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change it to global; I got the same error on Windows for system

Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

T
y
p
e

S

c
r
i
p
t

@sandersn sandersn added this to Not started in PR Backlog Jul 30, 2021
CONTRIBUTING.md Outdated
@@ -81,6 +81,10 @@ This repository includes a [development container](https://code.visualstudio.com

The TypeScript repository is relatively large. To save some time, you might want to clone it without the repo's full history using `git clone --depth=1`.

### Filename too long on Windows

You might need to run `git config --system core.longpaths true` before cloning Typescript on Windows.
Copy link
Member

@DanielRosenwasser DanielRosenwasser Jul 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows if I try this I get

error: could not lock config file C:/Program Files/Git/etc/gitconfig: Permission denied

Should it be --global instead of --system?

PR Backlog automation moved this from Not started to Waiting on author Jul 30, 2021
@sandersn
Copy link
Member Author

@sandersn sandersn commented Aug 20, 2021

@DanielRosenwasser This is ready to review again.

@sandersn sandersn moved this from Waiting on author to Waiting on reviewers in PR Backlog Aug 20, 2021
@weswigham weswigham merged commit 774899f into main Mar 4, 2022
10 checks passed
@weswigham weswigham deleted the add-longpaths-to-CONTRIBUTING branch Mar 4, 2022
PR Backlog automation moved this from Waiting on reviewers to Done Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug
Projects
PR Backlog
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants