From 4aa28896b7703dcb153f0effae4007dd098b6c06 Mon Sep 17 00:00:00 2001 From: Adam Thomason Date: Wed, 25 Oct 2017 14:36:23 -0700 Subject: [PATCH] cmd/go: add -shift to go vet's flag whitelist CL 40112 intended to allow full flag processing in go vet, but missed vet's -shift flag; this corrects the omission. Fixes #22442 Change-Id: I47525018306bd8b9aa452fb378d0d45319f8cf11 Reviewed-on: https://go-review.googlesource.com/73553 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/cmd/go/internal/vet/vetflag.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/go/internal/vet/vetflag.go b/src/cmd/go/internal/vet/vetflag.go index 8cd21bb72b..36ee04ede7 100644 --- a/src/cmd/go/internal/vet/vetflag.go +++ b/src/cmd/go/internal/vet/vetflag.go @@ -44,6 +44,7 @@ var vetFlagDefn = []*cmdflag.Defn{ {Name: "rangeloops", BoolVar: new(bool)}, {Name: "shadow", BoolVar: new(bool)}, {Name: "shadowstrict", BoolVar: new(bool)}, + {Name: "shift", BoolVar: new(bool)}, {Name: "source", BoolVar: new(bool)}, {Name: "structtags", BoolVar: new(bool)}, {Name: "tests", BoolVar: new(bool)},