这是indexloc提供的服务,不要输入任何密码
Skip to content

ERROR failed to calculate global hash: error hashing files #1097

@carpad88

Description

@carpad88

What version of Turborepo are you using?

1.2.4

What package manager are you using / does the bug impact?

npm

What operating system are you using?

Mac

Describe the Bug

I keep getting this error when trying to deploy turborepo on vercel

ERROR  failed to calculate global hash: error hashing files. make sure that 
git has been initialized failed to hash files/vercel/path0/package.json, 
/vercel/path0/package-lock.json: git hash-object exited with status: exit status 128

Expected Behavior

Get a succesful deployment

To Reproduce

I have set up this command on Vercel

cd ../.. && npx turbo run build --filter=medusa-admin --include-dependencies --no-deps

And my turborepo is set uo like this

{
  "pipeline": {
    "build": {
      "dependsOn": [
        "^build",
        "$GATSBY_MEDUSA_BACKEND_URL"
      ],
      "outputs": ["public/**"]
    },
    "lint": {
      "outputs": []
    },
    "dev": {
      "cache": false
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions