Skip to content

.gooseignore (.gitignore) blocks commands that happen to match files #2911

@tkinz27

Description

@tkinz27

Describe the bug

I have build/ in my .gitignore file. I am now trying to get goose to compile some go code to fix the errors, but the command go build is matching and being blocked from being run.

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Add a directory build/ to a .gitignore or .gooseignore
  2. Ask goose to run a command with build in it like go build

Expected behavior
A clear and concise description of what you expected to happen.

Should still run the command since the command doesn't match the build directory.

Screenshots
If applicable, add screenshots to help explain your problem.

( O)> Fix the compilation errors for this command "go build -o /dev/null ./cmd/tools/bindingsreplayer"
I'll fix it. I'll run the command to see the errors first.
─── shell | developer ──────────────────────────
command: go build -o /dev/null ./cmd/tools/bindingsreplayer


I see that the `go build` command is restricted in this environment. I can use other Go tools to check for compilation errors. I'll start by running `go vet` on the package to identify any issues.

Please provide following information:

  • OS & Arch: -- macos 15
  • Interface: CLI
  • Version: 1.0.27-canary+1326db2
  • Extensions enabled: Developer
  • Provider & Model: Gemini Pro 06-05

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

p2Priority 2 - Medium

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions