]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/api: don't print out except.txt removed features to stdout
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 14 May 2013 16:43:56 +0000 (09:43 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 14 May 2013 16:43:56 +0000 (09:43 -0700)
It's just noise. They've already been acknowledged in except.txt.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9392047

src/cmd/api/goapi.go
src/cmd/api/goapi_test.go

index ff75f00e39a540be792a02db093374b6a091494d..46b5f3bae8a2f1c7199464bb71f7cfa1c9199bc5 100644 (file)
@@ -231,7 +231,12 @@ func compareAPI(w io.Writer, features, required, optional, exception []string) (
                case len(features) == 0 || (len(required) > 0 && required[0] < features[0]):
                        feature := take(&required)
                        if exceptionSet[feature] {
-                               fmt.Fprintf(w, "~%s\n", feature)
+                               // An "unfortunate" case: the feature was once
+                               // included in the API (e.g. go1.txt), but was
+                               // subsequently removed. These are already
+                               // acknowledged by being in the file
+                               // "api/except.txt". No need to print them out
+                               // here.
                        } else if featureSet[featureWithoutContext(feature)] {
                                // okay.
                        } else {
index 1a86c0ec70c5e5a0de19041224728568fe65f3bc..226748ac4afe7f80aeeb7cf0bce5f15e12a7fb35 100644 (file)
@@ -110,7 +110,7 @@ func TestCompareAPI(t *testing.T) {
                        features:  []string{"A", "C"},
                        exception: []string{"B"},
                        ok:        true,
-                       out:       "~B\n",
+                       out:       "",
                },
                {
                        // http://golang.org/issue/4303