You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If running pack with a workspace that is a submodule, the build will fail with a message:
Paketo Buildpack for Git 1.0.6
failed to execute 'git rev-parse HEAD': exit status 128
fatal: not a git repository: /workspace/../../../../.git/modules/vendor/github.com/triggermesh/triggermesh-event-sources-bundle
I think this might be because the .git file inside of a submodule is different in structure than when at the root of a repo.
I've found that if I simply delete the .git file inside of the submodule, the build will pass. However, this is not a feasible workaround for my scenario (I'll spare the details).
The text was updated successfully, but these errors were encountered:
I'm thinking that this buildpack should probably check to see if the .git is a folder vs a file. If it's a file, we know we're in a submodule and can treat it the same as the .git folder not existing.
If running pack with a workspace that is a submodule, the build will fail with a message:
For instance:
I think this might be because the
.git
file inside of a submodule is different in structure than when at the root of a repo.I've found that if I simply delete the
.git
file inside of the submodule, the build will pass. However, this is not a feasible workaround for my scenario (I'll spare the details).The text was updated successfully, but these errors were encountered: