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

Can't use "../" as root_directory #14

@antoinert

Description

@antoinert

Hey!

It looks like it is not possible to use "../" as the project root directory which contradicts with the documentation at the provider's docs.

image

However, using an additional path after the upward path, e.g. "../foo" seems to work.

data "vercel_project_directory" "foo" {
  path = "../"
}

resource "vercel_deployment" "foo" {
  project_id = vercel_project.foo.id
  files      = data.vercel_project_directory.foo.files
  production = true
  project_settings = {
    root_directory = "../"
  }
}
Could not create deployment, unexpected error: invalid_root_directory - If defined, the Root
Directory must be a relative path not starting with `./` and not including `../` or other special
characters.

I often hold my terraform files in a separate folder in my repository while keeping the app at root so this is a bit problematic as I would need to change folder structure. I can work with it for now but I assume this is a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions