Open jstarek opened 8 years ago
It's probably a bug: we probably should support building dCache without git.
That said, it is moderately unlikely that people would download the source like this: git is a very powerful tool compared to working with plain files in a zip container.
well, zip file (tar file) is typical for building packages from srpm (not that we do that)
That's a good point. This is something we will need to fix if we need to produce SRPMs.
Revisiting this... According to the documentation of the maven-git-commit-id-plugin, the following configuration option in the main POM should allow the build to run through, while losing the git IDs:
<!-- @since 2.0.4 -->
<!-- true by default, controls whether the plugin will fail when no .git directory is found, when set to false the plugin will just skip execution -->
<failOnNoGitDirectory>true</failOnNoGitDirectory>
Useful or harmful?
What happened when you tested this -- in particular, what values are set for places that depend on the current code-base?
Github offers users to download project trees as zip files. Doing so with dCache results in a source tree that can't be used to build the project.
mvn package
results inDo we just want to document this or should this be considered a bug?