Skip to content

[Bug]: py_venv venv_name no longer works #598

Open
@rob-pomelo

Description

@rob-pomelo

What happened?

target:

py_venv(
    name = "venv",
    package_collisions = "ignore",
    venv_name = ".venv",
    deps = ...
)
INFO: Running command line: bazel-bin/venv '--venv-name=.venv'
INFO: Streaming build results to: https://app.buildbuddy.io/invocation/122c4061-5d54-44c0-9a6f-b2c6afb6d1b7
usage: link [options]

Helper to create a symlink to a virtualenv in the source tree.

options:
  -h, --help   show this help message and exit
  --dest DEST  Dir to link the virtualenv into. Default is $BUILD_WORKING_DIRECTORY. (default: /Users/rob/Documents/git/pomelo)
  --name NAME  Name to link the virtualenv as. (default: .+venv)
usage: link [options]

Helper to create a symlink to a virtualenv in the source tree.
link: error: unrecognized arguments: --venv-name=.venv

works if i remove venv_name, but we want to put it in .venv

Version

bazel --version
bazel 8.1.1
macos

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.0")

How to reproduce

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    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