1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

Allow for files with no suffix

This commit is contained in:
jspc 2016-12-31 11:20:41 +00:00
parent 6098987b14
commit 590bda3ee3
3 changed files with 13 additions and 1 deletions

0
config/.test/4/LICENCE Normal file
View File

View File

@ -14,7 +14,7 @@ import (
var (
emptyBrew = Homebrew{}
filePatterns = []string{"LICENCE.*", "LICENSE.*", "README.*"}
filePatterns = []string{"LICENCE*", "LICENSE*", "README*"}
)
// Homebrew contains the brew section

View File

@ -60,3 +60,15 @@ func TestFixConfigArbitratryENTXT(t *testing.T) {
os.Chdir(cwd)
}
func TestFixConfigArbitratryENNoSuffix(t *testing.T) {
assert := assert.New(t)
cwd, _ := os.Getwd()
os.Chdir("./.test/4")
config := fix(ProjectConfig{})
assert.Equal([]string{"LICENCE"}, config.Files)
os.Chdir(cwd)
}