[GH-ISSUE #43] Can't deal with local source #20

Closed
opened 2026-05-06 12:36:16 +02:00 by BreizhHardware · 4 comments

Originally created by @FransUrbo on GitHub (Aug 21, 2023).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/43

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

I have something like this:

module "mymodule" {
    source = "/home/turbo/src/module
    [...]
}
Originally created by @FransUrbo on GitHub (Aug 21, 2023). Original GitHub issue: https://github.com/patrickchugh/terravision/issues/43 I often use local paths while I'm developing my modules. I have something like this: ``` module "mymodule" { source = "/home/turbo/src/module [...] } ```
Author
Owner

@ddproxy commented on GitHub (Aug 21, 2023):

A relative path seems to work properly however,

module "mymodule" {
  source = "../modules/mymodule"
}
<!-- gh-comment-id:1686396193 --> @ddproxy commented on GitHub (Aug 21, 2023): A relative path seems to work properly however, ``` module "mymodule" { source = "../modules/mymodule" } ```
Author
Owner

@patrickchugh commented on GitHub (Aug 21, 2023):

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

<!-- gh-comment-id:1687007239 --> @patrickchugh commented on GitHub (Aug 21, 2023): Hardcoding a specific path on your local machine will mean your code is not portable to another user, but good catch nonetheless
Author
Owner

@FransUrbo commented on GitHub (Aug 22, 2023):

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.

<!-- gh-comment-id:1687591336 --> @FransUrbo commented on GitHub (Aug 22, 2023): 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.
Author
Owner

@patrickchugh commented on GitHub (Aug 26, 2023):

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

<!-- gh-comment-id:1694250367 --> @patrickchugh commented on GitHub (Aug 26, 2023): @FransUrbo This has now been fixed with the latest push. Please check.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/terravision#20
No description provided.