-
Notifications
You must be signed in to change notification settings - Fork 336
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
make docker
fails when the repo is cloned as a submodule
#184
Comments
Hi @scjudd! I'm really curious to know more about why you're attempting to build the credential helper inside a submodule. If you're not already aware, there are prebuilt binaries and source releases that don't require git. |
I actually would happily use the prebuilt binaries if I could checkout version 0.3.1, run |
Thanks! I've opened #186 to track reproducible builds, since this is something I've wanted anyway. For your use-case of building yourself, another alternative is to build from a source tarball that already contains a rendered |
If the repo is cloned as a submodule,
make docker
fails. This is due to the fact thatGITCOMMIT_SHA
doesn't exist beforemake
runs within the build container, and the true.git/
directory is outside of the Docker build context when we're in a submodule.I was able to fix this by making
GITCOMMIT_SHA
a dependency of thedocker
make target in theMakefile
, such thatGITCOMMIT_SHA
already exists in the Docker build context beforemake
runs. I have opened #185 with the fix.Example
The text was updated successfully, but these errors were encountered: