Skip to content

Commit

Permalink
dropping -args (#1546)
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhp committed May 27, 2023
1 parent 3597472 commit e0911e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions cmd/autogazelle/autogazelle.go
Expand Up @@ -101,8 +101,7 @@ func runGazelle(mode mode, dirs []string) error {
return nil
}

args := []string{os.Getenv("BAZEL_REAL"), "run", *gazelleLabel, "--", "-args"}
args = append(args, "-index=false")
args := []string{os.Getenv("BAZEL_REAL"), "run", *gazelleLabel, "--", "-index=false"}
if mode == fastMode {
args = append(args, "-r=false")
args = append(args, dirs...)
Expand Down
4 changes: 0 additions & 4 deletions internal/gazelle.bash.in
Expand Up @@ -66,10 +66,6 @@ case "${1-}" in
"fix" | "update" | "help" | "update-repos")
ARGS=("$@")
;;
"-args")
shift
ARGS+=("$@")
;;
*)
ARGS+=("$@")
;;
Expand Down

0 comments on commit e0911e8

Please sign in to comment.