Skip to content

cdktf tries to use pipenv even tho I have removed it from cdktf.json #2321

@trondhindenes

Description

@trondhindenes

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

cdktf & Language Versions

❯ cdktf --version
0.14.1

Affected Resource(s)

Debug Output

Expected Behavior

cdktf should have executed poetry run python main.py, and never called pipenv

Actual Behavior

something inside cdktf calls "pipenv" even tho I've adjusted cdktf.json. Seems to me like it totally disregards the "app" attribute in the cdktf.json file

⠏  Synthesizing
[2022-11-18T18:54:22.986] [ERROR] default - Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.

Steps to Reproduce

Created a cdk tf app using the template.
Switched from pipenv to poetry.
Deleted Pipfile* Replaced app attr in cdktf.json with poetry run python main.py.
Verified that simply running poetry run python main.py works.
Tried running cdktf synth

This is the first time I'm looking at cdktf in about two years, and I'm quite certain I've used it with poetry before

Important Factoids

References

  • #0000

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcli/provider-subcommandscdktf provider <verb> commandshelp wantedCommunity contributions welcome as the core team is unlikely to work on this soonlanguage/pythonpriority/backlogLow priority (though possibly still important). Unlikely to be worked on within the next 6 months.size/mediumestimated < 1 week

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions