Skip to content

Version check fails when installing terraform using mise in subdirectory. #296

@mashiro

Description

@mashiro

Description

If the terraform command is installed as a dependency of mise.toml placed in a subdirectory, the checkVersionAvailability function will fail because the terraform command is not found in the root directory.

GitHub Action Version

v10.0.1

Configuration

cdktfVersion: 0.21.0
terraformVersion: 1.12.2
mode: plan-only
stackName: my-stack
workingDirectory: infra
githubToken: ${{ secrets.GITHUB_TOKEN }}

Gist

https://gist.github.com/mashiro/dc514dde8bbb4aad907391f503c4c8cb

Possible Solutions

Set workingDirectory to the cwd option in execSync of checkVersionAvailability function.

Workarounds

No response

Anything Else?

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewA new issue or feature request that has not yet been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions