mirror of
				https://github.com/golang/go.git
				synced 2025-10-31 08:40:55 +00:00 
			
		
		
		
	cmd/api: don't print out except.txt removed features to stdout
It's just noise. They've already been acknowledged in except.txt. R=golang-dev, r CC=golang-dev https://golang.org/cl/9392047
This commit is contained in:
		
							parent
							
								
									67acff0b09
								
							
						
					
					
						commit
						2184282308
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		|  | @ -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 { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brad Fitzpatrick
						Brad Fitzpatrick