Skip to content

Batali cache: git sources problems building working tree and uncommitted changes #93

@webframp

Description

@webframp

Filing an issue for tracking this one since it's kind of strange. Using latest code from #92 in an attempt to fix #88

Install fails for what appears to be a dirty git working tree for a git source, but the tree is actually clean.

[ERROR]: Reason - git "--git-dir=C:/Users/sescriva/AppData/Local/.batali/cache/git/Z2l0QGFwcHNnaXQuYmV0aGVsLmp3Lm9yZzpjaGVmL2Nvb2tib29rLWFwcHNlcnZlci5naXQ=/.git" "--work-tree=C:/Users/sescriva/AppData/Local/.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/AppData/Local/.batali/cache/git/Z2l0QGFwcHNnaXQuYmV0aGVsLmp3Lm9yZzpjaGVmL2Nvb2tib29rLWFwcHNlcnZlci5naXQ=/.git" "--work-tree=C:/Users/sescriva/AppData/Local/.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.

C:\src\chef\infra-repo [batali/debug +2 ~1 -0 !]> cd "C:/Users/sescriva/AppData/Local/.batali/cache/git/Z2l0QGFwcHNnaXQuYmV0aGVsLmp3Lm9yZzpjaGVmL2Nvb2tib29rLWFwcHNlcnZlci5naXQ="

C:\Users\sescriva\AppData\Local\.batali\cache\git\Z2l0QGFwcHNnaXQuYmV0aGVsLmp3Lm9yZzpjaGVmL2Nvb2tib29rLWFwcHNlcnZlci5naXQ= [master ≡]> git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

Scrubbing cache and re-installing results in same error as #88 (which was pre-existing):

C:\src\chef\infra-repo [batali/debug +2 ~1 -0 !]> be batali cache -s
[Batali]: Remove all contents from local cache (C:\Users\sescriva\AppData\Local/.batali/cache) (Y/N): Y
[Batali]: Scrubbing local cache... complete!
Batali cache information:
  Path: C:\Users\sescriva\AppData\Local/.batali/cache
  Size: 0.00M
C:\src\chef\infra-repo [batali/debug +2 ~1 -0 !]> be batali install
[Batali]: Readying installation destination... complete!
[Batali]: Installing cookbooks... error!
[ERROR]: Reason - No such file or directory - Failed to locate asset within `C:\Users\sescriva\AppData\Local/.batali/cache/site/remote_site/aHR0cHM6Ly9zdXBlcm1hcmtldC5jaGVmLmlvOjQ0My9hcGkvdjEvY29va2Jvb2tzL3dpbmRvd3MvdmVyc2lvbnMvMi4xLjEvZG93bmxvYWQ=`
ERROR: Errno::ENOENT: No such file or directory - Failed to locate asset within `C:\Users\sescriva\AppData\Local/.batali/cache/site/remote_site/aHR0cHM6Ly9zdXBlcm1hcmtldC5jaGVmLmlvOjQ0My9hcGkvdjEvY29va2Jvb2tzL3dpbmRvd3MvdmVyc2lvbnMvMi4xLjEvZG93bmxvYWQ=`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions