Change:
make verify WHAT=typecheck-providerless outputs /cc /milestone v1.19
There are no sig labels on this issue. Please add an appropriate label by using one of the following commands: - Please see the for a listing of the SIGs, working groups, and committees available. <detailsInstructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
see example successful run:
For reference -
fix in
screaming

Discussion:
go_library( name = "go_default_library", <del> srcs = ["controller-manager.go"], </del> <ins> srcs = [ "controller-manager.go", "providers.go", ], </ins> importpath = "k8s.io/kubernetes/cmd/cloud-controller-manager", deps = [ "//cmd/cloud-controller-manager/app:go_default_library",

"k8s.io/component-base/logs" "k8s.io/kubernetes/cmd/cloud-controller-manager/app" <del> _ "k8s.io/component-base/metrics/prometheus/version" // for version metric registration // NOTE: Importing all in-tree cloud-providers is not required when // implementing an out-of-tree cloud-provider. </del> _ "k8s.io/component-base/metrics/prometheus/clientgo" // load all the prometheus client-go plugins <del> _ "k8s.io/legacy-cloud-providers/aws" _ "k8s.io/legacy-cloud-providers/azure" _ "k8s.io/legacy-cloud-providers/gce" _ "k8s.io/legacy-cloud-providers/openstack" _ "k8s.io/legacy-cloud-providers/vsphere" </del> <ins> _ "k8s.io/component-base/metrics/prometheus/version"  // for version metric registration </ins> ) func main() {

<ins> // +build !providerless /* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // The external controller manager is responsible for running controller loops that // are cloud provider dependent. It uses the API to listen to new events on resources. package main import ( // NOTE: Importing all in-tree cloud-providers is not required when // implementing an out-of-tree cloud-provider. _ "k8s.io/legacy-cloud-providers/aws" _ "k8s.io/legacy-cloud-providers/azure" _ "k8s.io/legacy-cloud-providers/gce" _ "k8s.io/legacy-cloud-providers/openstack" _ "k8s.io/legacy-cloud-providers/vsphere" ) </ins>

<ins> // +build !providerless </ins> /* Copyright 2019 The Kubernetes Authors.

<ins> // +build !providerless </ins> /* Copyright 2018 The Kubernetes Authors.

"strings" "testing" <del> "k8s.io/api/core/v1" </del> <ins> v1 "k8s.io/api/core/v1" </ins> metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/informers" "k8s.io/client-go/kubernetes/fake"

srcs = [ "azure_acr_helper.go", "azure_credentials.go", <ins> "doc.go", </ins> ], importpath = "k8s.io/kubernetes/pkg/credentialprovider/azure", deps = [

<ins> // +build !providerless </ins> /* Copyright 2016 The Kubernetes Authors.

<ins> /* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package azure </ins>

errors, err := c.verify(plat) if err != nil { serialFprintf(os.Stderr, "ERROR(%s): failed to verify: %vn", plat, err) <ins> f = true </ins> } else if len(errors) > 0 { for _, e := range errors { // Special case CGo errors which may depend on headers we