Skip to content

hook createstackmoduleoutputs fails if the module is located in subdir of a git repo #13

@helgard88

Description

@helgard88

In case I specify a subdirectory and a tag ref in a module source like git::https://example.com/network.git//modules/vpc?ref=v1.2.0 the ref gets copied into stackmodulesoutputs file with a module name. As a result I get something like
output "module_vpc?ref=v1.2.0" { value = module.vpc?ref=v1.2.0.* sensitive = true }

hasGitRef = fileName.index('.git?ref')

Does it expect ref right after .git ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions