Skip to content

Typo in "source" syntax: Failed to expand subdir globs #232

Open
@mchaffee-anaconda

Description

The readme currently says you can reference the module like this:

module "image-copy" {
  source = "github.com/chainguard-dev/platform-examples/image-copy-gcp/iac?ref=a1b2c3d4"

  project_id = "..."
  group      = "..."
}

But you actually need a second / between the path and the repo name: https://developer.hashicorp.com/terraform/language/modules/sources#modules-in-package-sub-directories

So the correct syntax would be:

module "image-copy" {
  source = "github.com/chainguard-dev/platform-examples//image-copy-gcp/iac?ref=a1b2c3d4"

  project_id = "..."
  group      = "..."
}

Wanted to contribute this but then I noticed #231 so just letting you know here. Thanks!

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