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

Remove .git dir from embedded/apps #216

Merged
merged 1 commit into from
May 30, 2014

Conversation

danielsdeleo
Copy link
Contributor

The presence of a .git directory causes git to treat these directories
as submodules, which causes the content to not get cached by the
omnibus git cache, which in turn causes cached builds to have empty
directories where the code was supposed to be. There is some benefit to
keeping the .git directories around, but not enough to justify a more
involved fix/workaround. So, blow the .git directories away during the
build.

NOTE: I haven't built this yet, will be kicking off a build shortly.

/cc @opscode/client-eng @opscode/release-engineers

The presence of a .git directory causes git to treat these directories
as submodules, which causes the content to *not* get cached by the
omnibus git cache, which in turn causes cached builds to have empty
directories where the code was supposed to be. There is some benefit to
keeping the .git directories around, but not enough to justify a more
involved fix/workaround. So, blow the .git directories away during the
build.
@sethvargo
Copy link
Contributor

Didn't we fix this in chef/omnibus#121?

@danielsdeleo
Copy link
Contributor Author

@sethvargo I don't see how that could fix it at all. This is a fundamental problem with git, it pretty much refuses to commit any files in a subdirectory that contains a .git directory, and it considers them to be submodules.

@danielsdeleo
Copy link
Contributor Author

@sethvargo also, we never got an exception from omnibus-ruby, the whole build seems to work, but when it restores a build from the git cache, any subdir that git thinks is a git repo is empty.

@sersut
Copy link
Contributor

sersut commented May 30, 2014

👍

@danielsdeleo danielsdeleo merged commit 7a2bce3 into master May 30, 2014
@danielsdeleo danielsdeleo deleted the workaround-git-in-git-cache-issue branch May 30, 2014 21:43
@danielsdeleo
Copy link
Contributor Author

lebauce pushed a commit to lebauce/omnibus-software that referenced this pull request Dec 14, 2022
Add libffi as dependency of datadog-pip on arm platforms
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.

3 participants