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

Force UNC style to support win long paths #95

Merged
merged 9 commits into from
Jun 17, 2018
Merged

Conversation

chrisroberts
Copy link
Member

Formats path usage to force UNC style paths on windows to support long paths. Should hopefully also fix #88.

/cc @webframp

@webframp
Copy link
Contributor

Hah, ran into the problem from #93

Batali]: Readying installation destination... complete!
[Batali]: Installing cookbooks... error!
[ERROR]: Reason - git "--git-dir=C:/Users/sescriva/.batali/cache/git/Z2l0QGFwcHNnaXQuYmV0aGVsLmp3Lm9yZzpjaGVmL2Nvb2tib29rLWFwcHNlcnZlci5naXQ=/.git" "--work-tree=C:/Users/sescriva/.batali/cache/git/Z2l0QGFwcHNnaXQuYmV0aGVsLmp3Lm9yZzpjaGVmL2Nvb2tib29rLWFwcHNlcnZlci5naXQ=" pull "origin" "master"  2>&1:error: cannot pull with rebase: You have unstaged changes.
error: additionally, your index contains uncommitted changes.
error: please commit or stash them.
ERROR: Git::GitExecuteError: git "--git-dir=C:/Users/sescriva/.batali/cache/git/Z2l0QGFwcHNnaXQuYmV0aGVsLmp3Lm9yZzpjaGVmL2Nvb2tib29rLWFwcHNlcnZlci5naXQ=/.git" "--work-tree=C:/Users/sescriva/.batali/cache/git/Z2l0QGFwcHNnaXQuYmV0aGVsLmp3Lm9yZzpjaGVmL2Nvb2tib29rLWFwcHNlcnZlci5naXQ=" pull "origin" "master"  2>&1:error: cannot pull with rebase: You have unstaged changes.
error: additionally, your index contains uncommitted changes.
error: please commit or stash them.

scrubbed the cache

C:\src\chef\infra-repo [batali-test +3 ~2 -0 !]> batali cache -s
[Batali]: Remove all contents from local cache (C:/Users/sescriva/.batali/cache) (Y/N): y
[Batali]: Scrubbing local cache... complete!
Batali cache information:
  Path: C:/Users/sescriva/.batali/cache
  Size: 0.00M

and hit this:

[Batali]: Installing cookbooks... error!
[ERROR]: Reason - No such file or directory @ rb_sysopen - C:/Users/sescriva/.batali/cache/site/remote_site/aHR0cHM6Ly9zdXBlcm1hcmtldC5jaGVmLmlvOjQ0My9hcGkvdjEvY29va2Jvb2tzL2NvbXBhdF9yZXNvdXJjZS92ZXJzaW9ucy8xMi4xNi4zL2Rvd25sb2Fk/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_list.rb
ERROR: Errno::ENOENT: No such file or directory @ rb_sysopen - C:/Users/sescriva/.batali/cache/site/remote_site/aHR0cHM6Ly9zdXBlcm1hcmtldC5jaGVmLmlvOjQ0My9hcGkvdjEvY29va2Jvb2tzL2NvbXBhdF9yZXNvdXJjZS92ZXJzaW9ucy8xMi4xNi4zL2Rvd25sb2Fk/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_list.rb

@webframp
Copy link
Contributor

Found some binaries that were committed to a couple repos listed in the Batali file that were causing the problem in #93 your index contains uncommitted changes. I cleaned those up by rewriting history to purge the files.

Still seem to be getting stuck at this one:

[Batali]: Readying installation destination... complete!
[Batali]: Installing cookbooks... error!
[ERROR]: Reason - No such file or directory @ rb_sysopen - C:/Users/sescriva/.batali/cache/site/remote_site/aHR0cHM6Ly9zdXBlcm1hcmtldC5jaGVmLmlvOjQ0My9hcGkvdjEvY29va2Jvb2tzL2NvbXBhdF9yZXNvdXJjZS92ZXJzaW9ucy8xMi4xOS4wL2Rvd25sb2Fk/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_list.rb
ERROR: Errno::ENOENT: No such file or directory @ rb_sysopen - C:/Users/sescriva/.batali/cache/site/remote_site/aHR0cHM6Ly9zdXBlcm1hcmtldC5jaGVmLmlvOjQ0My9hcGkvdjEvY29va2Jvb2tzL2NvbXBhdF9yZXNvdXJjZS92ZXJzaW9ucy8xMi4xOS4wL2Rvd25sb2Fk/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_list.rb

/cc @chrisroberts

@chrisroberts chrisroberts merged commit 64044fa into develop Jun 17, 2018
@chrisroberts chrisroberts deleted the win/unc-paths branch June 17, 2018 01:05
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

Successfully merging this pull request may close these issues.

Windows ENOENT filesystem failures with batali cache
2 participants