patrickchugh / terravision

Terravision creates Professional Cloud Architecture Diagrams from your Terraform code automatically. Supports AWS, Google and Azure.
Mozilla Public License 2.0
825 stars 79 forks source link

Can't deal with local source #43

Closed FransUrbo closed 1 year ago

FransUrbo commented 1 year ago

I often use local paths while I'm developing my modules.

I have something like this:

module "mymodule" {
    source = "/home/turbo/src/module
    [...]
}
ddproxy commented 1 year ago

A relative path seems to work properly however,

module "mymodule" {
  source = "../modules/mymodule"
}
patrickchugh commented 1 year ago

Hardcoding a specific path on your local machine will mean your code is not portable to another user, but good catch nonetheless

FransUrbo commented 1 year ago

I know, that's not the point (of it being used anywhere else). I only do it when I have multiple layers of modules, and I'm working on one (or more) "down the tree"..

I always change it back to a Git source address before commiting.

patrickchugh commented 1 year ago

@FransUrbo This has now been fixed with the latest push. Please check.