Skip to content

WARNING about unknown commit-graph chunk #687

Open
@khmarbaise

Description

@khmarbaise

Describe the bug (required)

[INFO] --- git-commit-id:7.0.0:revision (default) @ tree ---
[WARNING] unknown commit-graph chunk: 0x47444132
[WARNING] unknown commit-graph chunk: 0x47444132
[WARNING] unknown commit-graph chunk: 0x47444132
[WARNING] unknown commit-graph chunk: 0x47444132

Already done a git gc --prune=now etc.

$> git fsck --unreachable 
Checking object directories: 100% (256/256), done.
Checking objects: 100% (3261/3261), done.
Verifying commits in commit graph: 100% (323/323), done.

Tell us about your plugin configuration (required)

        <plugin>
          <groupId>io.github.git-commit-id</groupId>
          <artifactId>git-commit-id-maven-plugin</artifactId>
          <version>7.0.0</version>
          <configuration>
            <failOnNoGitDirectory>false</failOnNoGitDirectory>
            <runOnlyOnce>true</runOnlyOnce>
            <generateGitPropertiesFile>true</generateGitPropertiesFile>
            <commitIdGenerationMode>full</commitIdGenerationMode>
            <useBranchNameFromBuildEnvironment>false</useBranchNameFromBuildEnvironment>
          </configuration>
        </plugin>

Tell us about the Plugin version used (required)

7.0.0

Tell us about the Maven version used (required)

  • Maven 4.0.0-alpha-10
Apache Maven 4.0.0-alpha-10 (89d3c0321dda868c432edf504f1884e6fd706f00)
Maven home: /Users/khm/tools/maven
Java version: 21.0.1, vendor: Oracle Corporation, runtime: /Users/khm/.sdkman/candidates/java/21.0.1-open
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"
  • Maven 3.9.6
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /Users/khm/tools/maven
Java version: 21.0.1, vendor: Oracle Corporation, runtime: /Users/khm/.sdkman/candidates/java/21.0.1-open
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"
  • Maven 3.8.8
mvn --version
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: /Users/khm/tools/maven
Java version: 21.0.1, vendor: Oracle Corporation, runtime: /Users/khm/.sdkman/candidates/java/21.0.1-open
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"

Steps to Reproduce (required)

mvn clean verify

Are there any stacktraces or any error messages? (required)

mvn clean verify
...
[INFO] 
[INFO] --- git-commit-id:7.0.0:revision (default) @ tree ---
[INFO] Current project: 'XYZ..', first project to execute based on dependency graph: 'XYZ...'
[INFO] dotGitDirectory '/Users/khm/xyz/.git'
[INFO] Collected git.build.user.name with value 
[INFO] Collected git.build.user.email with value 
[WARNING] unknown commit-graph chunk: 0x47444132
[INFO] Collected git.branch with value main
[INFO] Collected git.commit.id.describe with value 0b93ad0-dirty
[INFO] Collected git.commit.id.describe-short with value 0b93ad0-dirty
[INFO] Collected git.commit.id.full with value 0b93ad0c8c4ebf955108b85d6afda4428a5c11a3
[INFO] Collected git.commit.id.abbrev with value 0b93ad0
[INFO] Collected git.dirty with value true
[INFO] Collected git.commit.user.name with value Karl Heinz Marbaise
[INFO] Collected git.commit.user.email with value kama@soebes.de
[INFO] Collected git.commit.message.full with value Upgrade assertj-bom 3.25.1
[INFO] Collected git.commit.message.short with value Upgrade assertj-bom 3.25.1
[INFO] Collected git.commit.time with value 2024-01-03T17:29:20+0100
[INFO] Collected git.commit.author.time with value 2024-01-03T17:29:20+0100
[INFO] Collected git.commit.committer.time with value 2024-01-03T17:29:20+0100
[INFO] Collected git.remote.origin.url with value git@192.168.178.9:/home/git/repos/xyz.git
[WARNING] unknown commit-graph chunk: 0x47444132
[INFO] Collected git.tags with value 
[WARNING] unknown commit-graph chunk: 0x47444132
[INFO] Collected git.closest.tag.name with value 
[WARNING] unknown commit-graph chunk: 0x47444132
[INFO] Collected git.closest.tag.commit.count with value 
[INFO] Collected git.total.commit.count with value 319
[INFO] Collected git.local.branch.ahead with value 0
[INFO] Collected git.local.branch.behind with value 0
[INFO] Collected git.build.time with value 2024-01-04T11:12:41+0100
[INFO] Collected git.build.version with value 0.2.0-SNAPSHOT
[INFO] Collected git.build.host with value Karl-Heinzs-MacBook-Pro.local
[INFO] including property 'git.tags' in results
[INFO] including property 'git.build.version' in results
[INFO] including property 'git.branch' in results
[INFO] including property 'git.build.host' in results
[INFO] including property 'git.commit.user.email' in results
[INFO] including property 'git.local.branch.behind' in results
[INFO] including property 'git.commit.author.time' in results
[INFO] including property 'git.build.user.name' in results
[INFO] including property 'git.dirty' in results
[INFO] including property 'git.closest.tag.commit.count' in results
[INFO] including property 'git.commit.user.name' in results
[INFO] including property 'git.commit.id.abbrev' in results
[INFO] including property 'git.commit.id.describe-short' in results
[INFO] including property 'git.total.commit.count' in results
[INFO] including property 'git.commit.id.describe' in results
[INFO] including property 'git.build.user.email' in results
[INFO] including property 'git.commit.message.short' in results
[INFO] including property 'git.commit.committer.time' in results
[INFO] including property 'git.commit.id.full' in results
[INFO] including property 'git.closest.tag.name' in results
[INFO] including property 'git.local.branch.ahead' in results
[INFO] including property 'git.commit.time' in results
[INFO] including property 'git.build.time' in results
[INFO] including property 'git.commit.message.full' in results
[INFO] including property 'git.remote.origin.url' in results
[INFO] Writing properties file [/Users/khm/xyz/tree/target/classes/git.properties] (for project XYZ..)...
[INFO] 

Is there a (public) project where this issue can be reproduced? (optional)

I used my public project and applied the same configuration and it produces the same warning:

https://github.com/khmarbaise/maven-it-extension/tree/git-commit-id-maven-plugin-issue-687

Your Environment (optional)

Java version: 21.0.1, vendor: Oracle Corporation, runtime: /Users/khm/.sdkman/candidates/java/21.0.1-open
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"
also Tested with JDK 17
Java version: 17.0.9, vendor: Eclipse Adoptium, runtime: /Users/khm/.sdkman/candidates/java/17.0.9-tem
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"

Context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions