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
SDK Installer fails due to missing files when building git #3888
Comments
The most likely explanation is that the built-in commands (which are hard-linked into Work-around: I'll have to think how to best resolve this without needing a work-around. |
This might present a fine opportunity to stop shipping Git for Windows with hard-linked executables for all the built-in commands. Background: Due to its origin in the Linux ecosystem Git was originally designed as a set of "Unix-y tools" that were to be used in a set of shell scripts for the higher-level functionality. This turned out to be misguided very quickly, and more and more parts of Git were turned from POSIX shell scripts into commands implemented in C. To avoid a proliferation of ever larger executables, more and more commands were implemented as "built-in commands", i.e. the On the other hand, we already have a list of those built-in commands in |
The "dashed executables" of Git are hard-linked versions of the `git` executable which are provided for built-in commands, for backwards-compatibility. Since 7cedbf7 (sdk init git: skip hard-linking the built-ins by default, 2020-12-01), we skip building (and hence installing) these dashed executables. Let's handle this situtation gracefully. This fixes git-for-windows/git#3888 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@Amorik I implemented this in git-for-windows/build-extra#422. Could you please confirm that it fixes the issue on your end? |
@dscho Confirmed executed the following steps on both systems. Note i did not do a complete test of the packaged installer, just ran it, stepped through and canceled.
|
Setup
defaults? defaults
to the issue you're seeing?
No/Unknown
Details
GitBash (SDK v1.0.8)
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Note: making the without building git works as intended. When building git it does not seem to generate all the files needed, or at least in comparison to the number of libexec files that existed before.
The generation of an installer using the newly compiled git from default branch main without any changes.
Installer fails to generate due to missing files which were not generated via make despite no apparent errors.
URL to that repository to help us with testing?
** Build-Extra **
The text was updated successfully, but these errors were encountered: