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

Fails on missing git executable #208

Open
cmahnke opened this issue Jan 10, 2024 · 0 comments
Open

Fails on missing git executable #208

cmahnke opened this issue Jan 10, 2024 · 0 comments

Comments

@cmahnke
Copy link

cmahnke commented Jan 10, 2024

It should be possible to ignore a missing executable, like git, by setting failTheBuild to false.

29.34 [ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:3.2.0:create (default) on project planetiler-parent: Cannot get the revision information from the scm repository : 
29.34 [ERROR] Exception while executing SCM command.: Error while executing command. Error while executing process. Cannot run program "git" (in directory "/tmp/build/planetiler"): error=2, No such file or directory

Note that even setting

        <configuration>
          <doCheck>false</doCheck>
          <doUpdate>false</doUpdate>
          <failTheBuild>false</failTheBuild>
        </configuration>

The behaviour should be changed in a way that setting <failTheBuild>false</failTheBuild> should only emit a warning if the executable is missing (or any other state the would be considered an error) an not breaks the build. Otherwise the option should be remove since it's misleading if this is considered to be working as expected.

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

No branches or pull requests

1 participant