You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			382 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			382 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package valid
 | |
| 
 | |
| import (
 | |
| 	"errors"
 | |
| 
 | |
| 	"github.com/goreleaser/releaser/context"
 | |
| )
 | |
| 
 | |
| // Pipe for brew deployment
 | |
| type Pipe struct{}
 | |
| 
 | |
| // Name of the pipe
 | |
| func (Pipe) Description() string {
 | |
| 	return "Validating configuration..."
 | |
| }
 | |
| 
 | |
| // Run the pipe
 | |
| func (Pipe) Run(ctx *context.Context) (err error) {
 | |
| 	if ctx.Config.BinaryName == "" {
 | |
| 		return errors.New("missing binary_name")
 | |
| 	}
 | |
| 	return
 | |
| }
 |