Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-11570

HDDS Docs Build Fails with Hugo v0.135.0 on M1 Mac Pro

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0, 1.4.1
    • None

    Description

      I encountered a build issue while building Ozone on an M1 Max MacBook Pro using the following command:

      mvn clean install -DskipTests -Dos.arch=x86_64

      Hugo version is v0.135

      $ hugo version
      hugo v0.135.0-f30603c47f5205e30ef83c70419f57d7eb7175ab darwin/arm64 BuildDate=2024-09-27T13:17:08Z VendorInfo=gohugoio
      

      The Maven build fails specifically at the hadoop-hdds-docs module with the following error:

      [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.4.1:exec (default) on project hdds-docs: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
      

       

      After downgrading Hugo to v0.134.3, the build succeeds.

      The root cause seems to be related to the markdown front matter in certain files. For example, the following error occurred:

      ERROR invalid front matter: date: 2020-October-22: see /Users/scolley/Desktop/ozone/ozone/hadoop-hdds/docs/content/feature/Quota.zh.md 

      By modifying the markdown date format from:

      date: 2020-October-22

      to

      date: 2020-10-22

      the build succeeds with Hugo v0.135.0 as well.

       
       

      Attachments

        Issue Links

          Activity

            People

              scolley Scolley Huang
              scolley Scolley Huang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: