code: func (Pipe) Default(ctx *context.Context) error {
  	var ids = map[string]int{}
  	if len(ctx.Config.Archives) == 0 {
  		ctx.Config.Archives = append(ctx.Config.Archives, ctx.Config.Archive)
  		if !reflect.DeepEqual(ctx.Config.Archive, config.Archive{}) {
  			deprecate.Notice("archive")
  		}
  	}
  	for i := range ctx.Config.Archives {
  		var archive = &ctx.Config.Archives[i]
  		if archive.Format == "" {
  			archive.Format = "tar.gz"
  		}
  		if archive.ID == "" {
  			archive.ID = "default"
  		}
  		if len(archive.Files) == 0 {
  			archive.Files = []string{
  				"licence*",
  				"LICENCE*",
  				"license*",
  				"LICENSE*",
  				"readme*",
  				"README*",
  				"changelog*",
  				"CHANGELOG*",
  			}
  		}
  		if archive.NameTemplate == "" {
  			archive.NameTemplate = defaultNameTemplate
  			if archive.Format == "binary" {
  				archive.NameTemplate = defaultBinaryNameTemplate
  			}
  		}
  		if len(archive.Builds) == 0 {
  			for _, build := range ctx.Config.Builds {
  				archive.Builds = append(archive.Builds, build.ID)
  			}
  		}
  		ids[archive.ID]++
  	}
  
  	for id, cont := range ids {
  		if cont > 1 {
  			return fmt.Errorf("found %d archives with the ID '%s', please fix your config", cont, id)
  		}
  	}
  	return nil
  }
docs: // Default sets the pipe defaults