Skip to content

Commit

Permalink
Revert "cmd/dist: log OS version when testing"
Browse files Browse the repository at this point in the history
Fails TestAllDependencies.

This reverts CL 371475.

For #50146.

Change-Id: I1feccd772d92d80e57c6327a4ac7b8af753a8c05
Reviewed-on: https://go-review.googlesource.com/c/go/+/378586
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
prattmic committed Jan 14, 2022
1 parent 4f0c32d commit 07b995e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 109 deletions.
9 changes: 0 additions & 9 deletions src/cmd/dist/metadata.go
Expand Up @@ -12,7 +12,6 @@
package main

import (
"cmd/internal/osinfo"
"fmt"
"internal/sysinfo"
"runtime"
Expand All @@ -21,13 +20,5 @@ import (
func logMetadata() error {
fmt.Printf("# GOARCH: %s\n", runtime.GOARCH)
fmt.Printf("# CPU: %s\n", sysinfo.CPU.Name())

fmt.Printf("# GOOS: %s\n", runtime.GOOS)
ver, err := osinfo.Version()
if err != nil {
return fmt.Errorf("error determining OS version: %v", err)
}
fmt.Printf("# OS Version: %s\n", ver)

return nil
}
6 changes: 0 additions & 6 deletions src/cmd/internal/osinfo/doc.go

This file was deleted.

18 changes: 0 additions & 18 deletions src/cmd/internal/osinfo/os_js.go

This file was deleted.

21 changes: 0 additions & 21 deletions src/cmd/internal/osinfo/os_plan9.go

This file was deleted.

36 changes: 0 additions & 36 deletions src/cmd/internal/osinfo/os_unix.go

This file was deleted.

19 changes: 0 additions & 19 deletions src/cmd/internal/osinfo/os_windows.go

This file was deleted.

0 comments on commit 07b995e

Please sign in to comment.