Skip to content

make run needs to localize TMPDIR #40

@gotwarlost

Description

@gotwarlost

I was changing terraform provider versions and generally hacking around when things simply stopped working, logs were full of terraform init error messages and so on.

I cleaned .cache and .work, reinstalled submodules and did everything possible to get to a baseline clean state but nothing worked.

The root cause turned out to be that subdirectories with stable names based on resource names or something are created under TMPDIR, these had old content etc. and it took me awhile to figure out what the heck was happening.

make run should therefore localize TMPDIR to be under .work or .cache or something. Otherwise it turns into debugging hell especially for a person new to this kind of thing.

There was a separate problem with make generate also not being able to produce a schema but that's probably not related to this issue. I need to figure out what exactly happened there.

Metadata

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