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

SHA1 Mismatch #53

@qpre

Description

@qpre

Hello,

I'm trying to use the provider to deploy an app within a monorepo (turborepo).

Whenever I try to deploy I get into SHA1 mismatches and I can't figure how nor why as there are no reason that the files taken from data.vercel_project_directory would change during the terraform run:

data "vercel_project_directory" "project" {
  path = "${path.root}/../../../../app/browser"
}

resource "vercel_project" "project" {
  name      = "awesome"
  framework = "nextjs"
  serverless_function_region = "cdg1"

  environment = []

  # https://vercel.com/docs/concepts/monorepos/turborepo
  build_command = "cd ../.. && npx turbo run build --filter=browser"
  root_directory = "app/browser"
}

resource "vercel_deployment" "project" {
  project_id    = vercel_project.project.id
  files              = data.vercel_project_directory.project.files
  path_prefix = 
  production  = true
}

And then I get:

Error: Error uploading deployment file
[1266](?check_suite_focus=true#step:13:1267)
│ 
[1267](?check_suite_focus=true#step:13:1268)
│   with module.platform.module.dashboard.vercel_deployment.project,
[1268](?check_suite_focus=true#step:13:1269)
│   on ../../recipes/vercel/main.tf line 16, in resource "vercel_deployment" "project":
[1269](?check_suite_focus=true#step:13:1270)
│   16: resource "vercel_deployment" "project" {
[1270](?check_suite_focus=true#step:13:1271)
│ 
[1271](?check_suite_focus=true#step:13:1272)
│ Could not upload deployment file
[1272](?check_suite_focus=true#step:13:1273)
│ ../../../../app/browser/packages/assets/images/bluetooth.svg, unexpected
[1273](?check_suite_focus=true#step:13:1274)
│ error: sha1sum_mismatch - SHA1 sum of the file
[1274](?check_suite_focus=true#step:13:1275)
│ (9bbe672f3b95401c035390bae38639915358c4f9) doesn't match the provided SHA1
[1275](?check_suite_focus=true#step:13:1276)
│ sum (296a875c1282c3f01a361f5f075faf99657d17e4)

I'm using version 0.6.2 of the provider and terraform 1.2.6, and it runs on GitHub actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions