*: reflow comments to 80 characters
This reformats the entire Metropolis codebase to have comments no longer
than 80 characters, implementing CR/66.
This has been done half manually, as we don't have a good integration
between commentwrap/Bazel, but that can be implemented if we decide to
go for this tool/limit.
Change-Id: If1fff0b093ef806f5dc00551c11506e8290379d0
diff --git a/build/fietsje/transitive.go b/build/fietsje/transitive.go
index f4a6e1d..e42199b 100644
--- a/build/fietsje/transitive.go
+++ b/build/fietsje/transitive.go
@@ -26,14 +26,14 @@
"golang.org/x/mod/modfile"
)
-// getTransitiveDeps is a hairy ball of heuristic used to find all recursively transitive dependencies of a given
-// dependency.
-// It downloads a given dependency using `go get`, and performs analysis of standard (go.mod/go.sum) and project-
-// specific dependency management configuration/lock files in order to build a full view of all known, versioned
-// transitive dependencies.
+// getTransitiveDeps is a hairy ball of heuristic used to find all recursively
+// transitive dependencies of a given dependency. It downloads a given dependency
+// using `go get`, and performs analysis of standard (go.mod/go.sum) and project-
+// specific dependency management configuration/lock files in order to build a full
+// view of all known, versioned transitive dependencies.
func (d *dependency) getTransitiveDeps() (map[string]*dependency, error) {
- // First, lock the dependency. Downloading it later will also return a sum, and we want to ensure both are the
- // same.
+ // First, lock the dependency. Downloading it later will also return a sum, and we
+ // want to ensure both are the same.
err := d.lock()
if err != nil {
return nil, fmt.Errorf("could not lock: %v", err)
@@ -127,9 +127,10 @@
}
}
- // Special case: root Kubernetes repo - rewrite staging/ deps to k8s.io/ at correct versions, quit early.
- // Kubernetes vendors all dependencies into vendor/, and also contains sub-projects (components) in staging/.
- // This converts all staging dependencies into appropriately versioned k8s.io/<dep> paths.
+ // Special case: root Kubernetes repo - rewrite staging/ deps to k8s.io/ at correct
+ // versions, quit early. Kubernetes vendors all dependencies into vendor/, and also
+ // contains sub-projects (components) in staging/. This converts all staging
+ // dependencies into appropriately versioned k8s.io/<dep> paths.
if d.importpath == "k8s.io/kubernetes" {
log.Printf("%q: special case for Kubernetes main repository", d.importpath)
if mf == nil {