Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bazel targets are mistaken for directories #247

Open
Labels
@thirtyseven

Description

@thirtyseven

Describe the bug

When the agent runs Bazel commands that reference a target in the form //foo/bar:baz, the user is warned that the operation access paths outside allowed directories. This continues even after the user adds the directories to the allowed list.

Affected version

0.0.335 Commit: 48dc015

Steps to reproduce the behavior

  1. Create a Bazel project with directory structure:
  • foo
    • bar
      • BUILD.bazel
        • sh_test(name = "baz")
  1. Ask the agent to runbazel test //foo/bar:baz
  2. Observe output:
○ Run the test   $ bazel test //foo/bar:baz --test_output=all   ↪ 1 line... ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ This operation accesses path(s) outside allowed directories:                                                      │ │ //foo/bar:baz.                                                             │ │                                                                                                                   │ │ Would you like to add these directories to the allowed list?                                                      │ │                                                                                                                   │ │ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ //foo/bar:baz                                                          │ │ │ ╰───────────────────────────────────────────────────────── |  │ ❯ 1. Yes                                                                                                          │ │   2. No (Esc)                                                                                                     │ │
  1. Select Yes
  2. Repeat step 2
  3. Step 3 repeats

Expected behavior

Either:

  1. Bazel targets are not interpreted as directories
  2. Bazel targets are parsed and mapped to actual directories
  3. After adding a Bazel target as an allowed directory, the choice is respected and the user is not prompted repeatedly to add it to the list of allowed directories.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp