Skip to content

Cannot change build path of existing resource #31

Open
@joshrwolf

Description

Changing the build path of an existing resource to one that doesn't exist results in an error at plan/apply time.

An example of this occurring is when we're refactoring an invocation path:

# A
|- env/
   - main.tf         # buildpath of "${path.module}/../"
|- main.go

to

# B
|- env/
   |- new/           # buildpath of "${path.module}/../../"
      - main.tf
|- main.go

if A already exists in state and we move the invocation to B, a terraform {plan,apply} will error out with a ko build error due to a non-existent path.

the desired behavior instead is for the tf provider to simply rebuild the image with the new path.

Metadata

Assignees

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